thermoIncompressibleTwoPhaseMixture.C
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 \*---------------------------------------------------------------------------*/
27 
29 
30 
31 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 
33 namespace Foam
34 {
35  defineTypeNameAndDebug(thermoIncompressibleTwoPhaseMixture, 0);
36 }
37 
38 
39 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
40 
42 (
43  const volVectorField& U,
44  const surfaceScalarField& phi
45 )
46 :
47  incompressibleTwoPhaseMixture(U, phi),
48 
49  kappa1_
50  (
51  "kappa1",
53  subDict(phase1Name_),
54  "kappa"
55  ),
56  kappa2_
57  (
58  "kappa2",
59  kappa1_.dimensions(),
60  subDict(phase2Name_),
61  "kappa"
62  ),
63 
64  Cp1_
65  (
66  "Cp1",
68  subDict(phase1Name_),
69  "Cp"
70  ),
71  Cp2_
72  (
73  "Cp2",
75  subDict(phase2Name_),
76  "Cp"
77  ),
78 
79  Cv1_
80  (
81  "Cv1",
83  subDict(phase1Name_),
84  "Cv"
85  ),
86 
87  Cv2_
88  (
89  "Cv2",
91  subDict(phase2Name_),
92  "Cv"
93  ),
94 
95  Hf1_
96  (
97  "Hf1",
99  subDict(phase1Name_),
100  "hf"
101  ),
102 
103  Hf2_
104  (
105  "Hf2",
107  subDict(phase2Name_),
108  "hf"
109  )
110 {
111 
112 }
113 
114 
115 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
116 
118 {
120  {
121  subDict(phase1Name_).readEntry("kappa", kappa1_);
122  subDict(phase2Name_).readEntry("kappa", kappa2_);
123 
124  subDict(phase1Name_).readEntry("Cp", Cp1_);
125  subDict(phase2Name_).readEntry("Cp", Cp2_);
126 
127  subDict(phase1Name_).readEntry("Cv", Cv1_);
128  subDict(phase2Name_).readEntry("Cv", Cv2_);
129 
130  subDict(phase1Name_).readEntry("hf", Hf1_);
131  subDict(phase2Name_).readEntry("hf", Hf2_);
132 
133  return true;
134  }
135 
136  return false;
137 }
138 
139 
140 // ************************************************************************* //
virtual bool read()
Read base transportProperties dictionary.
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:76
thermoIncompressibleTwoPhaseMixture(const volVectorField &U, const surfaceScalarField &phi)
Construct from U and phi.
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
Definition: dimensionSets.H:52
defineTypeNameAndDebug(combustionModel, 0)
const dimensionSet dimEnergy
U
Definition: pEqn.H:72
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:50
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:51
virtual bool read()
Read base transportProperties dictionary.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:49
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Namespace for OpenFOAM.