initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / thermophysicalModels / liquids / iC3H8O / iC3H8O.C
blobf3985234601a2e733a45cacba016299ffd5b0efd
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 Description
27 \*---------------------------------------------------------------------------*/
29 #include "iC3H8O.H"
30 #include "addToRunTimeSelectionTable.H"
32 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
34 namespace Foam
36     defineTypeNameAndDebug(iC3H8O, 0);
37     addToRunTimeSelectionTable(liquid, iC3H8O,);
38     addToRunTimeSelectionTable(liquid, iC3H8O, Istream);
41 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
43 Foam::iC3H8O::iC3H8O()
45     liquid
46     (
47         60.096,
48         508.31,
49         4.7643e+6,
50         0.22013,
51         0.248,
52         185.28,
53         3.20e-2,
54         355.41,
55         5.5372e-30,
56         0.6689,
57         2.3575e+4
58     ),
59     rho_(70.91328, 0.26475, 508.31, 0.243),
60     pv_(92.935, -8177.1, -10.031, 3.9988e-06, 2.0),
61     hl_(508.31, 948149.627263046, 0.087, 0.3007, 0.0, 0.0),
62     cp_
63     (
64         7760.91586794462,
65        -68.3672790202343,
66         0.241380457933972,
67        -0.000235057241746539,
68         0.0,
69         0.0
70     ),
71     h_
72     (
73        -6227786.27583977,
74         7760.91586794462,
75        -34.1836395101172,
76         0.0804601526446574,
77        -5.87643104366347e-05,
78         0.0
79     ),
80     cpg_(789.73642172524, 3219.8482428115, 1124, 1560.83599574015, 460.0),
81     B_
82     (
83         0.000502529286474973,
84        -0.104665867944622,
85        -717185.83599574,
86         3.3047124600639e+18,
87        -1.43270766773163e+21
88     ),
89     mu_(-8.23, 2282.2, -0.98495, 0.0, 0.0),
90     mug_(1.993e-07, 0.7233, 178.0, 0.0),
91     K_(0.2029, -0.0002278, 0.0, 0.0, 0.0, 0.0),
92     Kg_(-80.642, -1.4549, -604.42, 0.0),
93     sigma_(0.03818, -3.818e-05, -6.51e-08, 0.0, 0.0, 0.0),
94     D_(4.75e-10, 1.75, 0.0, 0.0, 0.0)
98 Foam::iC3H8O::iC3H8O
100     const liquid& l,
101     const NSRDSfunc5& density,
102     const NSRDSfunc1& vapourPressure,
103     const NSRDSfunc6& heatOfVapourisation,
104     const NSRDSfunc0& heatCapacity,
105     const NSRDSfunc0& enthalpy,
106     const NSRDSfunc7& idealGasHeatCapacity,
107     const NSRDSfunc4& secondVirialCoeff,
108     const NSRDSfunc1& dynamicViscosity,
109     const NSRDSfunc2& vapourDynamicViscosity,
110     const NSRDSfunc0& thermalConductivity,
111     const NSRDSfunc2& vapourThermalConductivity,
112     const NSRDSfunc0& surfaceTension,
113     const NSRDSfunc1& vapourDiffussivity
116     liquid(l),
117     rho_(density),
118     pv_(vapourPressure),
119     hl_(heatOfVapourisation),
120     cp_(heatCapacity),
121     h_(enthalpy),
122     cpg_(idealGasHeatCapacity),
123     B_(secondVirialCoeff),
124     mu_(dynamicViscosity),
125     mug_(vapourDynamicViscosity),
126     K_(thermalConductivity),
127     Kg_(vapourThermalConductivity),
128     sigma_(surfaceTension),
129     D_(vapourDiffussivity)
133 Foam::iC3H8O::iC3H8O(Istream& is)
135     liquid(is),
136     rho_(is),
137     pv_(is),
138     hl_(is),
139     cp_(is),
140     h_(is),
141     cpg_(is),
142     B_(is),
143     mu_(is),
144     mug_(is),
145     K_(is),
146     Kg_(is),
147     sigma_(is),
148     D_(is)
152 // ************************************************************************* //