aC10H7CH3.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-2021 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 "aC10H7CH3.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  142.2,
49  772.04,
50  3.66e+6,
51  0.523,
52  0.298,
53  242.67,
54  3.4929e-2,
55  517.83,
56  1.7012e-30,
57  0.3478,
58  2.0176e+4
59  ),
60  rho_("rho", 60.92559, 0.22408, 772.04, 0.25709),
61  pv_("pv", 73.716, -9103.2, -7.2253, 2.062e-06, 2),
62  hl_("hl", 772.04, 511744.022503516, 0.4164, 0, 0, 0),
63  Cp_("Cp", 965.893108298172, 1.16216596343179, 0.00298523206751055, 0, 0, 0),
64  h_
65  (
66  "h",
67  38161.6838138517,
68  965.893108298172,
69  0.581082981715893,
70  0.00099507735583685,
71  0,
72  0
73  ),
74  Cpg_
75  (
76  "Cpg",
77  743.389592123769,
78  2703.5864978903,
79  1548.5,
80  2031.64556962025,
81  722.06
82  ),
83  B_
84  (
85  "B",
86  0.00205555555555556,
87  -3.34423347398031,
88  -931153.305203938,
89  1.87601969057665e+18,
90  -2.06448663853727e+21
91  ),
92  mu_("mu", -93.6, 5784, 12, 0, 0),
93  mug_("mug", 2.5672e-06, 0.3566, 825.54, 0),
94  kappa_("kappa", 0.19758, -0.0001796, 0, 0, 0, 0),
95  kappag_("kappag", 0.3911, -0.1051, -213.52, 2318300),
96  sigma_("sigma", 772.04, 0.076, 1.33, 0, 0, 0),
97  D_("D", 147.18, 20.1, 142.2, 28), // note: Same as nHeptane
98  Hf_(h_.value(Tstd))
99 {}
100 
101 
103 (
104  const liquidProperties& l,
105  const Function1s::NSRDS5& density,
106  const Function1s::NSRDS1& vapourPressure,
107  const Function1s::NSRDS6& heatOfVapourisation,
108  const Function1s::NSRDS0& heatCapacity,
109  const Function1s::NSRDS0& enthalpy,
110  const Function1s::NSRDS7& idealGasHeatCapacity,
111  const Function1s::NSRDS4& secondVirialCoeff,
112  const Function1s::NSRDS1& dynamicViscosity,
113  const Function1s::NSRDS2& vapourDynamicViscosity,
114  const Function1s::NSRDS0& thermalConductivity,
115  const Function1s::NSRDS2& vapourThermalConductivity,
116  const Function1s::NSRDS6& surfaceTension,
117  const Function2s::APIdiffCoef& vapourDiffusivity
118 )
119 :
120  liquidProperties(l),
121  rho_(density),
122  pv_(vapourPressure),
123  hl_(heatOfVapourisation),
124  Cp_(heatCapacity),
125  h_(enthalpy),
126  Cpg_(idealGasHeatCapacity),
127  B_(secondVirialCoeff),
128  mu_(dynamicViscosity),
129  mug_(vapourDynamicViscosity),
130  kappa_(thermalConductivity),
131  kappag_(vapourThermalConductivity),
132  sigma_(surfaceTension),
133  D_(vapourDiffusivity),
134  Hf_(h_.value(Tstd))
135 {}
136 
137 
139 :
140  aC10H7CH3()
141 {
142  readIfPresent(*this, dict);
143 }
144 
145 
146 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
147 
149 {
150  liquidProperties::write(*this, os);
151 }
152 
153 
154 // ************************************************************************* //
Macros for easy insertion into run-time selection tables.
NSRDS function number 100.
Definition: NSRDS0.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
alphaMethylNaphthalene
Definition: aC10H7CH3.H:61
void write(Ostream &os) const
Write the function coefficients.
Definition: aC10H7CH3.C:148
aC10H7CH3()
Construct null.
Definition: aC10H7CH3.C:43
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
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.
defineTypeNameAndDebug(combustionModel, 0)
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
dictionary dict