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 -------------------------------------------------------------------------------
10 License
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 
33 namespace Foam
34 {
35  defineTypeNameAndDebug(C3H8, 0);
36  addToRunTimeSelectionTable(liquidProperties, C3H8,);
37  addToRunTimeSelectionTable(liquidProperties, C3H8, dictionary);
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 :
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_(vapourDiffussivity)
119 {}
120 
121 
123 :
124  C3H8()
125 {
126  readIfPresent(*this, dict);
127 }
128 
129 
130 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
131 
133 {
135 }
136 
137 
138 // * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
139 
141 {
142  l.writeData(os);
143  return os;
144 }
145 
146 
147 // ************************************************************************* //
Foam::addToRunTimeSelectionTable
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Foam::liquidProperties::writeData
virtual void writeData(Ostream &os) const =0
Write the function coefficients.
Definition: liquidProperties.C:240
C3H8.H
Foam::NSRDSfunc0
NSRDS function number 100.
Definition: NSRDSfunc0.H:69
Foam::NSRDSfunc7
NSRDS-AICHE function number 107.
Definition: NSRDSfunc7.H:69
Foam::C3H8::C3H8
C3H8()
Construct null.
Definition: C3H8.C:42
Foam::operator<<
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Definition: boundaryPatch.C:83
Foam::NSRDSfunc4
NSRDS function number 104.
Definition: NSRDSfunc4.H:69
Foam::liquidProperties
The thermophysical properties of a liquid.
Definition: liquidProperties.H:51
Foam::C3H8::writeData
void writeData(Ostream &os) const
Write the function coefficients.
Definition: C3H8.C:132
Foam::NSRDSfunc14
NSRDS function number 114.
Definition: NSRDSfunc14.H:69
Foam::APIdiffCoefFunc
API function for vapour mass diffusivity.
Definition: APIdiffCoefFunc.H:53
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
os
OBJstream os(runTime.globalPath()/outputName)
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam::NSRDSfunc1
NSRDS function number 101.
Definition: NSRDSfunc1.H:69
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::liquidProperties::readIfPresent
void readIfPresent(const dictionary &dict)
Read and set the properties present it the given dictionary.
Definition: liquidProperties.C:224
Foam::NSRDSfunc5
NSRDS function number 105.
Definition: NSRDSfunc5.H:69
Foam::C3H8
propane
Definition: C3H8.H:60
Foam::constant::electromagnetic::e
const dimensionedScalar e
Elementary charge.
Definition: createFields.H:11
Foam::NSRDSfunc2
NSRDS function number 102.
Definition: NSRDSfunc2.H:69
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56
Foam::defineTypeNameAndDebug
defineTypeNameAndDebug(combustionModel, 0)
Foam::NSRDSfunc6
NSRDS function number 106.
Definition: NSRDSfunc6.H:69