C3H8.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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
19  for more details.
20 
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/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
26 #include "C3H8.H"
28 
29 #include "thermodynamicConstants.H"
30 using namespace Foam::constant::thermodynamic;
31 
32 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
33 
34 namespace Foam
35 {
39 }
40 
41 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
42 
44 :
46  (
47  typeName,
48  44.096,
49  369.83,
50  4.248e+6,
51  0.2, 0.276,
52  85.47,
53  1.685e-4,
54  231.11,
55  0.0,
56  0.1523,
57  1.31e+4
58  ),
59  rho_("rho", 60.6628672, 0.27453, 369.83, 0.29359),
60  pv_("pv", 59.078, -3492.6, -6.0669, 1.0919e-05, 2.0),
61  hl_("hl", 369.83, 662395.682148041, 0.78237, -0.77319, 0.39246, 0.0),
62  Cp_
63  (
64  "Cp",
65  369.83,
66  9.48470319647089,
67  2576.87772133527,
68  95.3560311677331,
69  -131.535634282099
70  ),
71  h_("h", 0.0, 0.0, 0.0, 0.0, 0.0, 0.0),
72  Cpg_
73  (
74  "Cpg",
75  1177.43105950653,
76  4364.34143686502,
77  1626.5,
78  2648.76632801161,
79  723.6
80  ),
81  B_
82  (
83  "B",
84  0.00255578737300435,
85  -2.24963715529753,
86  -102276.850507983,
87  7.00743831640058e+15,
88  -1.59878447024673e+18
89  ),
90  mu_("mu", -6.9281, 420.76, -0.63276, -1.713e-26, 10.0),
91  mug_("mug", 2.4993e-07, 0.68612, 179.34, -8254.6),
92  kappa_("kappa", 0.26755, -0.00066457, 2.774e-07, 0.0, 0.0, 0.0),
93  kappag_("kappag", -1.12, 0.10972, -9834.6, -7535800),
94  sigma_("sigma", 369.83, 0.05092, 1.2197, 0.0, 0.0, 0.0),
95  D_("D", 147.18, 20.1, 44.096, 28), // note: Same as nHeptane
96  hf_(h_.value(Tstd))
97 {}
98 
99 
101 (
102  const liquidProperties& l,
103  const Function1s::NSRDS5& density,
104  const Function1s::NSRDS1& vapourPressure,
105  const Function1s::NSRDS6& heatOfVapourisation,
106  const Function1s::NSRDS14& heatCapacity,
107  const Function1s::NSRDS0& enthalpy,
108  const Function1s::NSRDS7& idealGasHeatCapacity,
109  const Function1s::NSRDS4& secondVirialCoeff,
110  const Function1s::NSRDS1& dynamicViscosity,
111  const Function1s::NSRDS2& vapourDynamicViscosity,
112  const Function1s::NSRDS0& thermalConductivity,
113  const Function1s::NSRDS2& vapourThermalConductivity,
114  const Function1s::NSRDS6& surfaceTension,
115  const Function2s::APIdiffCoef& vapourDiffusivity
116 )
117 :
118  liquidProperties(l),
119  rho_(density),
120  pv_(vapourPressure),
121  hl_(heatOfVapourisation),
122  Cp_(heatCapacity),
123  h_(enthalpy),
124  Cpg_(idealGasHeatCapacity),
125  B_(secondVirialCoeff),
126  mu_(dynamicViscosity),
127  mug_(vapourDynamicViscosity),
128  kappa_(thermalConductivity),
129  kappag_(vapourThermalConductivity),
130  sigma_(surfaceTension),
131  D_(vapourDiffusivity),
132  hf_(h_.value(Tstd))
133 {}
134 
135 
137 :
138  C3H8()
139 {
140  readIfPresent(*this, dict);
141 }
142 
143 
144 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
145 
146 void Foam::C3H8::write(Ostream& os) const
147 {
148  liquidProperties::write(*this, os);
149 }
150 
151 
152 // ************************************************************************* //
Macros for easy insertion into run-time selection tables.
propane
Definition: C3H8.H:61
void write(Ostream &os) const
Write the function coefficients.
Definition: C3H8.C:146
C3H8()
Construct null.
Definition: C3H8.C:43
NSRDS function number 100.
Definition: NSRDS0.H:72
NSRDS function number 114.
Definition: NSRDS14.H:72
NSRDS function number 101.
Definition: NSRDS1.H:72
NSRDS function number 102.
Definition: NSRDS2.H:72
NSRDS function number 104.
Definition: NSRDS4.H:72
NSRDS function number 105.
Definition: NSRDS5.H:72
NSRDS function number 106.
Definition: NSRDS6.H:72
NSRDS-AICHE function number 107.
Definition: NSRDS7.H:72
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:57
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:162
The thermophysical properties of a liquid.
virtual void write(Ostream &os) const =0
Write the function coefficients.
void readIfPresent(const dictionary &dict)
Read and set the properties present it the given dictionary.
const dimensionedScalar Tstd
Standard temperature.
Thermodynamic scalar constants.
const scalar & Tstd
Standard temperature (default in [K])
Namespace for OpenFOAM.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
defineTypeNameAndDebug(combustionModel, 0)
dictionary dict