C7H16.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 "C7H16.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  100.204,
49  540.20,
50  2.74e+6,
51  0.428,
52  0.261,
53  182.57,
54  1.8269e-1,
55  371.58,
56  0.0,
57  0.3495,
58  1.52e+4
59  ),
60  rho_("rho", 61.38396836, 0.26211, 540.2, 0.28141),
61  pv_("pv", 87.829, -6996.4, -9.8802, 7.2099e-06, 2.0),
62  hl_("hl", 540.20, 499121.791545248, 0.38795, 0.0, 0.0, 0.0),
63  Cp_
64  (
65  "Cp",
66  540.20,
67  6.11976102401216,
68  3137.69909384855,
69  182.274175063868,
70  -254.530511150515
71  ),
72  h_
73  (
74  "h",
75  -3.1469964e+6,
76  7.3072e+3,
77  -3.52884e+1,
78  1.10637e-1,
79  -1.634831e-4,
80  9.64941e-8
81  ),
82  Cpg_
83  (
84  "Cpg",
85  1199.05392998284,
86  3992.85457666361,
87  1676.6,
88  2734.42177956968,
89  756.4
90  ),
91  B_
92  (
93  "B",
94  0.00274040956448844,
95  -2.90407568560137,
96  -440900.562851782,
97  -8.78208454752305e+17,
98  1.28238393676899e+20
99  ),
100  mu_("mu", -24.451, 1533.1, 2.0087, 0.0, 0.0),
101  mug_("mug", 6.672e-08, 0.82837, 85.752, 0.0),
102  kappa_("kappa", 0.215, -0.000303, 0.0, 0.0, 0.0, 0.0),
103  kappag_("kappag", -0.070028, 0.38068, -7049.9, -2400500.0),
104  sigma_("sigma", 540.20, 0.054143, 1.2512, 0.0, 0.0, 0.0),
105  D_("D", 147.18, 20.1, 100.204, 28.0),
106  hf_(h_.value(Tstd))
107 {}
108 
109 
111 (
112  const liquidProperties& l,
113  const Function1s::NSRDS5& density,
114  const Function1s::NSRDS1& vapourPressure,
115  const Function1s::NSRDS6& heatOfVapourisation,
116  const Function1s::NSRDS14& heatCapacity,
117  const Function1s::NSRDS0& enthalpy,
118  const Function1s::NSRDS7& idealGasHeatCapacity,
119  const Function1s::NSRDS4& secondVirialCoeff,
120  const Function1s::NSRDS1& dynamicViscosity,
121  const Function1s::NSRDS2& vapourDynamicViscosity,
122  const Function1s::NSRDS0& thermalConductivity,
123  const Function1s::NSRDS2& vapourThermalConductivity,
124  const Function1s::NSRDS6& surfaceTension,
125  const Function2s::APIdiffCoef& vapourDiffusivity
126 )
127 :
128  liquidProperties(l),
129  rho_(density),
130  pv_(vapourPressure),
131  hl_(heatOfVapourisation),
132  Cp_(heatCapacity),
133  h_(enthalpy),
134  Cpg_(idealGasHeatCapacity),
135  B_(secondVirialCoeff),
136  mu_(dynamicViscosity),
137  mug_(vapourDynamicViscosity),
138  kappa_(thermalConductivity),
139  kappag_(vapourThermalConductivity),
140  sigma_(surfaceTension),
141  D_(vapourDiffusivity),
142  hf_(h_.value(Tstd))
143 {}
144 
145 
147 :
148  C7H16()
149 {
150  readIfPresent(*this, dict);
151 }
152 
153 
154 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
155 
157 {
158  liquidProperties::write(*this, os);
159 }
160 
161 
162 // ************************************************************************* //
Macros for easy insertion into run-time selection tables.
nHeptane
Definition: C7H16.H:61
C7H16()
Construct null.
Definition: C7H16.C:43
void write(Ostream &os) const
Write the function coefficients.
Definition: C7H16.C:156
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