C7H16.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-2017 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 "C7H16.H"
28 
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
33  defineTypeNameAndDebug(C7H16, 0);
34  addToRunTimeSelectionTable(liquidProperties, C7H16,);
35  addToRunTimeSelectionTable(liquidProperties, C7H16, dictionary);
36 }
37 
38 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
39 
41 :
43  (
44  100.204,
45  540.20,
46  2.74e+6,
47  0.428,
48  0.261,
49  182.57,
50  1.8269e-1,
51  371.58,
52  0.0,
53  0.3495,
54  1.52e+4
55  ),
56  rho_(61.38396836, 0.26211, 540.2, 0.28141),
57  pv_(87.829, -6996.4, -9.8802, 7.2099e-06, 2.0),
58  hl_(540.20, 499121.791545248, 0.38795, 0.0, 0.0, 0.0),
59  Cp_
60  (
61  540.20,
62  6.11976102401216,
63  3137.69909384855,
64  182.274175063868,
65  -254.530511150515
66  ),
67  h_
68  (
69  -3.1469964e+6,
70  7.3072e+3,
71  -3.52884e+1,
72  1.10637e-1,
73  -1.634831e-4,
74  9.64941e-8
75  ),
76  Cpg_(1199.05392998284, 3992.85457666361, 1676.6, 2734.42177956968, 756.4),
77  B_
78  (
79  0.00274040956448844,
80  -2.90407568560137,
81  -440900.562851782,
82  -8.78208454752305e+17,
83  1.28238393676899e+20
84  ),
85  mu_(-24.451, 1533.1, 2.0087, 0.0, 0.0),
86  mug_(6.672e-08, 0.82837, 85.752, 0.0),
87  kappa_(0.215, -0.000303, 0.0, 0.0, 0.0, 0.0),
88  kappag_(-0.070028, 0.38068, -7049.9, -2400500.0),
89  sigma_(540.20, 0.054143, 1.2512, 0.0, 0.0, 0.0),
90  D_(147.18, 20.1, 100.204, 28.0)
91 {}
92 
93 
95 (
96  const liquidProperties& l,
97  const NSRDSfunc5& density,
98  const NSRDSfunc1& vapourPressure,
99  const NSRDSfunc6& heatOfVapourisation,
100  const NSRDSfunc14& heatCapacity,
101  const NSRDSfunc0& enthalpy,
102  const NSRDSfunc7& idealGasHeatCapacity,
103  const NSRDSfunc4& secondVirialCoeff,
104  const NSRDSfunc1& dynamicViscosity,
105  const NSRDSfunc2& vapourDynamicViscosity,
106  const NSRDSfunc0& thermalConductivity,
107  const NSRDSfunc2& vapourThermalConductivity,
108  const NSRDSfunc6& surfaceTension,
109  const APIdiffCoefFunc& vapourDiffussivity
110 )
111 :
112  liquidProperties(l),
113  rho_(density),
114  pv_(vapourPressure),
115  hl_(heatOfVapourisation),
116  Cp_(heatCapacity),
117  h_(enthalpy),
118  Cpg_(idealGasHeatCapacity),
119  B_(secondVirialCoeff),
120  mu_(dynamicViscosity),
121  mug_(vapourDynamicViscosity),
122  kappa_(thermalConductivity),
123  kappag_(vapourThermalConductivity),
124  sigma_(surfaceTension),
125  D_(vapourDiffussivity)
126 {}
127 
128 
130 :
131  C7H16()
132 {
133  readIfPresent(*this, dict);
134 }
135 
136 
137 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
138 
140 {
141  liquidProperties::writeData(*this, os);
142 }
143 
144 
145 // * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
146 
148 {
149  l.writeData(os);
150  return os;
151 }
152 
153 
154 // ************************************************************************* //
void writeData(Ostream &os) const
Write the function coefficients.
Definition: C7H16.C:139
dictionary dict
NSRDS function number 114.
Definition: NSRDSfunc14.H:67
const double e
Elementary charge.
Definition: doubleFloat.H:78
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
NSRDS function number 102.
Definition: NSRDSfunc2.H:67
void readIfPresent(const dictionary &dict)
Read and set the properties present it the given dictionary.
friend class liquidProperties
Definition: C7H16.H:81
NSRDS-AICHE function number 107.
Definition: NSRDSfunc7.H:67
nHeptane
Definition: C7H16.H:58
NSRDS function number 104.
Definition: NSRDSfunc4.H:67
Macros for easy insertion into run-time selection tables.
The thermophysical properties of a liquid.
NSRDS function number 105.
Definition: NSRDSfunc5.H:67
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.
C7H16()
Construct null.
Definition: C7H16.C:40
Ostream & operator<<(Ostream &, const ensightPart &)
API function for vapour mass diffusivity.
NSRDS function number 101.
Definition: NSRDSfunc1.H:67
Namespace for OpenFOAM.