OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

CH4N2O.C

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Description
00026 
00027 -------------------------------------------------------------------------------
00028 */
00029 
00030 #include "CH4N2O.H"
00031 #include "addToRunTimeSelectionTable.H"
00032 
00033 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00034 
00035 namespace Foam
00036 {
00037     defineTypeNameAndDebug(CH4N2O, 0);
00038     addToRunTimeSelectionTable(liquid, CH4N2O,);
00039     addToRunTimeSelectionTable(liquid, CH4N2O, Istream);
00040 }
00041 
00042 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00043 
00044 Foam::CH4N2O::CH4N2O()
00045 :
00046     liquid
00047     (
00048         60.056,
00049         705.0,
00050         9.050e+6,
00051         0.218,
00052         0.337,
00053         405.85,
00054         9.3131e+1,
00055         465.0,
00056         1.52e-29,
00057         0.3449,
00058         4.7813e+4
00059     ),
00060     rho_(1230.006936, 0.0, 0.0, 0.0, 0.0, 0.0),
00061     pv_(3015.15611544, -185497.059684, -430.223621983, 0.00017405122622, 2.0),
00062     hl_(705.0, 2534249.0, 0.5, 0.0, 0.0, 0.0),
00063     cp_(2006.46063673904, 0.0, 0.0, 0.0, 0.0, 0.0),
00064     h_(-6154107.41641135, 2006.46063673904, 0.0, 0.0, 0.0, 0.0),
00065     cpg_(811.875582789397, 2099.04089516451, 1627.3, 1603.63660583455, 724.41),
00066     B_
00067     (
00068        -0.000383641934194752,
00069         0.447249234048222,
00070        -469062.208605302,
00071         5.5628080458239e+18,
00072        -2.3040162514986e+21
00073     ),
00074     mu_(-51.964, 3670.6, 5.7331, -5.3495e-29, 10.0),
00075     mug_(2.6986e-06, 0.498, 1257.7, -19570.0),
00076     K_(-0.4267, 0.0056903, -8.0065e-06, 1.815e-09, 0.0, 0.0),
00077     Kg_(6.977e-05, 1.1243, 844.9, -148850.0),
00078     sigma_(705.0, 1.0, 0.0, 0.0, 0.0, 0.0), // note: set to constant
00079     D_(147.18, 20.1, 60.056, 28.0) // note: Same as nHeptane
00080 {}
00081 
00082 
00083 Foam::CH4N2O::CH4N2O
00084 (
00085     const liquid& l,
00086     const NSRDSfunc0& density,
00087     const NSRDSfunc1& vapourPressure,
00088     const NSRDSfunc6& heatOfVapourisation,
00089     const NSRDSfunc0& heatCapacity,
00090     const NSRDSfunc0& enthalpy,
00091     const NSRDSfunc7& idealGasHeatCapacity,
00092     const NSRDSfunc4& secondVirialCoeff,
00093     const NSRDSfunc1& dynamicViscosity,
00094     const NSRDSfunc2& vapourDynamicViscosity,
00095     const NSRDSfunc0& thermalConductivity,
00096     const NSRDSfunc2& vapourThermalConductivity,
00097     const NSRDSfunc6& surfaceTension,
00098     const APIdiffCoefFunc& vapourDiffussivity
00099 )
00100 :
00101     liquid(l),
00102     rho_(density),
00103     pv_(vapourPressure),
00104     hl_(heatOfVapourisation),
00105     cp_(heatCapacity),
00106     h_(enthalpy),
00107     cpg_(idealGasHeatCapacity),
00108     B_(secondVirialCoeff),
00109     mu_(dynamicViscosity),
00110     mug_(vapourDynamicViscosity),
00111     K_(thermalConductivity),
00112     Kg_(vapourThermalConductivity),
00113     sigma_(surfaceTension),
00114     D_(vapourDiffussivity)
00115 {}
00116 
00117 
00118 Foam::CH4N2O::CH4N2O(Istream& is)
00119 :
00120     liquid(is),
00121     rho_(is),
00122     pv_(is),
00123     hl_(is),
00124     cp_(is),
00125     h_(is),
00126     cpg_(is),
00127     B_(is),
00128     mu_(is),
00129     mug_(is),
00130     K_(is),
00131     Kg_(is),
00132     sigma_(is),
00133     D_(is)
00134 {}
00135 
00136 
00137 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd