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 -------------------------------------------------------------------------------
10 License
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 
26 Class
27  Foam::thermoIncompressibleTwoPhaseMixture
28 
29 Description
30  A two-phase incompressible transportModel
31 
32 SourceFiles
33  thermoIncompressibleTwoPhaseMixture.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef thermoIncompressibleTwoPhaseMixture_H
38 #define thermoIncompressibleTwoPhaseMixture_H
39 
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class thermoIncompressibleTwoPhaseMixture Declaration
49 \*---------------------------------------------------------------------------*/
50 
52 :
54 {
55 protected:
56 
57  // Protected data
58 
59 
60  //- Thermal variables
63 
66 
69 
72 
73 
74 public:
75 
76  TypeName("thermoIncompressibleTwoPhaseMixture");
77 
78 
79  // Constructors
80 
81  //- Construct from U and phi
83  (
84  const volVectorField& U,
85  const surfaceScalarField& phi
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 // ************************************************************************* //
Foam::thermoIncompressibleTwoPhaseMixture::thermoIncompressibleTwoPhaseMixture
thermoIncompressibleTwoPhaseMixture(const volVectorField &U, const surfaceScalarField &phi)
Construct from U and phi.
Foam::thermoIncompressibleTwoPhaseMixture::Hf1
const dimensionedScalar & Hf1() const
Return latent heat for phase 1.
Definition: thermoIncompressibleTwoPhaseMixture.H:131
Foam::thermoIncompressibleTwoPhaseMixture::Cv2_
dimensionedScalar Cv2_
Definition: thermoIncompressibleTwoPhaseMixture.H:67
Foam::thermoIncompressibleTwoPhaseMixture::kappa1
const dimensionedScalar & kappa1() const
Return const-access to phase1 kappa.
Definition: thermoIncompressibleTwoPhaseMixture.H:101
incompressibleTwoPhaseMixture.H
Foam::thermoIncompressibleTwoPhaseMixture::TypeName
TypeName("thermoIncompressibleTwoPhaseMixture")
Foam::thermoIncompressibleTwoPhaseMixture::read
virtual bool read()
Read base transportProperties dictionary.
Foam::thermoIncompressibleTwoPhaseMixture::~thermoIncompressibleTwoPhaseMixture
virtual ~thermoIncompressibleTwoPhaseMixture()=default
Destructor.
Foam::thermoIncompressibleTwoPhaseMixture::Cp1
const dimensionedScalar & Cp1() const
Return const-access to phase1 Cp.
Definition: thermoIncompressibleTwoPhaseMixture.H:107
Foam::thermoIncompressibleTwoPhaseMixture::kappa2_
dimensionedScalar kappa2_
Definition: thermoIncompressibleTwoPhaseMixture.H:61
Foam::thermoIncompressibleTwoPhaseMixture::Cp2
const dimensionedScalar & Cp2() const
Return const-access to phase1 Cp.
Definition: thermoIncompressibleTwoPhaseMixture.H:113
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
Foam::thermoIncompressibleTwoPhaseMixture::Cv1_
dimensionedScalar Cv1_
Definition: thermoIncompressibleTwoPhaseMixture.H:66
Foam::thermoIncompressibleTwoPhaseMixture::Cv1
const dimensionedScalar & Cv1() const
Return const-access to phase1 Cv.
Definition: thermoIncompressibleTwoPhaseMixture.H:119
Foam::thermoIncompressibleTwoPhaseMixture::Hf2
const dimensionedScalar & Hf2() const
Return latent heat for phase 2.
Definition: thermoIncompressibleTwoPhaseMixture.H:137
Foam::thermoIncompressibleTwoPhaseMixture::kappa1_
dimensionedScalar kappa1_
Thermal variables.
Definition: thermoIncompressibleTwoPhaseMixture.H:60
Foam::dimensioned< scalar >
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::thermoIncompressibleTwoPhaseMixture::Cp2_
dimensionedScalar Cp2_
Definition: thermoIncompressibleTwoPhaseMixture.H:64
Foam::thermoIncompressibleTwoPhaseMixture::Hf2_
dimensionedScalar Hf2_
Definition: thermoIncompressibleTwoPhaseMixture.H:70
Foam::thermoIncompressibleTwoPhaseMixture
A two-phase incompressible transportModel.
Definition: thermoIncompressibleTwoPhaseMixture.H:50
Foam::incompressibleTwoPhaseMixture
A two-phase incompressible transportModel.
Definition: incompressibleTwoPhaseMixture.H:55
Foam::thermoIncompressibleTwoPhaseMixture::kappa2
const dimensionedScalar & kappa2() const
Return const-access to phase2 kappa.
Definition: thermoIncompressibleTwoPhaseMixture.H:95
Foam::thermoIncompressibleTwoPhaseMixture::Hf1_
dimensionedScalar Hf1_
Definition: thermoIncompressibleTwoPhaseMixture.H:69
Foam::incompressibleTwoPhaseMixture::U
const volVectorField & U() const
Return const-access to the mixture velocity.
Definition: incompressibleTwoPhaseMixture.H:129
Foam::GeometricField< vector, fvPatchField, volMesh >
Foam::thermoIncompressibleTwoPhaseMixture::Cp1_
dimensionedScalar Cp1_
Definition: thermoIncompressibleTwoPhaseMixture.H:63
Foam::thermoIncompressibleTwoPhaseMixture::Cv2
const dimensionedScalar & Cv2() const
Return const-access to phase1 Cv.
Definition: thermoIncompressibleTwoPhaseMixture.H:125