C7H16.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 "C7H16.H"
30
31// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32
33namespace Foam
34{
38}
39
40// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
41
43:
45 (
46 100.204,
47 540.20,
48 2.74e+6,
49 0.428,
50 0.261,
51 182.57,
52 1.8269e-1,
53 371.58,
54 0.0,
55 0.3495,
56 1.52e+4
57 ),
58 rho_(61.38396836, 0.26211, 540.2, 0.28141),
59 pv_(87.829, -6996.4, -9.8802, 7.2099e-06, 2.0),
60 hl_(540.20, 499121.791545248, 0.38795, 0.0, 0.0, 0.0),
61 Cp_
62 (
63 540.20,
64 6.11976102401216,
65 3137.69909384855,
66 182.274175063868,
67 -254.530511150515
68 ),
69 h_
70 (
71 -3.1469964e+6,
72 7.3072e+3,
73 -3.52884e+1,
74 1.10637e-1,
75 -1.634831e-4,
76 9.64941e-8
77 ),
78 Cpg_(1199.05392998284, 3992.85457666361, 1676.6, 2734.42177956968, 756.4),
79 B_
80 (
81 0.00274040956448844,
82 -2.90407568560137,
83 -440900.562851782,
84 -8.78208454752305e+17,
85 1.28238393676899e+20
86 ),
87 mu_(-24.451, 1533.1, 2.0087, 0.0, 0.0),
88 mug_(6.672e-08, 0.82837, 85.752, 0.0),
89 kappa_(0.215, -0.000303, 0.0, 0.0, 0.0, 0.0),
90 kappag_(-0.070028, 0.38068, -7049.9, -2400500.0),
91 sigma_(540.20, 0.054143, 1.2512, 0.0, 0.0, 0.0),
92 D_(147.18, 20.1, 100.204, 28.0)
93{}
94
95
97(
98 const liquidProperties& l,
99 const NSRDSfunc5& density,
100 const NSRDSfunc1& vapourPressure,
101 const NSRDSfunc6& heatOfVapourisation,
102 const NSRDSfunc14& heatCapacity,
103 const NSRDSfunc0& enthalpy,
104 const NSRDSfunc7& idealGasHeatCapacity,
105 const NSRDSfunc4& secondVirialCoeff,
106 const NSRDSfunc1& dynamicViscosity,
107 const NSRDSfunc2& vapourDynamicViscosity,
108 const NSRDSfunc0& thermalConductivity,
109 const NSRDSfunc2& vapourThermalConductivity,
110 const NSRDSfunc6& surfaceTension,
111 const APIdiffCoefFunc& vapourDiffussivity
112)
113:
115 rho_(density),
116 pv_(vapourPressure),
117 hl_(heatOfVapourisation),
118 Cp_(heatCapacity),
119 h_(enthalpy),
120 Cpg_(idealGasHeatCapacity),
121 B_(secondVirialCoeff),
122 mu_(dynamicViscosity),
123 mug_(vapourDynamicViscosity),
124 kappa_(thermalConductivity),
125 kappag_(vapourThermalConductivity),
126 sigma_(surfaceTension),
127 D_(vapourDiffussivity)
128{}
129
130
132:
133 C7H16()
134{
135 readIfPresent(*this, dict);
136}
137
138
139// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
140
142{
143 liquidProperties::writeData(*this, os);
144}
145
146
147// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
148
150{
151 l.writeData(os);
152 return os;
153}
154
155
156// ************************************************************************* //
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.
nHeptane
Definition: C7H16.H:63
C7H16()
Construct null.
Definition: C7H16.C:42
void writeData(Ostream &os) const
Write the function coefficients.
Definition: C7H16.C:141
NSRDS function number 100.
Definition: NSRDSfunc0.H:72
NSRDS function number 114.
Definition: NSRDSfunc14.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