All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
C12H26.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-2019 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 "C12H26.H"
28 
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
33  defineTypeNameAndDebug(C12H26, 0);
34  addToRunTimeSelectionTable(liquidProperties, C12H26,);
35  addToRunTimeSelectionTable(liquidProperties, C12H26, dictionary);
36 }
37 
38 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
39 
41 :
43  (
44  170.338,
45  658.0,
46  1.82e+6,
47  0.716,
48  0.238,
49  263.57,
50  6.152e-1,
51  489.47,
52  0.0,
53  0.5764,
54  1.59e+4
55  ),
56  rho_(60.53982858, 0.25511, 658.0, 0.29368),
57  pv_(137.47, -11976.0, -16.698, 8.0906e-06, 2.0),
58  hl_(658.0, 454020.829174935, 0.40681, 0.0, 0.0, 0.0),
59  Cp_(2983.53861146661, -8.0352006011577, 0.018207916025784, 0.0, 0.0, 0.0),
60  h_
61  (
62  -2755166.83820769,
63  2983.53861146661,
64  -4.01760030057885,
65  0.00606930534192801,
66  0.0,
67  0.0
68  ),
69  Cpg_(1250.16144371778, 3894.02247296552, 1715.5, 2650.67101879792, 777.5),
70  B_
71  (
72  0.00516619896910848,
73  -6.40491258556517,
74  -295295.236529723,
75  -3.22147729807794e+19,
76  8.78195117941974e+21
77  ),
78  mu_(-20.607, 1943, 1.3205, 0.0, 0.0),
79  mug_(6.344e-08, 0.8287, 219.5, 0.0),
80  kappa_(0.2047, -0.0002326, 0.0, 0.0, 0.0, 0.0),
81  kappag_(5.719e-06, 1.4699, 579.4, 0.0),
82  sigma_(658.0, 0.055493, 1.3262, 0.0, 0.0, 0.0),
83  D_(147.18, 20.1, 170.338, 28.0) // note: Same as nHeptane
84 {}
85 
86 
88 (
89  const liquidProperties& l,
90  const thermophysicalFunctions::NSRDS5& density,
91  const thermophysicalFunctions::NSRDS1& vapourPressure,
92  const thermophysicalFunctions::NSRDS6& heatOfVapourisation,
93  const thermophysicalFunctions::NSRDS0& heatCapacity,
94  const thermophysicalFunctions::NSRDS0& enthalpy,
95  const thermophysicalFunctions::NSRDS7& idealGasHeatCapacity,
96  const thermophysicalFunctions::NSRDS4& secondVirialCoeff,
97  const thermophysicalFunctions::NSRDS1& dynamicViscosity,
98  const thermophysicalFunctions::NSRDS2& vapourDynamicViscosity,
99  const thermophysicalFunctions::NSRDS0& thermalConductivity,
100  const thermophysicalFunctions::NSRDS2& vapourThermalConductivity,
101  const thermophysicalFunctions::NSRDS6& surfaceTension,
102  const thermophysicalFunctions::APIdiffCoef& vapourDiffusivity
103 )
104 :
105  liquidProperties(l),
106  rho_(density),
107  pv_(vapourPressure),
108  hl_(heatOfVapourisation),
109  Cp_(heatCapacity),
110  h_(enthalpy),
111  Cpg_(idealGasHeatCapacity),
112  B_(secondVirialCoeff),
113  mu_(dynamicViscosity),
114  mug_(vapourDynamicViscosity),
115  kappa_(thermalConductivity),
116  kappag_(vapourThermalConductivity),
117  sigma_(surfaceTension),
118  D_(vapourDiffusivity)
119 {}
120 
121 
123 :
124  C12H26()
125 {
126  readIfPresent(*this, dict);
127 }
128 
129 
130 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
131 
133 {
134  liquidProperties::write(*this, os);
135 }
136 
137 
138 // ************************************************************************* //
nDodecane
Definition: C12H26.H:58
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
void readIfPresent(const dictionary &dict)
Read and set the properties present it the given dictionary.
Macros for easy insertion into run-time selection tables.
C12H26()
Construct null.
Definition: C12H26.C:40
The thermophysical properties of a liquid.
void write(Ostream &os) const
Write the function coefficients.
Definition: C12H26.C:132
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:54
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
friend class liquidProperties
Definition: C12H26.H:81
const doubleScalar e
Elementary charge.
Definition: doubleScalar.H:105
virtual void write(Ostream &os) const =0
Write the function coefficients.
Namespace for OpenFOAM.