1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
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 \*---------------------------------------------------------------------------*/
26 #include "bC10H7CH3.H"
27 #include "addToRunTimeSelectionTable.H"
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
33 defineTypeNameAndDebug(bC10H7CH3, 0);
34 addToRunTimeSelectionTable(liquidProperties, bC10H7CH3,);
35 addToRunTimeSelectionTable(liquidProperties, bC10H7CH3, Istream);
36 addToRunTimeSelectionTable(liquidProperties, bC10H7CH3, dictionary);
39 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
41 Foam::bC10H7CH3::bC10H7CH3()
57 rho_(67.36014, 0.23843, 761, 0.2559),
58 pv_(134.31, -12103, -16.195, 6.9659e-06, 2),
59 hl_(761.0, 513150.492264416, 0.4044, 0.0, 0.0, 0.0),
60 Cp_(811.322081575246, 2.30225035161744, 0.0008628691983122, 0.0, 0.0, 0.0),
70 Cpg_(760.126582278481, 2699.08579465542, 1564.1, 1994.51476793249, 727.49),
79 mu_(-63.276, 4219, 7.5549, 0.0, 0.0),
80 mug_(2.1791e-06, 0.3717, 712.53, 0.0),
81 K_(0.1962, -0.00018414, 0.0, 0.0, 0.0, 0.0),
82 Kg_(0.4477, -0.1282, -345.89, 2340100),
83 sigma_(761.0, 0.066442, 1.2634, 0.0, 0.0, 0.0),
84 D_(147.18, 20.1, 142.2, 28) // note: Same as nHeptane
88 Foam::bC10H7CH3::bC10H7CH3
90 const liquidProperties& l,
91 const NSRDSfunc5& density,
92 const NSRDSfunc1& vapourPressure,
93 const NSRDSfunc6& heatOfVapourisation,
94 const NSRDSfunc0& heatCapacity,
95 const NSRDSfunc0& enthalpy,
96 const NSRDSfunc7& 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
109 hl_(heatOfVapourisation),
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::bC10H7CH3::bC10H7CH3(Istream& is)
125 liquidProperties(is),
142 Foam::bC10H7CH3::bC10H7CH3(const dictionary& dict)
144 liquidProperties(dict),
145 rho_(dict.subDict("rho")),
146 pv_(dict.subDict("pv")),
147 hl_(dict.subDict("hl")),
148 Cp_(dict.subDict("Cp")),
149 h_(dict.subDict("h")),
150 Cpg_(dict.subDict("Cpg")),
151 B_(dict.subDict("B")),
152 mu_(dict.subDict("mu")),
153 mug_(dict.subDict("mug")),
154 K_(dict.subDict("K")),
155 Kg_(dict.subDict("Kg")),
156 sigma_(dict.subDict("sigma")),
157 D_(dict.subDict("D"))
161 Foam::bC10H7CH3::bC10H7CH3(const bC10H7CH3& liq)
163 liquidProperties(liq),
180 // ************************************************************************* //