C12H26.C
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2011-2017 OpenFOAM Foundation
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26\*---------------------------------------------------------------------------*/
27
28#include "C12H26.H"
30
31// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32
33namespace Foam
34{
38}
39
40// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
41
43:
45 (
46 170.338,
47 658.0,
48 1.82e+6,
49 0.716,
50 0.238,
51 263.57,
52 6.152e-1,
53 489.47,
54 0.0,
55 0.5764,
56 1.59e+4
57 ),
58 rho_(60.53982858, 0.25511, 658.0, 0.29368),
59 pv_(137.47, -11976.0, -16.698, 8.0906e-06, 2.0),
60 hl_(658.0, 454020.829174935, 0.40681, 0.0, 0.0, 0.0),
61 Cp_(2983.53861146661, -8.0352006011577, 0.018207916025784, 0.0, 0.0, 0.0),
62 h_
63 (
64 -2755166.83820769,
65 2983.53861146661,
66 -4.01760030057885,
67 0.00606930534192801,
68 0.0,
69 0.0
70 ),
71 Cpg_(1250.16144371778, 3894.02247296552, 1715.5, 2650.67101879792, 777.5),
72 B_
73 (
74 0.00516619896910848,
75 -6.40491258556517,
76 -295295.236529723,
77 -3.22147729807794e+19,
78 8.78195117941974e+21
79 ),
80 mu_(-20.607, 1943, 1.3205, 0.0, 0.0),
81 mug_(6.344e-08, 0.8287, 219.5, 0.0),
82 kappa_(0.2047, -0.0002326, 0.0, 0.0, 0.0, 0.0),
83 kappag_(5.719e-06, 1.4699, 579.4, 0.0),
84 sigma_(658.0, 0.055493, 1.3262, 0.0, 0.0, 0.0),
85 D_(147.18, 20.1, 170.338, 28.0) // note: Same as nHeptane
86{}
87
88
90(
91 const liquidProperties& l,
92 const NSRDSfunc5& density,
93 const NSRDSfunc1& vapourPressure,
94 const NSRDSfunc6& heatOfVapourisation,
95 const NSRDSfunc0& heatCapacity,
96 const NSRDSfunc0& enthalpy,
97 const NSRDSfunc7& idealGasHeatCapacity,
98 const NSRDSfunc4& secondVirialCoeff,
99 const NSRDSfunc1& dynamicViscosity,
100 const NSRDSfunc2& vapourDynamicViscosity,
101 const NSRDSfunc0& thermalConductivity,
102 const NSRDSfunc2& vapourThermalConductivity,
103 const NSRDSfunc6& surfaceTension,
104 const APIdiffCoefFunc& vapourDiffussivity
105)
106:
108 rho_(density),
109 pv_(vapourPressure),
110 hl_(heatOfVapourisation),
111 Cp_(heatCapacity),
112 h_(enthalpy),
113 Cpg_(idealGasHeatCapacity),
114 B_(secondVirialCoeff),
115 mu_(dynamicViscosity),
116 mug_(vapourDynamicViscosity),
117 kappa_(thermalConductivity),
118 kappag_(vapourThermalConductivity),
119 sigma_(surfaceTension),
120 D_(vapourDiffussivity)
121{}
122
123
125:
126 C12H26()
127{
128 readIfPresent(*this, dict);
129}
130
131
132// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
133
135{
136 liquidProperties::writeData(*this, os);
137}
138
139
140// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
141
143{
144 l.writeData(os);
145 return os;
146}
147
148
149// ************************************************************************* //
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
API function for vapour mass diffusivity.
nDodecane
Definition: C12H26.H:63
void writeData(Ostream &os) const
Write the function coefficients.
Definition: C12H26.C:134
C12H26()
Construct null.
Definition: C12H26.C:42
NSRDS function number 100.
Definition: NSRDSfunc0.H:72
NSRDS function number 101.
Definition: NSRDSfunc1.H:72
NSRDS function number 102.
Definition: NSRDSfunc2.H:72
NSRDS function number 104.
Definition: NSRDSfunc4.H:72
NSRDS function number 105.
Definition: NSRDSfunc5.H:72
NSRDS function number 106.
Definition: NSRDSfunc6.H:72
NSRDS-AICHE function number 107.
Definition: NSRDSfunc7.H:72
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:62
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
The thermophysical properties of a liquid.
void readIfPresent(const dictionary &dict)
Read and set the properties present it the given dictionary.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Definition: className.H:121
OBJstream os(runTime.globalPath()/outputName)
Namespace for OpenFOAM.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Definition: boundaryPatch.C:83
dictionary dict