C2H6.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 "C2H6.H"
28 
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
33  defineTypeNameAndDebug(C2H6, 0);
34  addToRunTimeSelectionTable(liquidProperties, C2H6,);
35  addToRunTimeSelectionTable(liquidProperties, C2H6, Istream);
36  addToRunTimeSelectionTable(liquidProperties, C2H6, dictionary);
37 }
38 
39 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
40 
42 :
44  (
45  30.070,
46  305.32,
47  4.872e+6,
48  0.14550,
49  0.279,
50  90.35,
51  1.13,
52  184.55,
53  0.0,
54  0.0995,
55  1.24e+4
56  ),
57  rho_(57.499854, 0.27937, 305.32, 0.29187),
58  pv_(51.857, -2598.7, -5.1283, 1.4913e-05, 2.0),
59  hl_(305.32, 701396.740937812, 0.60646, -0.55492, 0.32799, 0.0),
60  Cp_
61  (
62  305.32,
63  8.02554965861611,
64  2983.63817758563,
65  167.548325566287,
66  -343.93389207094
67  ),
68  h_(0.0, 0.0, 0.0, 0.0, 0.0, 0.0),
69  Cpg_(1341.07083471899, 4463.58496840705, 1655.5, 2435.08480212837, 752.87),
70  B_
71  (
72  0.00269205187894912,
73  -2.05221150648487,
74  -47721.9820419022,
75  2.24808779514466e+15,
76  -3.23910874625873e+17
77  ),
78  mu_(-3.4134, 197.05, -1.2193, -9.2023e-26, 10.0),
79  mug_(2.5906e-07, 0.67988, 98.902, 0.0),
80  K_(0.35758, -0.0011458, 6.1866e-07, 0.0, 0.0, 0.0),
81  Kg_(7.3869e-05, 1.1689, 500.73, 0.0),
82  sigma_(305.32, 0.048643, 1.1981, 0.0, 0.0, 0.0),
83  D_(147.18, 20.1, 30.070, 28) // note: Same as nHeptane
84 {}
85 
86 
88 (
89  const liquidProperties& l,
90  const NSRDSfunc5& density,
91  const NSRDSfunc1& vapourPressure,
92  const NSRDSfunc6& heatOfVapourisation,
93  const NSRDSfunc14& heatCapacity,
94  const NSRDSfunc0& enthalpy,
95  const NSRDSfunc7& idealGasHeatCapacity,
96  const NSRDSfunc4& secondVirialCoeff,
97  const NSRDSfunc1& dynamicViscosity,
98  const NSRDSfunc2& vapourDynamicViscosity,
99  const NSRDSfunc0& thermalConductivity,
100  const NSRDSfunc2& vapourThermalConductivity,
101  const NSRDSfunc6& surfaceTension,
102  const APIdiffCoefFunc& vapourDiffussivity
103 )
104 :
105  liquidProperties(l),
106  rho_(density),
107  pv_(vapourPressure),
108  hl_(heatOfVapourisation),
109  Cp_(heatCapacity),
110  h_(enthalpy),
111  Cpg_(idealGasHeatCapacity),
112  B_(secondVirialCoeff),
113  mu_(dynamicViscosity),
114  mug_(vapourDynamicViscosity),
115  K_(thermalConductivity),
116  Kg_(vapourThermalConductivity),
117  sigma_(surfaceTension),
118  D_(vapourDiffussivity)
119 {}
120 
121 
123 :
124  liquidProperties(is),
125  rho_(is),
126  pv_(is),
127  hl_(is),
128  Cp_(is),
129  h_(is),
130  Cpg_(is),
131  B_(is),
132  mu_(is),
133  mug_(is),
134  K_(is),
135  Kg_(is),
136  sigma_(is),
137  D_(is)
138 {}
139 
140 
142 :
143  liquidProperties(dict),
144  rho_(dict.subDict("rho")),
145  pv_(dict.subDict("pv")),
146  hl_(dict.subDict("hl")),
147  Cp_(dict.subDict("Cp")),
148  h_(dict.subDict("h")),
149  Cpg_(dict.subDict("Cpg")),
150  B_(dict.subDict("B")),
151  mu_(dict.subDict("mu")),
152  mug_(dict.subDict("mug")),
153  K_(dict.subDict("K")),
154  Kg_(dict.subDict("Kg")),
155  sigma_(dict.subDict("sigma")),
156  D_(dict.subDict("D"))
157 {}
158 
159 
161 :
162  liquidProperties(liq),
163  rho_(liq.rho_),
164  pv_(liq.pv_),
165  hl_(liq.hl_),
166  Cp_(liq.Cp_),
167  h_(liq.h_),
168  Cpg_(liq.Cpg_),
169  B_(liq.B_),
170  mu_(liq.mu_),
171  mug_(liq.mug_),
172  K_(liq.K_),
173  Kg_(liq.Kg_),
174  sigma_(liq.sigma_),
175  D_(liq.D_)
176 {}
177 
178 
179 // ************************************************************************* //
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
C2H6()
Construct null.
Definition: C2H6.C:41
NSRDS function number 102.
Definition: NSRDSfunc2.H:67
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Definition: Istream.H:57
NSRDS-AICHE function number 107.
Definition: NSRDSfunc7.H:67
NSRDS function number 104.
Definition: NSRDSfunc4.H:67
Macros for easy insertion into run-time selection tables.
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.
ethane
Definition: C2H6.H:58
The thermophysical properties of a liquidProperties.
NSRDS function number 105.
Definition: NSRDSfunc5.H:67
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
NSRDS function number 100.
Definition: NSRDSfunc0.H:67
NSRDS function number 106.
Definition: NSRDSfunc6.H:67
API function for vapour mass diffusivity.
NSRDS function number 101.
Definition: NSRDSfunc1.H:67
Namespace for OpenFOAM.