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 | 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 "CH4N2O.H"
30
31// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32
33namespace Foam
34{
38}
39
40// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
41
43:
45 (
46 60.056,
47 705.0,
48 9.050e+6,
49 0.218,
50 0.337,
51 405.85,
52 9.3131e+1,
53 465.0,
54 1.52e-29,
55 0.3449,
56 4.7813e+4
57 ),
58 rho_(1230.006936, 0.0, 0.0, 0.0, 0.0, 0.0),
59 pv_(3015.15611544, -185497.059684, -430.223621983, 0.00017405122622, 2.0),
60 hl_(705.0, 2534249.0, 0.5, 0.0, 0.0, 0.0),
61 Cp_(2006.46063673904, 0.0, 0.0, 0.0, 0.0, 0.0),
62 h_(-6154107.41641135, 2006.46063673904, 0.0, 0.0, 0.0, 0.0),
63 Cpg_(811.875582789397, 2099.04089516451, 1627.3, 1603.63660583455, 724.41),
64 B_
65 (
66 -0.000383641934194752,
67 0.447249234048222,
68 -469062.208605302,
69 5.5628080458239e+18,
70 -2.3040162514986e+21
71 ),
72 mu_(-51.964, 3670.6, 5.7331, -5.3495e-29, 10.0),
73 mug_(2.6986e-06, 0.498, 1257.7, -19570.0),
74 kappa_(-0.4267, 0.0056903, -8.0065e-06, 1.815e-09, 0.0, 0.0),
75 kappag_(6.977e-05, 1.1243, 844.9, -148850.0),
76 sigma_(705.0, 1.0, 0.0, 0.0, 0.0, 0.0), // note: set to constant
77 D_(147.18, 20.1, 60.056, 28.0) // note: Same as nHeptane
78{}
79
80
82(
83 const liquidProperties& l,
84 const NSRDSfunc0& density,
85 const NSRDSfunc1& vapourPressure,
86 const NSRDSfunc6& heatOfVapourisation,
87 const NSRDSfunc0& heatCapacity,
88 const NSRDSfunc0& enthalpy,
89 const NSRDSfunc7& idealGasHeatCapacity,
90 const NSRDSfunc4& secondVirialCoeff,
91 const NSRDSfunc1& dynamicViscosity,
92 const NSRDSfunc2& vapourDynamicViscosity,
93 const NSRDSfunc0& thermalConductivity,
94 const NSRDSfunc2& vapourThermalConductivity,
95 const NSRDSfunc6& surfaceTension,
96 const APIdiffCoefFunc& vapourDiffussivity
97)
98:
100 rho_(density),
101 pv_(vapourPressure),
102 hl_(heatOfVapourisation),
103 Cp_(heatCapacity),
104 h_(enthalpy),
105 Cpg_(idealGasHeatCapacity),
106 B_(secondVirialCoeff),
107 mu_(dynamicViscosity),
108 mug_(vapourDynamicViscosity),
109 kappa_(thermalConductivity),
110 kappag_(vapourThermalConductivity),
111 sigma_(surfaceTension),
112 D_(vapourDiffussivity)
113{}
114
115
117:
118 CH4N2O()
119{
120 readIfPresent(*this, dict);
121}
122
123
124// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
125
127{
128 liquidProperties::writeData(*this, os);
129}
130
131
132// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
133
135{
136 l.writeData(os);
137 return os;
138}
139
140
141// ************************************************************************* //
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.
urea, note that some of the properties are unavailable in the literature and have been copied from wa...
Definition: CH4N2O.H:64
void writeData(Ostream &os) const
Write the function coefficients.
Definition: CH4N2O.C:126
CH4N2O()
Construct null.
Definition: CH4N2O.C:42
NSRDS function number 100.
Definition: NSRDSfunc0.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 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