initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / thermophysicalModels / liquids / C2H6 / C2H6.C
blob659144b76406545185205471fcafae760b968654
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 "C2H6.H"
28 #include "addToRunTimeSelectionTable.H"
30 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 namespace Foam
34     defineTypeNameAndDebug(C2H6, 0);
35     addToRunTimeSelectionTable(liquid, C2H6,);
36     addToRunTimeSelectionTable(liquid, C2H6, Istream);
39 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
41 Foam::C2H6::C2H6()
43     liquid
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
87 Foam::C2H6::C2H6
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::C2H6::C2H6(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 // ************************************************************************* //