Ar.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 "Ar.H"
30 
31 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 
33 namespace Foam
34 {
36  addToRunTimeSelectionTable(liquidProperties, Ar,);
37  addToRunTimeSelectionTable(liquidProperties, Ar, dictionary);
38 }
39 
40 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
41 
43 :
45  (
46  39.948,
47  150.86,
48  4.8981e+6,
49  0.07459,
50  0.291,
51  83.78,
52  6.88e+4,
53  87.28,
54  0.0,
55  0.0,
56  1.4138e+4
57  ),
58  rho_(151.922244, 0.286, 150.86, 0.2984),
59  pv_(39.233, -1051.7, -3.5895, 5.0444e-05, 2),
60  hl_(150.86, 218509.061780314, 0.352, 0.0, 0.0, 0.0),
61  Cp_(4562.43116050866, -70.7770101131471, 0.367477721037349, 0.0, 0.0, 0.0),
62  h_
63  (
64  -1460974.49982473,
65  4562.43116050866,
66  -35.3885050565735,
67  0.122492573679116,
68  0.0,
69  0.0
70  ),
71  Cpg_(520.326424351657, 0.0, 0.0, 0.0, 0.0, 0.0),
72  B_
73  (
74  0.000952488234705117,
75  -0.379993992189847,
76  -2022.62941824372,
77  4633523580654.85,
78  -302893761890458.0
79  ),
80  mu_(-8.868, 204.3, -0.3831, -1.3e-22, 10.0),
81  mug_(8.386e-07, 0.6175, 75.377, -432.5),
82  kappa_(0.1819, -0.0003176, -4.11e-06, 0.0, 0.0, 0.0),
83  kappag_(0.0001236, 0.8262, -132.8, 16000),
84  sigma_(150.86, 0.03823, 1.2927, 0.0, 0.0, 0.0),
85  D_(147.18, 20.1, 39.948, 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 NSRDSfunc0& 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  Ar()
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::Ar
Liquid Ar.
Definition: Ar.H:60
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::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::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::Ar::Ar
Ar()
Construct null.
Definition: Ar.C:42
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::Ar::writeData
void writeData(Ostream &os) const
Write the function coefficients.
Definition: Ar.C:134
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)
Ar.H
Foam::NSRDSfunc6
NSRDS function number 106.
Definition: NSRDSfunc6.H:69