initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / thermophysicalModels / liquids / C7H16 / C7H16.C
blob846671927b899f9d641a205856cfa24f11423c23
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
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 the
13     Free Software Foundation; either version 2 of the License, or (at your
14     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, write to the Free Software Foundation,
23     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 \*---------------------------------------------------------------------------*/
27 #include "C7H16.H"
28 #include "addToRunTimeSelectionTable.H"
30 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 namespace Foam
34     defineTypeNameAndDebug(C7H16, 0);
35     addToRunTimeSelectionTable(liquid, C7H16,);
36     addToRunTimeSelectionTable(liquid, C7H16, Istream);
39 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
41 Foam::C7H16::C7H16()
43     liquid
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_(-3.1469964e+6,7.3072e+3,-3.52884e+1,1.10637e-1,-1.634831e-4,9.64941e-8),
69     cpg_(1199.05392998284, 3992.85457666361, 1676.6, 2734.42177956968, 756.4),
70     B_
71     (
72         0.00274040956448844,
73        -2.90407568560137,
74        -440900.562851782,
75        -8.78208454752305e+17,
76         1.28238393676899e+20
77     ),
78     mu_(-24.451, 1533.1, 2.0087, 0.0, 0.0),
79     mug_(6.672e-08, 0.82837, 85.752, 0.0),
80     K_(0.215, -0.000303, 0.0, 0.0, 0.0, 0.0),
81     Kg_(-0.070028, 0.38068, -7049.9, -2400500.0),
82     sigma_(540.20, 0.054143, 1.2512, 0.0, 0.0, 0.0),
83     D_(147.18, 20.1, 100.204, 28.0) // note: Same as C7H16
87 Foam::C7H16::C7H16
89     const liquid& 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
105     liquid(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)
122 Foam::C7H16::C7H16(Istream& is)
124     liquid(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)
141 // ************************************************************************* //