ENH: autoLayerDriver: better layering information message
[OpenFOAM-2.0.x.git] / src / thermophysicalModels / properties / liquidProperties / C3H8 / C3H8.C
blobbb4b2a2839c61daf0b15f2ccd36c99f6f70bb038
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.
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.
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.
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/>.
24 \*---------------------------------------------------------------------------*/
26 #include "C3H8.H"
27 #include "addToRunTimeSelectionTable.H"
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31 namespace Foam
33     defineTypeNameAndDebug(C3H8, 0);
34     addToRunTimeSelectionTable(liquidProperties, C3H8,);
35     addToRunTimeSelectionTable(liquidProperties, C3H8, Istream);
36     addToRunTimeSelectionTable(liquidProperties, C3H8, dictionary);
39 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
41 Foam::C3H8::C3H8()
43     liquidProperties
44     (
45         44.096,
46         369.83,
47         4.248e+6,
48         0.2, 0.276,
49         85.47,
50         1.685e-4,
51         231.11,
52         0.0,
53         0.1523,
54         1.31e+4
55     ),
56     rho_(60.6628672, 0.27453, 369.83, 0.29359),
57     pv_(59.078, -3492.6, -6.0669, 1.0919e-05, 2.0),
58     hl_(369.83, 662395.682148041, 0.78237, -0.77319, 0.39246, 0.0),
59     Cp_
60     (
61         369.83,
62         9.48470319647089,
63         2576.87772133527,
64         95.3560311677331,
65        -131.535634282099
66     ),
67     h_(0.0, 0.0, 0.0, 0.0, 0.0, 0.0),
68     Cpg_(1177.43105950653, 4364.34143686502, 1626.5, 2648.76632801161, 723.6),
69     B_
70     (
71         0.00255578737300435,
72        -2.24963715529753,
73        -102276.850507983,
74         7.00743831640058e+15,
75        -1.59878447024673e+18
76     ),
77     mu_(-6.9281, 420.76, -0.63276, -1.713e-26, 10.0),
78     mug_(2.4993e-07, 0.68612, 179.34, -8254.6),
79     K_(0.26755, -0.00066457, 2.774e-07, 0.0, 0.0, 0.0),
80     Kg_(-1.12, 0.10972, -9834.6, -7535800),
81     sigma_(369.83, 0.05092, 1.2197, 0.0, 0.0, 0.0),
82     D_(147.18, 20.1, 44.096, 28) // note: Same as nHeptane
86 Foam::C3H8::C3H8
88     const liquidProperties& l,
89     const NSRDSfunc5& density,
90     const NSRDSfunc1& vapourPressure,
91     const NSRDSfunc6& heatOfVapourisation,
92     const NSRDSfunc14& heatCapacity,
93     const NSRDSfunc0& enthalpy,
94     const NSRDSfunc7& idealGasHeatCapacity,
95     const NSRDSfunc4& secondVirialCoeff,
96     const NSRDSfunc1& dynamicViscosity,
97     const NSRDSfunc2& vapourDynamicViscosity,
98     const NSRDSfunc0& thermalConductivity,
99     const NSRDSfunc2& vapourThermalConductivity,
100     const NSRDSfunc6& surfaceTension,
101     const APIdiffCoefFunc& vapourDiffussivity
104     liquidProperties(l),
105     rho_(density),
106     pv_(vapourPressure),
107     hl_(heatOfVapourisation),
108     Cp_(heatCapacity),
109     h_(enthalpy),
110     Cpg_(idealGasHeatCapacity),
111     B_(secondVirialCoeff),
112     mu_(dynamicViscosity),
113     mug_(vapourDynamicViscosity),
114     K_(thermalConductivity),
115     Kg_(vapourThermalConductivity),
116     sigma_(surfaceTension),
117     D_(vapourDiffussivity)
121 Foam::C3H8::C3H8(Istream& is)
123     liquidProperties(is),
124     rho_(is),
125     pv_(is),
126     hl_(is),
127     Cp_(is),
128     h_(is),
129     Cpg_(is),
130     B_(is),
131     mu_(is),
132     mug_(is),
133     K_(is),
134     Kg_(is),
135     sigma_(is),
136     D_(is)
140 Foam::C3H8::C3H8(const dictionary& dict)
142     liquidProperties(dict),
143     rho_(dict.subDict("rho")),
144     pv_(dict.subDict("pv")),
145     hl_(dict.subDict("hl")),
146     Cp_(dict.subDict("Cp")),
147     h_(dict.subDict("h")),
148     Cpg_(dict.subDict("Cpg")),
149     B_(dict.subDict("B")),
150     mu_(dict.subDict("mu")),
151     mug_(dict.subDict("mug")),
152     K_(dict.subDict("K")),
153     Kg_(dict.subDict("Kg")),
154     sigma_(dict.subDict("sigma")),
155     D_(dict.subDict("D"))
159 Foam::C3H8::C3H8(const C3H8& liq)
161     liquidProperties(liq),
162     rho_(liq.rho_),
163     pv_(liq.pv_),
164     hl_(liq.hl_),
165     Cp_(liq.Cp_),
166     h_(liq.h_),
167     Cpg_(liq.Cpg_),
168     B_(liq.B_),
169     mu_(liq.mu_),
170     mug_(liq.mug_),
171     K_(liq.K_),
172     Kg_(liq.Kg_),
173     sigma_(liq.sigma_),
174     D_(liq.D_)
178 // ************************************************************************* //