Forward compatibility: flex
[foam-extend-3.2.git] / src / thermophysicalModels / liquids / aC10H7CH3 / aC10H7CH3.C
blob7ff0167a8c32345280efb1ada3920eeb5599b025
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 "aC10H7CH3.H"
27 #include "addToRunTimeSelectionTable.H"
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31 namespace Foam
33     defineTypeNameAndDebug(aC10H7CH3, 0);
34     addToRunTimeSelectionTable(liquid, aC10H7CH3,);
35     addToRunTimeSelectionTable(liquid, aC10H7CH3, Istream);
38 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
40 Foam::aC10H7CH3::aC10H7CH3()
42     liquid
43     (
44         142.2,
45         772.04,
46         3.66e+6,
47         0.523,
48         0.298,
49         242.67,
50         3.4929e-2,
51         517.83,
52         1.7012e-30,
53         0.3478,
54         2.0176e+4
55     ),
56     rho_(60.92559, 0.22408, 772.04, 0.25709),
57     pv_(73.716, -9103.2, -7.2253, 2.062e-06, 2),
58     hl_(772.04, 511744.022503516, 0.4164, 0, 0, 0),
59     cp_(965.893108298172, 1.16216596343179, 0.00298523206751055, 0, 0, 0),
60     h_
61     (
62         38161.6838138517,
63         965.893108298172,
64         0.581082981715893,
65         0.00099507735583685,
66         0,
67         0
68     ),
69     cpg_(743.389592123769, 2703.5864978903, 1548.5, 2031.64556962025, 722.06),
70     B_
71     (
72         0.00205555555555556,
73        -3.34423347398031,
74        -931153.305203938,
75         1.87601969057665e+18,
76        -2.06448663853727e+21
77     ),
78     mu_(-93.6, 5784, 12, 0, 0),
79     mug_(2.5672e-06, 0.3566, 825.54, 0),
80     K_(0.19758, -0.0001796, 0, 0, 0, 0),
81     Kg_(0.3911, -0.1051, -213.52, 2318300),
82     sigma_(772.04, 0.076, 1.33, 0, 0, 0),
83     D_(147.18, 20.1, 142.2, 28) // note: Same as nHeptane
87 Foam::aC10H7CH3::aC10H7CH3
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::aC10H7CH3::aC10H7CH3(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 // ************************************************************************* //