aC10H7CH3.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 "aC10H7CH3.H"
30 
31 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 
33 namespace Foam
34 {
35  defineTypeNameAndDebug(aC10H7CH3, 0);
36  addToRunTimeSelectionTable(liquidProperties, aC10H7CH3,);
37  addToRunTimeSelectionTable(liquidProperties, aC10H7CH3, dictionary);
38 }
39 
40 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
41 
43 :
45  (
46  142.2,
47  772.04,
48  3.66e+6,
49  0.523,
50  0.298,
51  242.67,
52  3.4929e-2,
53  517.83,
54  1.7012e-30,
55  0.3478,
56  2.0176e+4
57  ),
58  rho_(60.92559, 0.22408, 772.04, 0.25709),
59  pv_(73.716, -9103.2, -7.2253, 2.062e-06, 2),
60  hl_(772.04, 511744.022503516, 0.4164, 0, 0, 0),
61  Cp_(965.893108298172, 1.16216596343179, 0.00298523206751055, 0, 0, 0),
62  h_
63  (
64  38161.6838138517,
65  965.893108298172,
66  0.581082981715893,
67  0.00099507735583685,
68  0,
69  0
70  ),
71  Cpg_(743.389592123769, 2703.5864978903, 1548.5, 2031.64556962025, 722.06),
72  B_
73  (
74  0.00205555555555556,
75  -3.34423347398031,
76  -931153.305203938,
77  1.87601969057665e+18,
78  -2.06448663853727e+21
79  ),
80  mu_(-93.6, 5784, 12, 0, 0),
81  mug_(2.5672e-06, 0.3566, 825.54, 0),
82  kappa_(0.19758, -0.0001796, 0, 0, 0, 0),
83  kappag_(0.3911, -0.1051, -213.52, 2318300),
84  sigma_(772.04, 0.076, 1.33, 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 
125 :
126  aC10H7CH3()
127 {
128  readIfPresent(*this, dict);
129 }
130 
131 
132 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
133 
135 {
137 }
138 
139 
140 // * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
141 
143 {
144  l.writeData(os);
145  return os;
146 }
147 
148 
149 // ************************************************************************* //
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::NSRDSfunc7
NSRDS-AICHE function number 107.
Definition: NSRDSfunc7.H:69
Foam::aC10H7CH3::writeData
void writeData(Ostream &os) const
Write the function coefficients.
Definition: aC10H7CH3.C:134
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::liquidProperties
The thermophysical properties of a liquid.
Definition: liquidProperties.H:51
Foam::aC10H7CH3::aC10H7CH3
aC10H7CH3()
Construct null.
Definition: aC10H7CH3.C:42
Foam::aC10H7CH3
alphaMethylNaphthalene
Definition: aC10H7CH3.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
aC10H7CH3.H