bC10H7CH3.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2018 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 "bC10H7CH3.H"
28 
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
33  defineTypeNameAndDebug(bC10H7CH3, 0);
34  addToRunTimeSelectionTable(liquidProperties, bC10H7CH3,);
35  addToRunTimeSelectionTable(liquidProperties, bC10H7CH3, dictionary);
36 }
37 
38 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
39 
41 :
43  (
44  142.2,
45  761.0,
46  3.25e+6,
47  0.507,
48  0.260,
49  307.73,
50  1.7374e+1,
51  514.20,
52  1.4010e-30,
53  0.3459,
54  1.987e+4
55  ),
56  rho_(67.36014, 0.23843, 761, 0.2559),
57  pv_(134.31, -12103, -16.195, 6.9659e-06, 2),
58  hl_(761.0, 513150.492264416, 0.4044, 0.0, 0.0, 0.0),
59  Cp_(811.322081575246, 2.30225035161744, 0.0008628691983122, 0.0, 0.0, 0.0),
60  h_
61  (
62  45001.2311880177,
63  811.322081575246,
64  1.15112517580872,
65  0.000287623066104079,
66  0.0,
67  0.0
68  ),
69  Cpg_(760.126582278481, 2699.08579465542, 1564.1, 1994.51476793249, 727.49),
70  B_
71  (
72  0.00229430379746835,
73  -3.53720112517581,
74  -1067158.93108298,
75  2.29746835443038e+18,
76  -2.68438818565401e+21
77  ),
78  mu_(-63.276, 4219, 7.5549, 0.0, 0.0),
79  mug_(2.1791e-06, 0.3717, 712.53, 0.0),
80  kappa_(0.1962, -0.00018414, 0.0, 0.0, 0.0, 0.0),
81  kappag_(0.4477, -0.1282, -345.89, 2340100),
82  sigma_(761.0, 0.066442, 1.2634, 0.0, 0.0, 0.0),
83  D_(147.18, 20.1, 142.2, 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 NSRDSfunc0& 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 
122 
124 :
125  bC10H7CH3()
126 {
127  readIfPresent(*this, dict);
128 }
129 
130 
131 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
132 
134 {
135  liquidProperties::writeData(*this, os);
136 }
137 
138 
139 // * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
140 
142 {
143  l.writeData(os);
144  return os;
145 }
146 
147 
148 // ************************************************************************* //
bC10H7CH3()
Construct null.
Definition: bC10H7CH3.C:40
dictionary dict
friend class liquidProperties
Definition: bC10H7CH3.H:81
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
NSRDS function number 102.
Definition: NSRDSfunc2.H:67
void readIfPresent(const dictionary &dict)
Read and set the properties present it the given dictionary.
NSRDS-AICHE function number 107.
Definition: NSRDSfunc7.H:67
NSRDS function number 104.
Definition: NSRDSfunc4.H:67
Macros for easy insertion into run-time selection tables.
betaMethylNaphthalene
Definition: bC10H7CH3.H:58
The thermophysical properties of a liquid.
NSRDS function number 105.
Definition: NSRDSfunc5.H:67
void writeData(Ostream &os) const
Write the function coefficients.
Definition: bC10H7CH3.C:133
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:53
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
NSRDS function number 100.
Definition: NSRDSfunc0.H:67
NSRDS function number 106.
Definition: NSRDSfunc6.H:67
virtual void writeData(Ostream &os) const =0
Write the function coefficients.
Ostream & operator<<(Ostream &, const ensightPart &)
API function for vapour mass diffusivity.
const doubleScalar e
Elementary charge.
Definition: doubleScalar.H:98
NSRDS function number 101.
Definition: NSRDSfunc1.H:67
Namespace for OpenFOAM.