initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / thermophysicalModels / liquids / C12H26 / C12H26.C
blob8eb5d25e4615fab70790a2db71baf840ee0989bb
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 "C12H26.H"
28 #include "addToRunTimeSelectionTable.H"
30 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 namespace Foam
34     defineTypeNameAndDebug(C12H26, 0);
35     addToRunTimeSelectionTable(liquid, C12H26,);
36     addToRunTimeSelectionTable(liquid, C12H26, Istream);
39 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
41 Foam::C12H26::C12H26()
43     liquid
44     (
45         170.338,
46         658.0,
47         1.82e+6,
48         0.716,
49         0.238,
50         263.57,
51         6.152e-1,
52         489.47,
53         0.0,
54         0.5764,
55         1.59e+4
56     ),
57     rho_(60.53982858, 0.25511, 658.0, 0.29368),
58     pv_(137.47, -11976.0, -16.698, 8.0906e-06, 2.0),
59     hl_(658.0, 454020.829174935, 0.40681, 0.0, 0.0, 0.0),
60     cp_(2983.53861146661, -8.0352006011577, 0.018207916025784, 0.0, 0.0, 0.0),
61     h_
62     (
63        -2755166.83820769,
64         2983.53861146661,
65        -4.01760030057885,
66         0.00606930534192801,
67         0.0,
68         0.0
69     ),
70     cpg_(1250.16144371778, 3894.02247296552, 1715.5, 2650.67101879792, 777.5),
71     B_
72     (
73         0.00516619896910848,
74        -6.40491258556517,
75        -295295.236529723,
76        -3.22147729807794e+19,
77         8.78195117941974e+21
78     ),
79     mu_(-20.607, 1943, 1.3205, 0.0, 0.0),
80     mug_(6.344e-08, 0.8287, 219.5, 0.0),
81     K_(0.2047, -0.0002326, 0.0, 0.0, 0.0, 0.0),
82     Kg_(5.719e-06, 1.4699, 579.4, 0.0),
83     sigma_(658.0, 0.055493, 1.3262, 0.0, 0.0, 0.0),
84     D_(147.18, 20.1, 170.338, 28.0) // note: Same as nHeptane
88 Foam::C12H26::C12H26
90     const liquid& l,
91     const NSRDSfunc5& density,
92     const NSRDSfunc1& vapourPressure,
93     const NSRDSfunc6& heatOfVapourisation,
94     const NSRDSfunc0& heatCapacity,
95     const NSRDSfunc0& enthalpy,
96     const NSRDSfunc7& idealGasHeatCapacity,
97     const NSRDSfunc4& secondVirialCoeff,
98     const NSRDSfunc1& dynamicViscosity,
99     const NSRDSfunc2& vapourDynamicViscosity,
100     const NSRDSfunc0& thermalConductivity,
101     const NSRDSfunc2& vapourThermalConductivity,
102     const NSRDSfunc6& surfaceTension,
103     const APIdiffCoefFunc& vapourDiffussivity
106     liquid(l),
107     rho_(density),
108     pv_(vapourPressure),
109     hl_(heatOfVapourisation),
110     cp_(heatCapacity),
111     h_(enthalpy),
112     cpg_(idealGasHeatCapacity),
113     B_(secondVirialCoeff),
114     mu_(dynamicViscosity),
115     mug_(vapourDynamicViscosity),
116     K_(thermalConductivity),
117     Kg_(vapourThermalConductivity),
118     sigma_(surfaceTension),
119     D_(vapourDiffussivity)
123 Foam::C12H26::C12H26(Istream& is)
125     liquid(is),
126     rho_(is),
127     pv_(is),
128     hl_(is),
129     cp_(is),
130     h_(is),
131     cpg_(is),
132     B_(is),
133     mu_(is),
134     mug_(is),
135     K_(is),
136     Kg_(is),
137     sigma_(is),
138     D_(is)
142 // ************************************************************************* //