initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / thermophysicalModels / liquids / CH4N2O / CH4N2O.C
blobd1b0ac261006c113e0e05ad56b5edb5986ed2ce9
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 -------------------------------------------------------------------------------
30 #include "CH4N2O.H"
31 #include "addToRunTimeSelectionTable.H"
33 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
35 namespace Foam
37     defineTypeNameAndDebug(CH4N2O, 0);
38     addToRunTimeSelectionTable(liquid, CH4N2O,);
39     addToRunTimeSelectionTable(liquid, CH4N2O, Istream);
42 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
44 Foam::CH4N2O::CH4N2O()
46     liquid
47     (
48         60.056,
49         705.0,
50         9.050e+6,
51         0.218,
52         0.337,
53         405.85,
54         9.3131e+1,
55         465.0,
56         1.52e-29,
57         0.3449,
58         4.7813e+4
59     ),
60     rho_(1230.006936, 0.0, 0.0, 0.0, 0.0, 0.0),
61     pv_(3015.15611544, -185497.059684, -430.223621983, 0.00017405122622, 2.0),
62     hl_(705.0, 2534249.0, 0.5, 0.0, 0.0, 0.0),
63     cp_(2006.46063673904, 0.0, 0.0, 0.0, 0.0, 0.0),
64     h_(-6154107.41641135, 2006.46063673904, 0.0, 0.0, 0.0, 0.0),
65     cpg_(811.875582789397, 2099.04089516451, 1627.3, 1603.63660583455, 724.41),
66     B_
67     (
68        -0.000383641934194752,
69         0.447249234048222,
70        -469062.208605302,
71         5.5628080458239e+18,
72        -2.3040162514986e+21
73     ),
74     mu_(-51.964, 3670.6, 5.7331, -5.3495e-29, 10.0),
75     mug_(2.6986e-06, 0.498, 1257.7, -19570.0),
76     K_(-0.4267, 0.0056903, -8.0065e-06, 1.815e-09, 0.0, 0.0),
77     Kg_(6.977e-05, 1.1243, 844.9, -148850.0),
78     sigma_(705.0, 1.0, 0.0, 0.0, 0.0, 0.0), // note: set to constant
79     D_(147.18, 20.1, 60.056, 28.0) // note: Same as nHeptane
83 Foam::CH4N2O::CH4N2O
85     const liquid& l,
86     const NSRDSfunc0& density,
87     const NSRDSfunc1& vapourPressure,
88     const NSRDSfunc6& heatOfVapourisation,
89     const NSRDSfunc0& heatCapacity,
90     const NSRDSfunc0& enthalpy,
91     const NSRDSfunc7& idealGasHeatCapacity,
92     const NSRDSfunc4& secondVirialCoeff,
93     const NSRDSfunc1& dynamicViscosity,
94     const NSRDSfunc2& vapourDynamicViscosity,
95     const NSRDSfunc0& thermalConductivity,
96     const NSRDSfunc2& vapourThermalConductivity,
97     const NSRDSfunc6& surfaceTension,
98     const APIdiffCoefFunc& vapourDiffussivity
101     liquid(l),
102     rho_(density),
103     pv_(vapourPressure),
104     hl_(heatOfVapourisation),
105     cp_(heatCapacity),
106     h_(enthalpy),
107     cpg_(idealGasHeatCapacity),
108     B_(secondVirialCoeff),
109     mu_(dynamicViscosity),
110     mug_(vapourDynamicViscosity),
111     K_(thermalConductivity),
112     Kg_(vapourThermalConductivity),
113     sigma_(surfaceTension),
114     D_(vapourDiffussivity)
118 Foam::CH4N2O::CH4N2O(Istream& is)
120     liquid(is),
121     rho_(is),
122     pv_(is),
123     hl_(is),
124     cp_(is),
125     h_(is),
126     cpg_(is),
127     B_(is),
128     mu_(is),
129     mug_(is),
130     K_(is),
131     Kg_(is),
132     sigma_(is),
133     D_(is)
137 // ************************************************************************* //