C3H8.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 "C3H8.H"
30
31// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32
33namespace Foam
34{
38}
39
40// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
41
43:
45 (
46 44.096,
47 369.83,
48 4.248e+6,
49 0.2, 0.276,
50 85.47,
51 1.685e-4,
52 231.11,
53 0.0,
54 0.1523,
55 1.31e+4
56 ),
57 rho_(60.6628672, 0.27453, 369.83, 0.29359),
58 pv_(59.078, -3492.6, -6.0669, 1.0919e-05, 2.0),
59 hl_(369.83, 662395.682148041, 0.78237, -0.77319, 0.39246, 0.0),
60 Cp_
61 (
62 369.83,
63 9.48470319647089,
64 2576.87772133527,
65 95.3560311677331,
66 -131.535634282099
67 ),
68 h_(0.0, 0.0, 0.0, 0.0, 0.0, 0.0),
69 Cpg_(1177.43105950653, 4364.34143686502, 1626.5, 2648.76632801161, 723.6),
70 B_
71 (
72 0.00255578737300435,
73 -2.24963715529753,
74 -102276.850507983,
75 7.00743831640058e+15,
76 -1.59878447024673e+18
77 ),
78 mu_(-6.9281, 420.76, -0.63276, -1.713e-26, 10.0),
79 mug_(2.4993e-07, 0.68612, 179.34, -8254.6),
80 kappa_(0.26755, -0.00066457, 2.774e-07, 0.0, 0.0, 0.0),
81 kappag_(-1.12, 0.10972, -9834.6, -7535800),
82 sigma_(369.83, 0.05092, 1.2197, 0.0, 0.0, 0.0),
83 D_(147.18, 20.1, 44.096, 28) // note: Same as nHeptane
84{}
85
86
88(
89 const liquidProperties& l,
90 const NSRDSfunc5& density,
91 const NSRDSfunc1& vapourPressure,
92 const NSRDSfunc6& heatOfVapourisation,
93 const NSRDSfunc14& heatCapacity,
94 const NSRDSfunc0& enthalpy,
95 const NSRDSfunc7& idealGasHeatCapacity,
96 const NSRDSfunc4& secondVirialCoeff,
97 const NSRDSfunc1& dynamicViscosity,
98 const NSRDSfunc2& vapourDynamicViscosity,
99 const NSRDSfunc0& thermalConductivity,
100 const NSRDSfunc2& vapourThermalConductivity,
101 const NSRDSfunc6& surfaceTension,
102 const APIdiffCoefFunc& vapourDiffussivity
103)
104:
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_(vapourDiffussivity)
119{}
120
121
123:
124 C3H8()
125{
126 readIfPresent(*this, dict);
127}
128
129
130// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
131
133{
134 liquidProperties::writeData(*this, os);
135}
136
137
138// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
139
141{
142 l.writeData(os);
143 return os;
144}
145
146
147// ************************************************************************* //
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.
propane
Definition: C3H8.H:63
void writeData(Ostream &os) const
Write the function coefficients.
Definition: C3H8.C:132
C3H8()
Construct null.
Definition: C3H8.C:42
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