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 -------------------------------------------------------------------------------
28 #include "addToRunTimeSelectionTable.H"
30 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
34 defineTypeNameAndDebug(CH4N2O, 0);
35 addToRunTimeSelectionTable(liquidProperties, CH4N2O,);
36 addToRunTimeSelectionTable(liquidProperties, CH4N2O, Istream);
37 addToRunTimeSelectionTable(liquidProperties, CH4N2O, dictionary);
40 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
42 Foam::CH4N2O::CH4N2O()
58 rho_(1230.006936, 0.0, 0.0, 0.0, 0.0, 0.0),
59 pv_(3015.15611544, -185497.059684, -430.223621983, 0.00017405122622, 2.0),
60 hl_(705.0, 2534249.0, 0.5, 0.0, 0.0, 0.0),
61 Cp_(2006.46063673904, 0.0, 0.0, 0.0, 0.0, 0.0),
62 h_(-6154107.41641135, 2006.46063673904, 0.0, 0.0, 0.0, 0.0),
63 Cpg_(811.875582789397, 2099.04089516451, 1627.3, 1603.63660583455, 724.41),
66 -0.000383641934194752,
72 mu_(-51.964, 3670.6, 5.7331, -5.3495e-29, 10.0),
73 mug_(2.6986e-06, 0.498, 1257.7, -19570.0),
74 K_(-0.4267, 0.0056903, -8.0065e-06, 1.815e-09, 0.0, 0.0),
75 Kg_(6.977e-05, 1.1243, 844.9, -148850.0),
76 sigma_(705.0, 1.0, 0.0, 0.0, 0.0, 0.0), // note: set to constant
77 D_(147.18, 20.1, 60.056, 28.0) // note: Same as nHeptane
83 const liquidProperties& l,
84 const NSRDSfunc0& density,
85 const NSRDSfunc1& vapourPressure,
86 const NSRDSfunc6& heatOfVapourisation,
87 const NSRDSfunc0& heatCapacity,
88 const NSRDSfunc0& enthalpy,
89 const NSRDSfunc7& idealGasHeatCapacity,
90 const NSRDSfunc4& secondVirialCoeff,
91 const NSRDSfunc1& dynamicViscosity,
92 const NSRDSfunc2& vapourDynamicViscosity,
93 const NSRDSfunc0& thermalConductivity,
94 const NSRDSfunc2& vapourThermalConductivity,
95 const NSRDSfunc6& surfaceTension,
96 const APIdiffCoefFunc& vapourDiffussivity
102 hl_(heatOfVapourisation),
105 Cpg_(idealGasHeatCapacity),
106 B_(secondVirialCoeff),
107 mu_(dynamicViscosity),
108 mug_(vapourDynamicViscosity),
109 K_(thermalConductivity),
110 Kg_(vapourThermalConductivity),
111 sigma_(surfaceTension),
112 D_(vapourDiffussivity)
116 Foam::CH4N2O::CH4N2O(Istream& is)
118 liquidProperties(is),
135 Foam::CH4N2O::CH4N2O(const dictionary& dict)
137 liquidProperties(dict),
138 rho_(dict.subDict("rho")),
139 pv_(dict.subDict("pv")),
140 hl_(dict.subDict("hl")),
141 Cp_(dict.subDict("Cp")),
142 h_(dict.subDict("h")),
143 Cpg_(dict.subDict("Cpg")),
144 B_(dict.subDict("B")),
145 mu_(dict.subDict("mu")),
146 mug_(dict.subDict("mug")),
147 K_(dict.subDict("K")),
148 Kg_(dict.subDict("Kg")),
149 sigma_(dict.subDict("sigma")),
150 D_(dict.subDict("D"))
154 Foam::CH4N2O::CH4N2O(const CH4N2O& liq)
156 liquidProperties(liq),
173 // ************************************************************************* //