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(C3H8, 0);
34 addToRunTimeSelectionTable(liquidProperties, C3H8,);
35 addToRunTimeSelectionTable(liquidProperties, C3H8, Istream);
36 addToRunTimeSelectionTable(liquidProperties, C3H8, dictionary);
39 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
56 rho_(60.6628672, 0.27453, 369.83, 0.29359),
57 pv_(59.078, -3492.6, -6.0669, 1.0919e-05, 2.0),
58 hl_(369.83, 662395.682148041, 0.78237, -0.77319, 0.39246, 0.0),
67 h_(0.0, 0.0, 0.0, 0.0, 0.0, 0.0),
68 Cpg_(1177.43105950653, 4364.34143686502, 1626.5, 2648.76632801161, 723.6),
77 mu_(-6.9281, 420.76, -0.63276, -1.713e-26, 10.0),
78 mug_(2.4993e-07, 0.68612, 179.34, -8254.6),
79 K_(0.26755, -0.00066457, 2.774e-07, 0.0, 0.0, 0.0),
80 Kg_(-1.12, 0.10972, -9834.6, -7535800),
81 sigma_(369.83, 0.05092, 1.2197, 0.0, 0.0, 0.0),
82 D_(147.18, 20.1, 44.096, 28) // note: Same as nHeptane
88 const liquidProperties& l,
89 const NSRDSfunc5& density,
90 const NSRDSfunc1& vapourPressure,
91 const NSRDSfunc6& heatOfVapourisation,
92 const NSRDSfunc14& heatCapacity,
93 const NSRDSfunc0& enthalpy,
94 const NSRDSfunc7& idealGasHeatCapacity,
95 const NSRDSfunc4& secondVirialCoeff,
96 const NSRDSfunc1& dynamicViscosity,
97 const NSRDSfunc2& vapourDynamicViscosity,
98 const NSRDSfunc0& thermalConductivity,
99 const NSRDSfunc2& vapourThermalConductivity,
100 const NSRDSfunc6& surfaceTension,
101 const APIdiffCoefFunc& vapourDiffussivity
107 hl_(heatOfVapourisation),
110 Cpg_(idealGasHeatCapacity),
111 B_(secondVirialCoeff),
112 mu_(dynamicViscosity),
113 mug_(vapourDynamicViscosity),
114 K_(thermalConductivity),
115 Kg_(vapourThermalConductivity),
116 sigma_(surfaceTension),
117 D_(vapourDiffussivity)
121 Foam::C3H8::C3H8(Istream& is)
123 liquidProperties(is),
140 Foam::C3H8::C3H8(const dictionary& dict)
142 liquidProperties(dict),
143 rho_(dict.subDict("rho")),
144 pv_(dict.subDict("pv")),
145 hl_(dict.subDict("hl")),
146 Cp_(dict.subDict("Cp")),
147 h_(dict.subDict("h")),
148 Cpg_(dict.subDict("Cpg")),
149 B_(dict.subDict("B")),
150 mu_(dict.subDict("mu")),
151 mug_(dict.subDict("mug")),
152 K_(dict.subDict("K")),
153 Kg_(dict.subDict("Kg")),
154 sigma_(dict.subDict("sigma")),
155 D_(dict.subDict("D"))
159 Foam::C3H8::C3H8(const C3H8& liq)
161 liquidProperties(liq),
178 // ************************************************************************* //