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-------------------------------------------------------------------------------
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
26\*---------------------------------------------------------------------------*/
27
29
30
31// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32
33namespace 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 {
123
126
129
132
133 return true;
134 }
135
136 return false;
137}
138
139
140// ************************************************************************* //
surfaceScalarField & phi
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
Definition: dictionary.C:460
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
virtual bool read()
Read base transportProperties dictionary.
A two-phase incompressible transportModel.
virtual bool read()
Read base transportProperties dictionary.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Definition: className.H:121
U
Definition: pEqn.H:72
Namespace for OpenFOAM.
const dimensionSet dimEnergy
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:52
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:53
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
Definition: dimensionSets.H:54
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:51