C2H6O.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 "C2H6O.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  46.069,
49  400.10,
50  5.3702e+6,
51  0.17,
52  0.274,
53  131.65,
54  3.0849,
55  248.31,
56  4.3363e-30,
57  0.2036,
58  1.7572e+4
59  ),
60  rho_("rho", 69.472052, 0.26325, 400.1, 0.2806),
61  pv_("pv", 51.566, -3664.4, -4.653, 5.9e-06, 2),
62  hl_("hl", 400.10, 608435.173326966, 0.2477, -0.089, 0.203, 0),
63  Cp_
64  (
65  "Cp",
66  1491.24139877141,
67  11.3099915344375,
68  -0.067273003538171,
69  0.000136556035511949,
70  0.0,
71  0.0
72  ),
73  h_
74  (
75  "h",
76  -5024829.22619402,
77  1491.24139877141,
78  5.65499576721874,
79  -0.0224243345127237,
80  3.41390088779874e-05,
81  0.0
82  ),
83  Cpg_("Cpg", 950.747791356443, 3160.47667628991, 1284, 1291.5409494454, 520),
84  B_
85  (
86  "B",
87  0.00235082159369641,
88  -2.26616596843865,
89  -123293.320888233,
90  -8.87364605266014e+16,
91  1.46389111984198e+19
92  ),
93  mu_("mu", -10.62, 448.99, 8.3967e-05, 0.0, 0.0),
94  mug_("mug", 7.27, 0.1091, 440600000, 0.0),
95  kappa_("kappa", 0.31276, -0.0005677, 0.0, 0.0, 0.0, 0.0),
96  kappag_("kappag", 0.2247, 0.1026, 997.06, 1762900),
97  sigma_("sigma", 400.10, 0.06096, 1.2286, 0, 0, 0),
98  D_("D", 147.18, 20.1, 46.069, 28), // note: Same as nHeptane
99  hf_(h_.value(Tstd))
100 {}
101 
102 
104 (
105  const liquidProperties& l,
106  const Function1s::NSRDS5& density,
107  const Function1s::NSRDS1& vapourPressure,
108  const Function1s::NSRDS6& heatOfVapourisation,
109  const Function1s::NSRDS0& heatCapacity,
110  const Function1s::NSRDS0& enthalpy,
111  const Function1s::NSRDS7& idealGasHeatCapacity,
112  const Function1s::NSRDS4& secondVirialCoeff,
113  const Function1s::NSRDS1& dynamicViscosity,
114  const Function1s::NSRDS2& vapourDynamicViscosity,
115  const Function1s::NSRDS0& thermalConductivity,
116  const Function1s::NSRDS2& vapourThermalConductivity,
117  const Function1s::NSRDS6& surfaceTension,
118  const Function2s::APIdiffCoef& vapourDiffusivity
119 )
120 :
121  liquidProperties(l),
122  rho_(density),
123  pv_(vapourPressure),
124  hl_(heatOfVapourisation),
125  Cp_(heatCapacity),
126  h_(enthalpy),
127  Cpg_(idealGasHeatCapacity),
128  B_(secondVirialCoeff),
129  mu_(dynamicViscosity),
130  mug_(vapourDynamicViscosity),
131  kappa_(thermalConductivity),
132  kappag_(vapourThermalConductivity),
133  sigma_(surfaceTension),
134  D_(vapourDiffusivity),
135  hf_(h_.value(Tstd))
136 {}
137 
138 
139 
141 :
142  C2H6O()
143 {
144  readIfPresent(*this, dict);
145 }
146 
147 
148 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
149 
151 {
152  liquidProperties::write(*this, os);
153 }
154 
155 
156 // ************************************************************************* //
Macros for easy insertion into run-time selection tables.
diMethylEther
Definition: C2H6O.H:61
C2H6O()
Construct null.
Definition: C2H6O.C:43
void write(Ostream &os) const
Write the function coefficients.
Definition: C2H6O.C:150
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
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