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 | Copyright (C) 2011 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 "C3H8.H"
28 
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
33  defineTypeNameAndDebug(C3H8, 0);
34  addToRunTimeSelectionTable(liquidProperties, C3H8,);
35  addToRunTimeSelectionTable(liquidProperties, C3H8, Istream);
36  addToRunTimeSelectionTable(liquidProperties, C3H8, dictionary);
37 }
38 
39 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
40 
42 :
44  (
45  44.096,
46  369.83,
47  4.248e+6,
48  0.2, 0.276,
49  85.47,
50  1.685e-4,
51  231.11,
52  0.0,
53  0.1523,
54  1.31e+4
55  ),
56  rho_(60.6628672, 0.27453, 369.83, 0.29359),
57  pv_(59.078, -3492.6, -6.0669, 1.0919e-05, 2.0),
58  hl_(369.83, 662395.682148041, 0.78237, -0.77319, 0.39246, 0.0),
59  Cp_
60  (
61  369.83,
62  9.48470319647089,
63  2576.87772133527,
64  95.3560311677331,
65  -131.535634282099
66  ),
67  h_(0.0, 0.0, 0.0, 0.0, 0.0, 0.0),
68  Cpg_(1177.43105950653, 4364.34143686502, 1626.5, 2648.76632801161, 723.6),
69  B_
70  (
71  0.00255578737300435,
72  -2.24963715529753,
73  -102276.850507983,
74  7.00743831640058e+15,
75  -1.59878447024673e+18
76  ),
77  mu_(-6.9281, 420.76, -0.63276, -1.713e-26, 10.0),
78  mug_(2.4993e-07, 0.68612, 179.34, -8254.6),
79  K_(0.26755, -0.00066457, 2.774e-07, 0.0, 0.0, 0.0),
80  Kg_(-1.12, 0.10972, -9834.6, -7535800),
81  sigma_(369.83, 0.05092, 1.2197, 0.0, 0.0, 0.0),
82  D_(147.18, 20.1, 44.096, 28) // note: Same as nHeptane
83 {}
84 
85 
87 (
88  const liquidProperties& l,
89  const NSRDSfunc5& density,
90  const NSRDSfunc1& vapourPressure,
91  const NSRDSfunc6& heatOfVapourisation,
92  const NSRDSfunc14& heatCapacity,
93  const NSRDSfunc0& enthalpy,
94  const NSRDSfunc7& idealGasHeatCapacity,
95  const NSRDSfunc4& secondVirialCoeff,
96  const NSRDSfunc1& dynamicViscosity,
97  const NSRDSfunc2& vapourDynamicViscosity,
98  const NSRDSfunc0& thermalConductivity,
99  const NSRDSfunc2& vapourThermalConductivity,
100  const NSRDSfunc6& surfaceTension,
101  const APIdiffCoefFunc& vapourDiffussivity
102 )
103 :
104  liquidProperties(l),
105  rho_(density),
106  pv_(vapourPressure),
107  hl_(heatOfVapourisation),
108  Cp_(heatCapacity),
109  h_(enthalpy),
110  Cpg_(idealGasHeatCapacity),
111  B_(secondVirialCoeff),
112  mu_(dynamicViscosity),
113  mug_(vapourDynamicViscosity),
114  K_(thermalConductivity),
115  Kg_(vapourThermalConductivity),
116  sigma_(surfaceTension),
117  D_(vapourDiffussivity)
118 {}
119 
120 
122 :
123  liquidProperties(is),
124  rho_(is),
125  pv_(is),
126  hl_(is),
127  Cp_(is),
128  h_(is),
129  Cpg_(is),
130  B_(is),
131  mu_(is),
132  mug_(is),
133  K_(is),
134  Kg_(is),
135  sigma_(is),
136  D_(is)
137 {}
138 
139 
141 :
143  rho_(dict.subDict("rho")),
144  pv_(dict.subDict("pv")),
145  hl_(dict.subDict("hl")),
146  Cp_(dict.subDict("Cp")),
147  h_(dict.subDict("h")),
148  Cpg_(dict.subDict("Cpg")),
149  B_(dict.subDict("B")),
150  mu_(dict.subDict("mu")),
151  mug_(dict.subDict("mug")),
152  K_(dict.subDict("K")),
153  Kg_(dict.subDict("Kg")),
154  sigma_(dict.subDict("sigma")),
155  D_(dict.subDict("D"))
156 {}
157 
158 
160 :
161  liquidProperties(liq),
162  rho_(liq.rho_),
163  pv_(liq.pv_),
164  hl_(liq.hl_),
165  Cp_(liq.Cp_),
166  h_(liq.h_),
167  Cpg_(liq.Cpg_),
168  B_(liq.B_),
169  mu_(liq.mu_),
170  mug_(liq.mug_),
171  K_(liq.K_),
172  Kg_(liq.Kg_),
173  sigma_(liq.sigma_),
174  D_(liq.D_)
175 {}
176 
177 
178 // ************************************************************************* //
Foam::addToRunTimeSelectionTable
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
C3H8.H
Foam::NSRDSfunc0
NSRDS function number 100.
Definition: NSRDSfunc0.H:67
Foam::NSRDSfunc7
NSRDS-AICHE function number 107.
Definition: NSRDSfunc7.H:67
Foam::C3H8::C3H8
C3H8()
Construct null.
Definition: C3H8.C:41
Foam::NSRDSfunc4
NSRDS function number 104.
Definition: NSRDSfunc4.H:67
Foam::liquidProperties
The thermophysical properties of a liquidProperties.
Definition: liquidProperties.H:53
Foam::Istream
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:57
Foam::NSRDSfunc14
NSRDS function number 114.
Definition: NSRDSfunc14.H:67
Foam::APIdiffCoefFunc
API function for vapour mass diffusivity.
Definition: APIdiffCoefFunc.H:51
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam::NSRDSfunc1
NSRDS function number 101.
Definition: NSRDSfunc1.H:67
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::NSRDSfunc5
NSRDS function number 105.
Definition: NSRDSfunc5.H:67
Foam::C3H8
propane
Definition: C3H8.H:58
Foam::constant::electromagnetic::e
const dimensionedScalar e
Elementary charge.
Definition: doubleFloat.H:94
Foam::NSRDSfunc2
NSRDS function number 102.
Definition: NSRDSfunc2.H:67
Foam::defineTypeNameAndDebug
defineTypeNameAndDebug(combustionModel, 0)
Foam::NSRDSfunc6
NSRDS function number 106.
Definition: NSRDSfunc6.H:67