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 | Copyright (C) 2011 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 "Ar.H"
28 
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
34  addToRunTimeSelectionTable(liquidProperties, Ar,);
35  addToRunTimeSelectionTable(liquidProperties, Ar, Istream);
36  addToRunTimeSelectionTable(liquidProperties, Ar, dictionary);
37 }
38 
39 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
40 
42 :
44  (
45  39.948,
46  150.86,
47  4.8981e+6,
48  0.07459,
49  0.291,
50  83.78,
51  6.88e+4,
52  87.28,
53  0.0,
54  0.0,
55  1.4138e+4
56  ),
57  rho_(151.922244, 0.286, 150.86, 0.2984),
58  pv_(39.233, -1051.7, -3.5895, 5.0444e-05, 2),
59  hl_(150.86, 218509.061780314, 0.352, 0.0, 0.0, 0.0),
60  Cp_(4562.43116050866, -70.7770101131471, 0.367477721037349, 0.0, 0.0, 0.0),
61  h_
62  (
63  -1460974.49982473,
64  4562.43116050866,
65  -35.3885050565735,
66  0.122492573679116,
67  0.0,
68  0.0
69  ),
70  Cpg_(520.326424351657, 0.0, 0.0, 0.0, 0.0, 0.0),
71  B_
72  (
73  0.000952488234705117,
74  -0.379993992189847,
75  -2022.62941824372,
76  4633523580654.85,
77  -302893761890458.0
78  ),
79  mu_(-8.868, 204.3, -0.3831, -1.3e-22, 10.0),
80  mug_(8.386e-07, 0.6175, 75.377, -432.5),
81  K_(0.1819, -0.0003176, -4.11e-06, 0.0, 0.0, 0.0),
82  Kg_(0.0001236, 0.8262, -132.8, 16000),
83  sigma_(150.86, 0.03823, 1.2927, 0.0, 0.0, 0.0),
84  D_(147.18, 20.1, 39.948, 28) // note: Same as nHeptane
85 {}
86 
87 
89 (
90  const liquidProperties& l,
91  const NSRDSfunc5& density,
92  const NSRDSfunc1& vapourPressure,
93  const NSRDSfunc6& heatOfVapourisation,
94  const NSRDSfunc0& heatCapacity,
95  const NSRDSfunc0& enthalpy,
96  const NSRDSfunc0& idealGasHeatCapacity,
97  const NSRDSfunc4& secondVirialCoeff,
98  const NSRDSfunc1& dynamicViscosity,
99  const NSRDSfunc2& vapourDynamicViscosity,
100  const NSRDSfunc0& thermalConductivity,
101  const NSRDSfunc2& vapourThermalConductivity,
102  const NSRDSfunc6& surfaceTension,
103  const APIdiffCoefFunc& vapourDiffussivity
104 )
105 :
106  liquidProperties(l),
107  rho_(density),
108  pv_(vapourPressure),
109  hl_(heatOfVapourisation),
110  Cp_(heatCapacity),
111  h_(enthalpy),
112  Cpg_(idealGasHeatCapacity),
113  B_(secondVirialCoeff),
114  mu_(dynamicViscosity),
115  mug_(vapourDynamicViscosity),
116  K_(thermalConductivity),
117  Kg_(vapourThermalConductivity),
118  sigma_(surfaceTension),
119  D_(vapourDiffussivity)
120 {}
121 
122 
124 :
125  liquidProperties(is),
126  rho_(is),
127  pv_(is),
128  hl_(is),
129  Cp_(is),
130  h_(is),
131  Cpg_(is),
132  B_(is),
133  mu_(is),
134  mug_(is),
135  K_(is),
136  Kg_(is),
137  sigma_(is),
138  D_(is)
139 {}
140 
141 
143 :
144  liquidProperties(dict),
145  rho_(dict.subDict("rho")),
146  pv_(dict.subDict("pv")),
147  hl_(dict.subDict("hl")),
148  Cp_(dict.subDict("Cp")),
149  h_(dict.subDict("h")),
150  Cpg_(dict.subDict("Cpg")),
151  B_(dict.subDict("B")),
152  mu_(dict.subDict("mu")),
153  mug_(dict.subDict("mug")),
154  K_(dict.subDict("K")),
155  Kg_(dict.subDict("Kg")),
156  sigma_(dict.subDict("sigma")),
157  D_(dict.subDict("D"))
158 {}
159 
160 
161 Foam::Ar::Ar(const Ar& liq)
162 :
163  liquidProperties(liq),
164  rho_(liq.rho_),
165  pv_(liq.pv_),
166  hl_(liq.hl_),
167  Cp_(liq.Cp_),
168  h_(liq.h_),
169  Cpg_(liq.Cpg_),
170  B_(liq.B_),
171  mu_(liq.mu_),
172  mug_(liq.mug_),
173  K_(liq.K_),
174  Kg_(liq.Kg_),
175  sigma_(liq.sigma_),
176  D_(liq.D_)
177 {}
178 
179 
180 // ************************************************************************* //
NSRDS function number 101.
Definition: NSRDSfunc1.H:67
The thermophysical properties of a liquidProperties.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Definition: Istream.H:57
API function for vapour mass diffusivity.
NSRDS function number 106.
Definition: NSRDSfunc6.H:67
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
Namespace for OpenFOAM.
Liquid Ar.
Definition: Ar.H:58
NSRDS function number 102.
Definition: NSRDSfunc2.H:67
dictionary dict
const double e
Elementary charge.
Definition: doubleFloat.H:78
Ar()
Construct null.
Definition: Ar.C:41
Macros for easy insertion into run-time selection tables.
NSRDS function number 105.
Definition: NSRDSfunc5.H:67
NSRDS function number 100.
Definition: NSRDSfunc0.H:67
NSRDS function number 104.
Definition: NSRDSfunc4.H:67
liquidProperties(scalar W, scalar Tc, scalar Pc, scalar Vc, scalar Zc, scalar Tt, scalar Pt, scalar Tb, scalar dipm, scalar omega, scalar delta)
Construct from components.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)