README.ThirdParty and AllMake.stage5: Changed tabs to spaces, for editing coherence.
[foam-extend-3.2.git] / src / thermophysicalModels / liquids / C2H6 / C2H6.C
blob4688a77c89ec94a996d54924a54af1698fdc6d23
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | foam-extend: Open Source CFD
4    \\    /   O peration     |
5     \\  /    A nd           | For copyright notice see file Copyright
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of foam-extend.
11     foam-extend 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 3 of the License, or (at your
14     option) any later version.
16     foam-extend is distributed in the hope that it will be useful, but
17     WITHOUT ANY WARRANTY; without even the implied warranty of
18     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19     General Public License for more details.
21     You should have received a copy of the GNU General Public License
22     along with foam-extend.  If not, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
26 #include "C2H6.H"
27 #include "addToRunTimeSelectionTable.H"
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31 namespace Foam
33     defineTypeNameAndDebug(C2H6, 0);
34     addToRunTimeSelectionTable(liquid, C2H6,);
35     addToRunTimeSelectionTable(liquid, C2H6, Istream);
38 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
40 Foam::C2H6::C2H6()
42     liquid
43     (
44         30.070,
45         305.32,
46         4.872e+6,
47         0.14550,
48         0.279,
49         90.35,
50         1.13,
51         184.55,
52         0.0,
53         0.0995,
54         1.24e+4
55     ),
56     rho_(57.499854, 0.27937, 305.32, 0.29187),
57     pv_(51.857, -2598.7, -5.1283, 1.4913e-05, 2.0),
58     hl_(305.32, 701396.740937812, 0.60646, -0.55492, 0.32799, 0.0),
59     cp_
60     (
61         305.32,
62         8.02554965861611,
63         2983.63817758563,
64         167.548325566287,
65        -343.93389207094
66     ),
67     h_(0.0, 0.0, 0.0, 0.0, 0.0, 0.0),
68     cpg_(1341.07083471899, 4463.58496840705, 1655.5, 2435.08480212837, 752.87),
69     B_
70     (
71         0.00269205187894912,
72        -2.05221150648487,
73        -47721.9820419022,
74         2.24808779514466e+15,
75        -3.23910874625873e+17
76     ),
77     mu_(-3.4134, 197.05, -1.2193, -9.2023e-26, 10.0),
78     mug_(2.5906e-07, 0.67988, 98.902, 0.0),
79     K_(0.35758, -0.0011458, 6.1866e-07, 0.0, 0.0, 0.0),
80     Kg_(7.3869e-05, 1.1689, 500.73, 0.0),
81     sigma_(305.32, 0.048643, 1.1981, 0.0, 0.0, 0.0),
82     D_(147.18, 20.1, 30.070, 28) // note: Same as nHeptane
86 Foam::C2H6::C2H6
88     const liquid& 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     liquid(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::C2H6::C2H6(Istream& is)
123     liquid(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 // ************************************************************************* //