Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / src / thermophysicalModels / liquids / H2O / H2O.C
bloba9eb6819dcb5963b8b02bd3e4845480b44b9cce0
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | foam-extend: Open Source CFD
4    \\    /   O peration     | Version:     3.2
5     \\  /    A nd           | Web:         http://www.foam-extend.org
6      \\/     M anipulation  | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
8 License
9     This file is part of foam-extend.
11     foam-extend is free software: you can redistribute it and/or modify it
12     under the terms of the GNU General Public License as published by the
13     Free Software Foundation, either version 3 of the License, or (at your
14     option) any later version.
16     foam-extend is distributed in the hope that it will be useful, but
17     WITHOUT ANY WARRANTY; without even the implied warranty of
18     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19     General Public License for more details.
21     You should have received a copy of the GNU General Public License
22     along with foam-extend.  If not, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
26 #include "H2O.H"
27 #include "addToRunTimeSelectionTable.H"
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31 namespace Foam
33     defineTypeNameAndDebug(H2O, 0);
34     addToRunTimeSelectionTable(liquid, H2O,);
35     addToRunTimeSelectionTable(liquid, H2O, Istream);
38 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
40 Foam::H2O::H2O()
42     liquid
43     (
44         18.015,
45         647.13,
46         2.2055e+7,
47         0.05595,
48         0.229,
49         273.16,
50         6.113e+2,
51         373.15,
52         6.1709e-30,
53         0.3449,
54         4.7813e+4
55     ),
56     rho_(98.343885, 0.30542, 647.13, 0.081),
57     pv_(73.649, -7258.2, -7.3037, 4.1653e-06, 2),
58     hl_(647.13, 2889425.47876769, 0.3199, -0.212, 0.25795, 0),
59     cp_
60     (
61         15341.1046350264,
62        -116.019983347211,
63         0.451013044684985,
64        -0.000783569247849015,
65         5.20127671384957e-07,
66         0
67     ),
68     h_
69     (
70        -17957283.7993676,
71         15341.1046350264,
72        -58.0099916736053,
73         0.150337681561662,
74        -0.000195892311962254,
75         1.04025534276991e-07
76     ),
77     cpg_
78     (
79         1851.73466555648,
80         1487.53816264224,
81         2609.3,
82         493.366638912018,
83         1167.6
84     ),
85     B_
86     (
87        -0.0012789342214821,
88         1.4909797391063,
89        -1563696.91923397,
90         1.85445462114904e+19,
91        -7.68082153760755e+21
92     ),
93     mu_(-51.964, 3670.6, 5.7331, -5.3495e-29, 10),
94     mug_(2.6986e-06, 0.498, 1257.7, -19570),
95     K_(-0.4267, 0.0056903, -8.0065e-06, 1.815e-09, 0, 0),
96     Kg_(6.977e-05, 1.1243, 844.9, -148850),
97     sigma_(647.13, 0.18548, 2.717, -3.554, 2.047, 0),
98     D_(15.0, 15.0, 18.015, 28)
102 Foam::H2O::H2O
104     const liquid& l,
105     const NSRDSfunc5& density,
106     const NSRDSfunc1& vapourPressure,
107     const NSRDSfunc6& heatOfVapourisation,
108     const NSRDSfunc0& heatCapacity,
109     const NSRDSfunc0& enthalpy,
110     const NSRDSfunc7& idealGasHeatCapacity,
111     const NSRDSfunc4& secondVirialCoeff,
112     const NSRDSfunc1& dynamicViscosity,
113     const NSRDSfunc2& vapourDynamicViscosity,
114     const NSRDSfunc0& thermalConductivity,
115     const NSRDSfunc2& vapourThermalConductivity,
116     const NSRDSfunc6& surfaceTension,
117     const APIdiffCoefFunc& vapourDiffussivity
120     liquid(l),
121     rho_(density),
122     pv_(vapourPressure),
123     hl_(heatOfVapourisation),
124     cp_(heatCapacity),
125     h_(enthalpy),
126     cpg_(idealGasHeatCapacity),
127     B_(secondVirialCoeff),
128     mu_(dynamicViscosity),
129     mug_(vapourDynamicViscosity),
130     K_(thermalConductivity),
131     Kg_(vapourThermalConductivity),
132     sigma_(surfaceTension),
133     D_(vapourDiffussivity)
137 Foam::H2O::H2O(Istream& is)
139     liquid(is),
140     rho_(is),
141     pv_(is),
142     hl_(is),
143     cp_(is),
144     h_(is),
145     cpg_(is),
146     B_(is),
147     mu_(is),
148     mug_(is),
149     K_(is),
150     Kg_(is),
151     sigma_(is),
152     D_(is)
156 // ************************************************************************* //