Forward compatibility: flex
[foam-extend-3.2.git] / src / thermophysicalModels / liquids / Ar / Ar.C
blob7a3aadaab64ad42ec39be9b1f33f8929becb51d9
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 "Ar.H"
27 #include "addToRunTimeSelectionTable.H"
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31 namespace Foam
33     defineTypeNameAndDebug(Ar, 0);
34     addToRunTimeSelectionTable(liquid, Ar,);
35     addToRunTimeSelectionTable(liquid, Ar, Istream);
39 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
41 Foam::Ar::Ar()
43     liquid
44     (
45         39.948,
46         150.86,
47         4.8981e+6,
48         0.07459,
49         0.291,
50         83.78,
51         6.88e+4,
52         87.28,
53         0.0,
54         0.0,
55         1.4138e+4
56     ),
57     rho_(151.922244, 0.286, 150.86, 0.2984),
58     pv_(39.233, -1051.7, -3.5895, 5.0444e-05, 2),
59     hl_(150.86, 218509.061780314, 0.352, 0.0, 0.0, 0.0),
60     cp_(4562.43116050866, -70.7770101131471, 0.367477721037349, 0.0, 0.0, 0.0),
61     h_
62     (
63        -1460974.49982473,
64         4562.43116050866,
65        -35.3885050565735,
66         0.122492573679116,
67         0.0,
68         0.0
69     ),
70     cpg_(520.326424351657, 0.0, 0.0, 0.0, 0.0, 0.0),
71     B_
72     (
73         0.000952488234705117,
74        -0.379993992189847,
75        -2022.62941824372,
76         4633523580654.85,
77         -302893761890458.0
78     ),
79     mu_(-8.868, 204.3, -0.3831, -1.3e-22, 10.0),
80     mug_(8.386e-07, 0.6175, 75.377, -432.5),
81     K_(0.1819, -0.0003176, -4.11e-06, 0.0, 0.0, 0.0),
82     Kg_(0.0001236, 0.8262, -132.8, 16000),
83     sigma_(150.86, 0.03823, 1.2927, 0.0, 0.0, 0.0),
84     D_(147.18, 20.1, 39.948, 28) // note: Same as nHeptane
88 Foam::Ar::Ar
90     const liquid& l,
91     const NSRDSfunc5& density,
92     const NSRDSfunc1& vapourPressure,
93     const NSRDSfunc6& heatOfVapourisation,
94     const NSRDSfunc0& heatCapacity,
95     const NSRDSfunc0& enthalpy,
96     const NSRDSfunc0& idealGasHeatCapacity,
97     const NSRDSfunc4& secondVirialCoeff,
98     const NSRDSfunc1& dynamicViscosity,
99     const NSRDSfunc2& vapourDynamicViscosity,
100     const NSRDSfunc0& thermalConductivity,
101     const NSRDSfunc2& vapourThermalConductivity,
102     const NSRDSfunc6& surfaceTension,
103     const APIdiffCoefFunc& vapourDiffussivity
106     liquid(l),
107     rho_(density),
108     pv_(vapourPressure),
109     hl_(heatOfVapourisation),
110     cp_(heatCapacity),
111     h_(enthalpy),
112     cpg_(idealGasHeatCapacity),
113     B_(secondVirialCoeff),
114     mu_(dynamicViscosity),
115     mug_(vapourDynamicViscosity),
116     K_(thermalConductivity),
117     Kg_(vapourThermalConductivity),
118     sigma_(surfaceTension),
119     D_(vapourDiffussivity)
123 Foam::Ar::Ar(Istream& is)
125     liquid(is),
126     rho_(is),
127     pv_(is),
128     hl_(is),
129     cp_(is),
130     h_(is),
131     cpg_(is),
132     B_(is),
133     mu_(is),
134     mug_(is),
135     K_(is),
136     Kg_(is),
137     sigma_(is),
138     D_(is)
142 // ************************************************************************* //