CH4N2O.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-2013 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 "CH4N2O.H"
28 
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
33  defineTypeNameAndDebug(CH4N2O, 0);
34  addToRunTimeSelectionTable(liquidProperties, CH4N2O,);
35  addToRunTimeSelectionTable(liquidProperties, CH4N2O, Istream);
36  addToRunTimeSelectionTable(liquidProperties, CH4N2O, dictionary);
37 }
38 
39 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
40 
42 :
44  (
45  60.056,
46  705.0,
47  9.050e+6,
48  0.218,
49  0.337,
50  405.85,
51  9.3131e+1,
52  465.0,
53  1.52e-29,
54  0.3449,
55  4.7813e+4
56  ),
57  rho_(1230.006936, 0.0, 0.0, 0.0, 0.0, 0.0),
58  pv_(3015.15611544, -185497.059684, -430.223621983, 0.00017405122622, 2.0),
59  hl_(705.0, 2534249.0, 0.5, 0.0, 0.0, 0.0),
60  Cp_(2006.46063673904, 0.0, 0.0, 0.0, 0.0, 0.0),
61  h_(-6154107.41641135, 2006.46063673904, 0.0, 0.0, 0.0, 0.0),
62  Cpg_(811.875582789397, 2099.04089516451, 1627.3, 1603.63660583455, 724.41),
63  B_
64  (
65  -0.000383641934194752,
66  0.447249234048222,
67  -469062.208605302,
68  5.5628080458239e+18,
69  -2.3040162514986e+21
70  ),
71  mu_(-51.964, 3670.6, 5.7331, -5.3495e-29, 10.0),
72  mug_(2.6986e-06, 0.498, 1257.7, -19570.0),
73  K_(-0.4267, 0.0056903, -8.0065e-06, 1.815e-09, 0.0, 0.0),
74  Kg_(6.977e-05, 1.1243, 844.9, -148850.0),
75  sigma_(705.0, 1.0, 0.0, 0.0, 0.0, 0.0), // note: set to constant
76  D_(147.18, 20.1, 60.056, 28.0) // note: Same as nHeptane
77 {}
78 
79 
81 (
82  const liquidProperties& l,
83  const NSRDSfunc0& density,
84  const NSRDSfunc1& vapourPressure,
85  const NSRDSfunc6& heatOfVapourisation,
86  const NSRDSfunc0& heatCapacity,
87  const NSRDSfunc0& enthalpy,
88  const NSRDSfunc7& idealGasHeatCapacity,
89  const NSRDSfunc4& secondVirialCoeff,
90  const NSRDSfunc1& dynamicViscosity,
91  const NSRDSfunc2& vapourDynamicViscosity,
92  const NSRDSfunc0& thermalConductivity,
93  const NSRDSfunc2& vapourThermalConductivity,
94  const NSRDSfunc6& surfaceTension,
95  const APIdiffCoefFunc& vapourDiffussivity
96 )
97 :
99  rho_(density),
100  pv_(vapourPressure),
101  hl_(heatOfVapourisation),
102  Cp_(heatCapacity),
103  h_(enthalpy),
104  Cpg_(idealGasHeatCapacity),
105  B_(secondVirialCoeff),
106  mu_(dynamicViscosity),
107  mug_(vapourDynamicViscosity),
108  K_(thermalConductivity),
109  Kg_(vapourThermalConductivity),
110  sigma_(surfaceTension),
111  D_(vapourDiffussivity)
112 {}
113 
114 
116 :
117  liquidProperties(is),
118  rho_(is),
119  pv_(is),
120  hl_(is),
121  Cp_(is),
122  h_(is),
123  Cpg_(is),
124  B_(is),
125  mu_(is),
126  mug_(is),
127  K_(is),
128  Kg_(is),
129  sigma_(is),
130  D_(is)
131 {}
132 
133 
135 :
137  rho_(dict.subDict("rho")),
138  pv_(dict.subDict("pv")),
139  hl_(dict.subDict("hl")),
140  Cp_(dict.subDict("Cp")),
141  h_(dict.subDict("h")),
142  Cpg_(dict.subDict("Cpg")),
143  B_(dict.subDict("B")),
144  mu_(dict.subDict("mu")),
145  mug_(dict.subDict("mug")),
146  K_(dict.subDict("K")),
147  Kg_(dict.subDict("Kg")),
148  sigma_(dict.subDict("sigma")),
149  D_(dict.subDict("D"))
150 {}
151 
152 
154 :
155  liquidProperties(liq),
156  rho_(liq.rho_),
157  pv_(liq.pv_),
158  hl_(liq.hl_),
159  Cp_(liq.Cp_),
160  h_(liq.h_),
161  Cpg_(liq.Cpg_),
162  B_(liq.B_),
163  mu_(liq.mu_),
164  mug_(liq.mug_),
165  K_(liq.K_),
166  Kg_(liq.Kg_),
167  sigma_(liq.sigma_),
168  D_(liq.D_)
169 {}
170 
171 
172 // ************************************************************************* //
Foam::addToRunTimeSelectionTable
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
Foam::NSRDSfunc0
NSRDS function number 100.
Definition: NSRDSfunc0.H:67
Foam::NSRDSfunc7
NSRDS-AICHE function number 107.
Definition: NSRDSfunc7.H:67
Foam::CH4N2O
urea, note that some of the properties are unavailable in the literature and have been copied from wa...
Definition: CH4N2O.H:59
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::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::CH4N2O::CH4N2O
CH4N2O()
Construct null.
Definition: CH4N2O.C:41
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)
CH4N2O.H
Foam::NSRDSfunc6
NSRDS function number 106.
Definition: NSRDSfunc6.H:67