1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
5 \\ / A nd | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
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 -------------------------------------------------------------------------------
28 #include "addToRunTimeSelectionTable.H"
30 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
34 defineTypeNameAndDebug(CH4N2O, 0);
35 addToRunTimeSelectionTable(liquid, CH4N2O,);
36 addToRunTimeSelectionTable(liquid, CH4N2O, Istream);
39 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
41 Foam::CH4N2O::CH4N2O()
57 rho_(1230.006936, 0.0, 0.0, 0.0, 0.0, 0.0),
58 pv_(3015.15611544, -185497.059684, -430.223621983, 0.00017405122622, 2.0),
59 hl_(705.0, 2534249.0, 0.5, 0.0, 0.0, 0.0),
60 cp_(2006.46063673904, 0.0, 0.0, 0.0, 0.0, 0.0),
61 h_(-6154107.41641135, 2006.46063673904, 0.0, 0.0, 0.0, 0.0),
62 cpg_(811.875582789397, 2099.04089516451, 1627.3, 1603.63660583455, 724.41),
65 -0.000383641934194752,
71 mu_(-51.964, 3670.6, 5.7331, -5.3495e-29, 10.0),
72 mug_(2.6986e-06, 0.498, 1257.7, -19570.0),
73 K_(-0.4267, 0.0056903, -8.0065e-06, 1.815e-09, 0.0, 0.0),
74 Kg_(6.977e-05, 1.1243, 844.9, -148850.0),
75 sigma_(705.0, 1.0, 0.0, 0.0, 0.0, 0.0), // note: set to constant
76 D_(147.18, 20.1, 60.056, 28.0) // note: Same as nHeptane
83 const NSRDSfunc0& density,
84 const NSRDSfunc1& vapourPressure,
85 const NSRDSfunc6& heatOfVapourisation,
86 const NSRDSfunc0& heatCapacity,
87 const NSRDSfunc0& enthalpy,
88 const NSRDSfunc7& idealGasHeatCapacity,
89 const NSRDSfunc4& secondVirialCoeff,
90 const NSRDSfunc1& dynamicViscosity,
91 const NSRDSfunc2& vapourDynamicViscosity,
92 const NSRDSfunc0& thermalConductivity,
93 const NSRDSfunc2& vapourThermalConductivity,
94 const NSRDSfunc6& surfaceTension,
95 const APIdiffCoefFunc& vapourDiffussivity
101 hl_(heatOfVapourisation),
104 cpg_(idealGasHeatCapacity),
105 B_(secondVirialCoeff),
106 mu_(dynamicViscosity),
107 mug_(vapourDynamicViscosity),
108 K_(thermalConductivity),
109 Kg_(vapourThermalConductivity),
110 sigma_(surfaceTension),
111 D_(vapourDiffussivity)
115 Foam::CH4N2O::CH4N2O(Istream& is)
134 // ************************************************************************* //