1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
27 #include "addToRunTimeSelectionTable.H"
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
33 defineTypeNameAndDebug(H2O, 0);
34 addToRunTimeSelectionTable(liquidProperties, H2O,);
35 addToRunTimeSelectionTable(liquidProperties, H2O, Istream);
36 addToRunTimeSelectionTable(liquidProperties, H2O, dictionary);
39 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
57 rho_(98.343885, 0.30542, 647.13, 0.081),
58 pv_(73.649, -7258.2, -7.3037, 4.1653e-06, 2),
59 hl_(647.13, 2889425.47876769, 0.3199, -0.212, 0.25795, 0),
65 -0.000783569247849015,
75 -0.000195892311962254,
94 mu_(-51.964, 3670.6, 5.7331, -5.3495e-29, 10),
95 mug_(2.6986e-06, 0.498, 1257.7, -19570),
96 K_(-0.4267, 0.0056903, -8.0065e-06, 1.815e-09, 0, 0),
97 Kg_(6.977e-05, 1.1243, 844.9, -148850),
98 sigma_(647.13, 0.18548, 2.717, -3.554, 2.047, 0),
99 D_(15.0, 15.0, 18.015, 28)
105 const liquidProperties& l,
106 const NSRDSfunc5& density,
107 const NSRDSfunc1& vapourPressure,
108 const NSRDSfunc6& heatOfVapourisation,
109 const NSRDSfunc0& heatCapacity,
110 const NSRDSfunc0& enthalpy,
111 const NSRDSfunc7& idealGasHeatCapacity,
112 const NSRDSfunc4& secondVirialCoeff,
113 const NSRDSfunc1& dynamicViscosity,
114 const NSRDSfunc2& vapourDynamicViscosity,
115 const NSRDSfunc0& thermalConductivity,
116 const NSRDSfunc2& vapourThermalConductivity,
117 const NSRDSfunc6& surfaceTension,
118 const APIdiffCoefFunc& vapourDiffussivity
124 hl_(heatOfVapourisation),
127 Cpg_(idealGasHeatCapacity),
128 B_(secondVirialCoeff),
129 mu_(dynamicViscosity),
130 mug_(vapourDynamicViscosity),
131 K_(thermalConductivity),
132 Kg_(vapourThermalConductivity),
133 sigma_(surfaceTension),
134 D_(vapourDiffussivity)
138 Foam::H2O::H2O(Istream& is)
140 liquidProperties(is),
157 Foam::H2O::H2O(const dictionary& dict)
159 liquidProperties(dict),
160 rho_(dict.subDict("rho")),
161 pv_(dict.subDict("pv")),
162 hl_(dict.subDict("hl")),
163 Cp_(dict.subDict("Cp")),
164 h_(dict.subDict("h")),
165 Cpg_(dict.subDict("Cpg")),
166 B_(dict.subDict("B")),
167 mu_(dict.subDict("mu")),
168 mug_(dict.subDict("mug")),
169 K_(dict.subDict("K")),
170 Kg_(dict.subDict("Kg")),
171 sigma_(dict.subDict("sigma")),
172 D_(dict.subDict("D"))
176 Foam::H2O::H2O(const H2O& liq)
178 liquidProperties(liq),
195 // ************************************************************************* //