FreeFOAM The Cross-Platform CFD Toolkit
C3H8.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) 1991-2010 OpenCFD Ltd.
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 "C3H8.H"
28 
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
33  defineTypeNameAndDebug(C3H8, 0);
34  addToRunTimeSelectionTable(liquid, C3H8,);
35  addToRunTimeSelectionTable(liquid, C3H8, Istream);
36 }
37 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
38 
40 :
41  liquid
42  (
43  44.096,
44  369.83,
45  4.248e+6,
46  0.2, 0.276,
47  85.47,
48  1.685e-4,
49  231.11,
50  0.0,
51  0.1523,
52  1.31e+4
53  ),
54  rho_(60.6628672, 0.27453, 369.83, 0.29359),
55  pv_(59.078, -3492.6, -6.0669, 1.0919e-05, 2.0),
56  hl_(369.83, 662395.682148041, 0.78237, -0.77319, 0.39246, 0.0),
57  cp_
58  (
59  369.83,
60  9.48470319647089,
61  2576.87772133527,
62  95.3560311677331,
63  -131.535634282099
64  ),
65  h_(0.0, 0.0, 0.0, 0.0, 0.0, 0.0),
66  cpg_(1177.43105950653, 4364.34143686502, 1626.5, 2648.76632801161, 723.6),
67  B_
68  (
69  0.00255578737300435,
70  -2.24963715529753,
71  -102276.850507983,
72  7.00743831640058e+15,
73  -1.59878447024673e+18
74  ),
75  mu_(-6.9281, 420.76, -0.63276, -1.713e-26, 10.0),
76  mug_(2.4993e-07, 0.68612, 179.34, -8254.6),
77  K_(0.26755, -0.00066457, 2.774e-07, 0.0, 0.0, 0.0),
78  Kg_(-1.12, 0.10972, -9834.6, -7535800),
79  sigma_(369.83, 0.05092, 1.2197, 0.0, 0.0, 0.0),
80  D_(147.18, 20.1, 44.096, 28) // note: Same as nHeptane
81 {}
82 
83 
85 (
86  const liquid& l,
87  const NSRDSfunc5& density,
88  const NSRDSfunc1& vapourPressure,
89  const NSRDSfunc6& heatOfVapourisation,
90  const NSRDSfunc14& heatCapacity,
91  const NSRDSfunc0& enthalpy,
92  const NSRDSfunc7& idealGasHeatCapacity,
93  const NSRDSfunc4& secondVirialCoeff,
94  const NSRDSfunc1& dynamicViscosity,
95  const NSRDSfunc2& vapourDynamicViscosity,
96  const NSRDSfunc0& thermalConductivity,
97  const NSRDSfunc2& vapourThermalConductivity,
98  const NSRDSfunc6& surfaceTension,
99  const APIdiffCoefFunc& vapourDiffussivity
100 )
101 :
102  liquid(l),
103  rho_(density),
104  pv_(vapourPressure),
105  hl_(heatOfVapourisation),
106  cp_(heatCapacity),
107  h_(enthalpy),
108  cpg_(idealGasHeatCapacity),
109  B_(secondVirialCoeff),
110  mu_(dynamicViscosity),
111  mug_(vapourDynamicViscosity),
112  K_(thermalConductivity),
113  Kg_(vapourThermalConductivity),
114  sigma_(surfaceTension),
115  D_(vapourDiffussivity)
116 {}
117 
118 
120 :
121  liquid(is),
122  rho_(is),
123  pv_(is),
124  hl_(is),
125  cp_(is),
126  h_(is),
127  cpg_(is),
128  B_(is),
129  mu_(is),
130  mug_(is),
131  K_(is),
132  Kg_(is),
133  sigma_(is),
134  D_(is)
135 {}
136 
137 
138 // ************************ vim: set sw=4 sts=4 et: ************************ //