Forward compatibility: flex
[foam-extend-3.2.git] / src / thermophysicalModels / liquids / C12H26 / C12H26.C
blobb1a2fec88f663b1cf7fe3eaa0ee5cd913395eae5
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 "C12H26.H"
27 #include "addToRunTimeSelectionTable.H"
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31 namespace Foam
33     defineTypeNameAndDebug(C12H26, 0);
34     addToRunTimeSelectionTable(liquid, C12H26,);
35     addToRunTimeSelectionTable(liquid, C12H26, Istream);
38 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
40 Foam::C12H26::C12H26()
42     liquid
43     (
44         170.338,
45         658.0,
46         1.82e+6,
47         0.716,
48         0.238,
49         263.57,
50         6.152e-1,
51         489.47,
52         0.0,
53         0.5764,
54         1.59e+4
55     ),
56     rho_(60.53982858, 0.25511, 658.0, 0.29368),
57     pv_(137.47, -11976.0, -16.698, 8.0906e-06, 2.0),
58     hl_(658.0, 454020.829174935, 0.40681, 0.0, 0.0, 0.0),
59     cp_(2983.53861146661, -8.0352006011577, 0.018207916025784, 0.0, 0.0, 0.0),
60     h_
61     (
62        -2755166.83820769,
63         2983.53861146661,
64        -4.01760030057885,
65         0.00606930534192801,
66         0.0,
67         0.0
68     ),
69     cpg_(1250.16144371778, 3894.02247296552, 1715.5, 2650.67101879792, 777.5),
70     B_
71     (
72         0.00516619896910848,
73        -6.40491258556517,
74        -295295.236529723,
75        -3.22147729807794e+19,
76         8.78195117941974e+21
77     ),
78     mu_(-20.607, 1943, 1.3205, 0.0, 0.0),
79     mug_(6.344e-08, 0.8287, 219.5, 0.0),
80     K_(0.2047, -0.0002326, 0.0, 0.0, 0.0, 0.0),
81     Kg_(5.719e-06, 1.4699, 579.4, 0.0),
82     sigma_(658.0, 0.055493, 1.3262, 0.0, 0.0, 0.0),
83     D_(147.18, 20.1, 170.338, 28.0) // note: Same as nHeptane
87 Foam::C12H26::C12H26
89     const liquid& l,
90     const NSRDSfunc5& density,
91     const NSRDSfunc1& vapourPressure,
92     const NSRDSfunc6& heatOfVapourisation,
93     const NSRDSfunc0& heatCapacity,
94     const NSRDSfunc0& enthalpy,
95     const NSRDSfunc7& idealGasHeatCapacity,
96     const NSRDSfunc4& secondVirialCoeff,
97     const NSRDSfunc1& dynamicViscosity,
98     const NSRDSfunc2& vapourDynamicViscosity,
99     const NSRDSfunc0& thermalConductivity,
100     const NSRDSfunc2& vapourThermalConductivity,
101     const NSRDSfunc6& surfaceTension,
102     const APIdiffCoefFunc& vapourDiffussivity
105     liquid(l),
106     rho_(density),
107     pv_(vapourPressure),
108     hl_(heatOfVapourisation),
109     cp_(heatCapacity),
110     h_(enthalpy),
111     cpg_(idealGasHeatCapacity),
112     B_(secondVirialCoeff),
113     mu_(dynamicViscosity),
114     mug_(vapourDynamicViscosity),
115     K_(thermalConductivity),
116     Kg_(vapourThermalConductivity),
117     sigma_(surfaceTension),
118     D_(vapourDiffussivity)
122 Foam::C12H26::C12H26(Istream& is)
124     liquid(is),
125     rho_(is),
126     pv_(is),
127     hl_(is),
128     cp_(is),
129     h_(is),
130     cpg_(is),
131     B_(is),
132     mu_(is),
133     mug_(is),
134     K_(is),
135     Kg_(is),
136     sigma_(is),
137     D_(is)
141 // ************************************************************************* //