All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
C7H16.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-2019 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 thermophysicalFunctions::NSRDS5& density,
98  const thermophysicalFunctions::NSRDS1& vapourPressure,
99  const thermophysicalFunctions::NSRDS6& heatOfVapourisation,
100  const thermophysicalFunctions::NSRDS14& heatCapacity,
101  const thermophysicalFunctions::NSRDS0& enthalpy,
102  const thermophysicalFunctions::NSRDS7& idealGasHeatCapacity,
103  const thermophysicalFunctions::NSRDS4& secondVirialCoeff,
104  const thermophysicalFunctions::NSRDS1& dynamicViscosity,
105  const thermophysicalFunctions::NSRDS2& vapourDynamicViscosity,
106  const thermophysicalFunctions::NSRDS0& thermalConductivity,
107  const thermophysicalFunctions::NSRDS2& vapourThermalConductivity,
108  const thermophysicalFunctions::NSRDS6& surfaceTension,
109  const thermophysicalFunctions::APIdiffCoef& vapourDiffusivity
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_(vapourDiffusivity)
126 {}
127 
128 
130 :
131  C7H16()
132 {
133  readIfPresent(*this, dict);
134 }
135 
136 
137 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
138 
140 {
141  liquidProperties::write(*this, os);
142 }
143 
144 
145 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
void readIfPresent(const dictionary &dict)
Read and set the properties present it the given dictionary.
friend class liquidProperties
Definition: C7H16.H:81
nHeptane
Definition: C7H16.H:58
Macros for easy insertion into run-time selection tables.
The thermophysical properties of a liquid.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:54
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
C7H16()
Construct null.
Definition: C7H16.C:40
void write(Ostream &os) const
Write the function coefficients.
Definition: C7H16.C:139
const doubleScalar e
Elementary charge.
Definition: doubleScalar.H:105
virtual void write(Ostream &os) const =0
Write the function coefficients.
Namespace for OpenFOAM.