BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / src / thermophysicalModels / properties / liquidProperties / C7H16 / C7H16.C
blob349197194f3a18a93671c7a0fe2f550abb51ff58
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 "C7H16.H"
27 #include "addToRunTimeSelectionTable.H"
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31 namespace Foam
33     defineTypeNameAndDebug(C7H16, 0);
34     addToRunTimeSelectionTable(liquidProperties, C7H16,);
35     addToRunTimeSelectionTable(liquidProperties, C7H16, Istream);
36     addToRunTimeSelectionTable(liquidProperties, C7H16, dictionary);
39 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
41 Foam::C7H16::C7H16()
43     liquidProperties
44     (
45         100.204,
46         540.20,
47         2.74e+6,
48         0.428,
49         0.261,
50         182.57,
51         1.8269e-1,
52         371.58,
53         0.0,
54         0.3495,
55         1.52e+4
56     ),
57     rho_(61.38396836, 0.26211, 540.2, 0.28141),
58     pv_(87.829, -6996.4, -9.8802, 7.2099e-06, 2.0),
59     hl_(540.20, 499121.791545248, 0.38795, 0.0, 0.0, 0.0),
60     Cp_
61     (
62         540.20,
63         6.11976102401216,
64         3137.69909384855,
65         182.274175063868,
66        -254.530511150515
67     ),
68     h_
69     (
70        -3.1469964e+6,
71         7.3072e+3,
72        -3.52884e+1,
73         1.10637e-1,
74        -1.634831e-4,
75         9.64941e-8
76     ),
77     Cpg_(1199.05392998284, 3992.85457666361, 1676.6, 2734.42177956968, 756.4),
78     B_
79     (
80         0.00274040956448844,
81        -2.90407568560137,
82        -440900.562851782,
83        -8.78208454752305e+17,
84         1.28238393676899e+20
85     ),
86     mu_(-24.451, 1533.1, 2.0087, 0.0, 0.0),
87     mug_(6.672e-08, 0.82837, 85.752, 0.0),
88     K_(0.215, -0.000303, 0.0, 0.0, 0.0, 0.0),
89     Kg_(-0.070028, 0.38068, -7049.9, -2400500.0),
90     sigma_(540.20, 0.054143, 1.2512, 0.0, 0.0, 0.0),
91     D_(147.18, 20.1, 100.204, 28.0)
95 Foam::C7H16::C7H16
97     const liquidProperties& l,
98     const NSRDSfunc5& density,
99     const NSRDSfunc1& vapourPressure,
100     const NSRDSfunc6& heatOfVapourisation,
101     const NSRDSfunc14& heatCapacity,
102     const NSRDSfunc0& enthalpy,
103     const NSRDSfunc7& idealGasHeatCapacity,
104     const NSRDSfunc4& secondVirialCoeff,
105     const NSRDSfunc1& dynamicViscosity,
106     const NSRDSfunc2& vapourDynamicViscosity,
107     const NSRDSfunc0& thermalConductivity,
108     const NSRDSfunc2& vapourThermalConductivity,
109     const NSRDSfunc6& surfaceTension,
110     const APIdiffCoefFunc& vapourDiffussivity
113     liquidProperties(l),
114     rho_(density),
115     pv_(vapourPressure),
116     hl_(heatOfVapourisation),
117     Cp_(heatCapacity),
118     h_(enthalpy),
119     Cpg_(idealGasHeatCapacity),
120     B_(secondVirialCoeff),
121     mu_(dynamicViscosity),
122     mug_(vapourDynamicViscosity),
123     K_(thermalConductivity),
124     Kg_(vapourThermalConductivity),
125     sigma_(surfaceTension),
126     D_(vapourDiffussivity)
130 Foam::C7H16::C7H16(Istream& is)
132     liquidProperties(is),
133     rho_(is),
134     pv_(is),
135     hl_(is),
136     Cp_(is),
137     h_(is),
138     Cpg_(is),
139     B_(is),
140     mu_(is),
141     mug_(is),
142     K_(is),
143     Kg_(is),
144     sigma_(is),
145     D_(is)
149 Foam::C7H16::C7H16(const dictionary& dict)
151     liquidProperties(dict),
152     rho_(dict.subDict("rho")),
153     pv_(dict.subDict("pv")),
154     hl_(dict.subDict("hl")),
155     Cp_(dict.subDict("Cp")),
156     h_(dict.subDict("h")),
157     Cpg_(dict.subDict("Cpg")),
158     B_(dict.subDict("B")),
159     mu_(dict.subDict("mu")),
160     mug_(dict.subDict("mug")),
161     K_(dict.subDict("K")),
162     Kg_(dict.subDict("Kg")),
163     sigma_(dict.subDict("sigma")),
164     D_(dict.subDict("D"))
168 Foam::C7H16::C7H16(const C7H16& liq)
170     liquidProperties(liq),
171     rho_(liq.rho_),
172     pv_(liq.pv_),
173     hl_(liq.hl_),
174     Cp_(liq.Cp_),
175     h_(liq.h_),
176     Cpg_(liq.Cpg_),
177     B_(liq.B_),
178     mu_(liq.mu_),
179     mug_(liq.mug_),
180     K_(liq.K_),
181     Kg_(liq.Kg_),
182     sigma_(liq.sigma_),
183     D_(liq.D_)
187 // ************************************************************************* //