1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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(C7H16, 0);
34 addToRunTimeSelectionTable(liquidProperties, C7H16,);
35 addToRunTimeSelectionTable(liquidProperties, C7H16, Istream);
36 addToRunTimeSelectionTable(liquidProperties, C7H16, dictionary);
39 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
57 rho_(61.38396836, 0.26211, 540.2, 0.28141),
58 pv_(87.829, -6996.4, -9.8802, 7.2099e-06, 2.0),
59 hl_(540.20, 499121.791545248, 0.38795, 0.0, 0.0, 0.0),
77 Cpg_(1199.05392998284, 3992.85457666361, 1676.6, 2734.42177956968, 756.4),
83 -8.78208454752305e+17,
86 mu_(-24.451, 1533.1, 2.0087, 0.0, 0.0),
87 mug_(6.672e-08, 0.82837, 85.752, 0.0),
88 K_(0.215, -0.000303, 0.0, 0.0, 0.0, 0.0),
89 Kg_(-0.070028, 0.38068, -7049.9, -2400500.0),
90 sigma_(540.20, 0.054143, 1.2512, 0.0, 0.0, 0.0),
91 D_(147.18, 20.1, 100.204, 28.0)
97 const liquidProperties& l,
98 const NSRDSfunc5& density,
99 const NSRDSfunc1& vapourPressure,
100 const NSRDSfunc6& heatOfVapourisation,
101 const NSRDSfunc14& heatCapacity,
102 const NSRDSfunc0& enthalpy,
103 const NSRDSfunc7& idealGasHeatCapacity,
104 const NSRDSfunc4& secondVirialCoeff,
105 const NSRDSfunc1& dynamicViscosity,
106 const NSRDSfunc2& vapourDynamicViscosity,
107 const NSRDSfunc0& thermalConductivity,
108 const NSRDSfunc2& vapourThermalConductivity,
109 const NSRDSfunc6& surfaceTension,
110 const APIdiffCoefFunc& vapourDiffussivity
116 hl_(heatOfVapourisation),
119 Cpg_(idealGasHeatCapacity),
120 B_(secondVirialCoeff),
121 mu_(dynamicViscosity),
122 mug_(vapourDynamicViscosity),
123 K_(thermalConductivity),
124 Kg_(vapourThermalConductivity),
125 sigma_(surfaceTension),
126 D_(vapourDiffussivity)
130 Foam::C7H16::C7H16(Istream& is)
132 liquidProperties(is),
149 Foam::C7H16::C7H16(const dictionary& dict)
151 liquidProperties(dict),
152 rho_(dict.subDict("rho")),
153 pv_(dict.subDict("pv")),
154 hl_(dict.subDict("hl")),
155 Cp_(dict.subDict("Cp")),
156 h_(dict.subDict("h")),
157 Cpg_(dict.subDict("Cpg")),
158 B_(dict.subDict("B")),
159 mu_(dict.subDict("mu")),
160 mug_(dict.subDict("mug")),
161 K_(dict.subDict("K")),
162 Kg_(dict.subDict("Kg")),
163 sigma_(dict.subDict("sigma")),
164 D_(dict.subDict("D"))
168 Foam::C7H16::C7H16(const C7H16& liq)
170 liquidProperties(liq),
187 // ************************************************************************* //