constant.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2016-2019 OpenCFD Ltd.
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26Class
27 Foam::phaseChangeTwoPhaseMixtures::constant
28
29Description
30 constant condensation/saturation model.
31
32
33SourceFiles
34 constant.C
35
36\*--------------------------------------------------------------------*/
37
38#ifndef constant_H
39#define constant_H
40
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
47namespace temperaturePhaseChangeTwoPhaseMixtures
48{
49
50/*--------------------------------------------------------------------*\
51 Class constant
52\*--------------------------------------------------------------------*/
54class constant
55:
57{
58 // Private data
59
60 //- Condensation coefficient [1/s/K]
61 dimensionedScalar coeffC_;
62
63 //- Evaporation coefficient [1/s/K]
64 dimensionedScalar coeffE_;
65
66
67public:
68
69 //- Runtime type information
70 TypeName("constant");
71
72
73 // Constructors
74
75 //- Construct from components
77 (
79 const fvMesh& mesh
80 );
81
82
83 //- Destructor
84 virtual ~constant() = default;
85
86
87 // Member Functions
88
89 //- Return the mass condensation and vaporisation rates as a
90 // coefficient to multiply (1 - alphal) for the condensation rate
91 // and a coefficient to multiply alphal for the vaporisation rate
92 virtual Pair<tmp<volScalarField>> mDotAlphal() const;
93
94 //- Return the mass condensation and vaporisation rates as coefficients
95 virtual Pair<tmp<volScalarField>> mDot() const;
96
97 //- Return the mass condensation and vaporisation rates as a
98 // coefficient to multiply (Tsat - T) for the condensation rate
99 // and a coefficient to multiply (T - Tsat) for the vaporisation rate
100 virtual Pair<tmp<volScalarField>> mDotDeltaT() const;
101
102 //- Source for T equarion
103 virtual tmp<fvScalarMatrix> TSource() const;
104
105 //- Correct the constant phaseChange model
106 virtual void correct();
107
108 //- Read the transportProperties dictionary and update
109 virtual bool read();
110};
111
112
113// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114
115} // End namespace temperaturePhaseChangeTwoPhaseMixtures
116} // End namespace Foam
117
118// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119
120#endif
121
122// ************************************************************************* //
An ordered pair of two objects of type <T> with first() and second() elements.
Definition: Pair.H:69
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:91
virtual Pair< tmp< volScalarField > > mDotAlphal() const
Return the mass condensation and vaporisation rates as a.
virtual Pair< tmp< volScalarField > > mDotDeltaT() const
Return the mass condensation and vaporisation rates as a.
virtual tmp< fvScalarMatrix > TSource() const
Source for T equarion.
virtual void correct()
Correct the constant phaseChange model.
virtual bool read()
Read the transportProperties dictionary and update.
TypeName("constant")
Runtime type information.
virtual Pair< tmp< volScalarField > > mDot() const
Return the mass condensation and vaporisation rates as coefficients.
constant(const thermoIncompressibleTwoPhaseMixture &mixture, const fvMesh &mesh)
Construct from components.
A two-phase incompressible transportModel.
A class for managing temporary objects.
Definition: tmp.H:65
dynamicFvMesh & mesh
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73