thermoIncompressibleTwoPhaseMixture.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-2020 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::thermoIncompressibleTwoPhaseMixture
28
29Description
30 A two-phase incompressible transportModel
31
32SourceFiles
33 thermoIncompressibleTwoPhaseMixture.C
34
35\*---------------------------------------------------------------------------*/
36
37#ifndef thermoIncompressibleTwoPhaseMixture_H
38#define thermoIncompressibleTwoPhaseMixture_H
39
41
42// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43
44namespace Foam
45{
46
47/*---------------------------------------------------------------------------*\
48 Class thermoIncompressibleTwoPhaseMixture Declaration
49\*---------------------------------------------------------------------------*/
52:
54{
55protected:
56
57 // Protected data
58
59
60 //- Thermal variables
72
73
74public:
76 TypeName("thermoIncompressibleTwoPhaseMixture");
77
78
79 // Constructors
80
81 //- Construct from U and phi
83 (
84 const volVectorField& U,
86 );
87
88
89 //- Destructor
90 virtual ~thermoIncompressibleTwoPhaseMixture() = default;
91
92
93 // Access function
94
95 //- Return const-access to phase2 kappa
96 const dimensionedScalar& kappa2() const
97 {
98 return kappa2_;
99 };
100
101 //- Return const-access to phase1 kappa
102 const dimensionedScalar& kappa1() const
103 {
104 return kappa1_;
105 };
106
107 //- Return const-access to phase1 Cp
108 const dimensionedScalar& Cp1() const
109 {
110 return Cp1_;
111 };
112
113 //- Return const-access to phase1 Cp
114 const dimensionedScalar& Cp2() const
115 {
116 return Cp2_;
117 };
118
119 //- Return const-access to phase1 Cv
120 const dimensionedScalar& Cv1() const
121 {
122 return Cv1_;
123 };
124
125 //- Return const-access to phase1 Cv
126 const dimensionedScalar& Cv2() const
127 {
128 return Cv2_;
129 };
130
131 //- Return latent heat for phase 1
132 const dimensionedScalar& Hf1() const
133 {
134 return Hf1_;
135 };
136
137 //- Return latent heat for phase 2
138 const dimensionedScalar& Hf2() const
139 {
140 return Hf2_;
141 };
142
143 //- Read base transportProperties dictionary
144 virtual bool read();
145
146};
147
148
149// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
150
151} // End namespace Foam
152
153// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154
155#endif
156
157// ************************************************************************* //
surfaceScalarField & phi
A two-phase incompressible transportModel.
const volVectorField & U() const
Return const-access to the mixture velocity.
A two-phase incompressible transportModel.
const dimensionedScalar & kappa1() const
Return const-access to phase1 kappa.
const dimensionedScalar & Cp2() const
Return const-access to phase1 Cp.
const dimensionedScalar & Cv1() const
Return const-access to phase1 Cv.
thermoIncompressibleTwoPhaseMixture(const volVectorField &U, const surfaceScalarField &phi)
Construct from U and phi.
virtual ~thermoIncompressibleTwoPhaseMixture()=default
Destructor.
const dimensionedScalar & Hf1() const
Return latent heat for phase 1.
const dimensionedScalar & Cv2() const
Return const-access to phase1 Cv.
const dimensionedScalar & Cp1() const
Return const-access to phase1 Cp.
TypeName("thermoIncompressibleTwoPhaseMixture")
const dimensionedScalar & Hf2() const
Return latent heat for phase 2.
virtual bool read()
Read base transportProperties dictionary.
const dimensionedScalar & kappa2() const
Return const-access to phase2 kappa.
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73