bC10H7CH3.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 "bC10H7CH3.H"
30 
31 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 
33 namespace Foam
34 {
35  defineTypeNameAndDebug(bC10H7CH3, 0);
36  addToRunTimeSelectionTable(liquidProperties, bC10H7CH3,);
37  addToRunTimeSelectionTable(liquidProperties, bC10H7CH3, dictionary);
38 }
39 
40 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
41 
43 :
45  (
46  142.2,
47  761.0,
48  3.25e+6,
49  0.507,
50  0.260,
51  307.73,
52  1.7374e+1,
53  514.20,
54  1.4010e-30,
55  0.3459,
56  1.987e+4
57  ),
58  rho_(67.36014, 0.23843, 761, 0.2559),
59  pv_(134.31, -12103, -16.195, 6.9659e-06, 2),
60  hl_(761.0, 513150.492264416, 0.4044, 0.0, 0.0, 0.0),
61  Cp_(811.322081575246, 2.30225035161744, 0.0008628691983122, 0.0, 0.0, 0.0),
62  h_
63  (
64  45001.2311880177,
65  811.322081575246,
66  1.15112517580872,
67  0.000287623066104079,
68  0.0,
69  0.0
70  ),
71  Cpg_(760.126582278481, 2699.08579465542, 1564.1, 1994.51476793249, 727.49),
72  B_
73  (
74  0.00229430379746835,
75  -3.53720112517581,
76  -1067158.93108298,
77  2.29746835443038e+18,
78  -2.68438818565401e+21
79  ),
80  mu_(-63.276, 4219, 7.5549, 0.0, 0.0),
81  mug_(2.1791e-06, 0.3717, 712.53, 0.0),
82  kappa_(0.1962, -0.00018414, 0.0, 0.0, 0.0, 0.0),
83  kappag_(0.4477, -0.1282, -345.89, 2340100),
84  sigma_(761.0, 0.066442, 1.2634, 0.0, 0.0, 0.0),
85  D_(147.18, 20.1, 142.2, 28) // note: Same as nHeptane
86 {}
87 
88 
90 (
91  const liquidProperties& l,
92  const NSRDSfunc5& density,
93  const NSRDSfunc1& vapourPressure,
94  const NSRDSfunc6& heatOfVapourisation,
95  const NSRDSfunc0& heatCapacity,
96  const NSRDSfunc0& enthalpy,
97  const NSRDSfunc7& idealGasHeatCapacity,
98  const NSRDSfunc4& secondVirialCoeff,
99  const NSRDSfunc1& dynamicViscosity,
100  const NSRDSfunc2& vapourDynamicViscosity,
101  const NSRDSfunc0& thermalConductivity,
102  const NSRDSfunc2& vapourThermalConductivity,
103  const NSRDSfunc6& surfaceTension,
104  const APIdiffCoefFunc& vapourDiffussivity
105 )
106 :
107  liquidProperties(l),
108  rho_(density),
109  pv_(vapourPressure),
110  hl_(heatOfVapourisation),
111  Cp_(heatCapacity),
112  h_(enthalpy),
113  Cpg_(idealGasHeatCapacity),
114  B_(secondVirialCoeff),
115  mu_(dynamicViscosity),
116  mug_(vapourDynamicViscosity),
117  kappa_(thermalConductivity),
118  kappag_(vapourThermalConductivity),
119  sigma_(surfaceTension),
120  D_(vapourDiffussivity)
121 {}
122 
123 
124 
126 :
127  bC10H7CH3()
128 {
129  readIfPresent(*this, dict);
130 }
131 
132 
133 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
134 
136 {
138 }
139 
140 
141 // * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
142 
144 {
145  l.writeData(os);
146  return os;
147 }
148 
149 
150 // ************************************************************************* //
Foam::addToRunTimeSelectionTable
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Foam::liquidProperties::writeData
virtual void writeData(Ostream &os) const =0
Write the function coefficients.
Definition: liquidProperties.C:240
Foam::NSRDSfunc0
NSRDS function number 100.
Definition: NSRDSfunc0.H:69
Foam::bC10H7CH3::bC10H7CH3
bC10H7CH3()
Construct null.
Definition: bC10H7CH3.C:42
Foam::NSRDSfunc7
NSRDS-AICHE function number 107.
Definition: NSRDSfunc7.H:69
bC10H7CH3.H
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::bC10H7CH3::writeData
void writeData(Ostream &os) const
Write the function coefficients.
Definition: bC10H7CH3.C:135
Foam::liquidProperties
The thermophysical properties of a liquid.
Definition: liquidProperties.H:51
Foam::bC10H7CH3
betaMethylNaphthalene
Definition: bC10H7CH3.H:60
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::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