FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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-2010 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
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your 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, see <http://www.gnu.org/licenses/>.
00023 
00024 -------------------------------------------------------------------------------
00025 */
00026 
00027 #include "CH4N2O.H"
00028 #include <OpenFOAM/addToRunTimeSelectionTable.H>
00029 
00030 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00031 
00032 namespace Foam
00033 {
00034     defineTypeNameAndDebug(CH4N2O, 0);
00035     addToRunTimeSelectionTable(liquid, CH4N2O,);
00036     addToRunTimeSelectionTable(liquid, CH4N2O, Istream);
00037 }
00038 
00039 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00040 
00041 Foam::CH4N2O::CH4N2O()
00042 :
00043     liquid
00044     (
00045         60.056,
00046         705.0,
00047         9.050e+6,
00048         0.218,
00049         0.337,
00050         405.85,
00051         9.3131e+1,
00052         465.0,
00053         1.52e-29,
00054         0.3449,
00055         4.7813e+4
00056     ),
00057     rho_(1230.006936, 0.0, 0.0, 0.0, 0.0, 0.0),
00058     pv_(3015.15611544, -185497.059684, -430.223621983, 0.00017405122622, 2.0),
00059     hl_(705.0, 2534249.0, 0.5, 0.0, 0.0, 0.0),
00060     cp_(2006.46063673904, 0.0, 0.0, 0.0, 0.0, 0.0),
00061     h_(-6154107.41641135, 2006.46063673904, 0.0, 0.0, 0.0, 0.0),
00062     cpg_(811.875582789397, 2099.04089516451, 1627.3, 1603.63660583455, 724.41),
00063     B_
00064     (
00065        -0.000383641934194752,
00066         0.447249234048222,
00067        -469062.208605302,
00068         5.5628080458239e+18,
00069        -2.3040162514986e+21
00070     ),
00071     mu_(-51.964, 3670.6, 5.7331, -5.3495e-29, 10.0),
00072     mug_(2.6986e-06, 0.498, 1257.7, -19570.0),
00073     K_(-0.4267, 0.0056903, -8.0065e-06, 1.815e-09, 0.0, 0.0),
00074     Kg_(6.977e-05, 1.1243, 844.9, -148850.0),
00075     sigma_(705.0, 1.0, 0.0, 0.0, 0.0, 0.0), // note: set to constant
00076     D_(147.18, 20.1, 60.056, 28.0) // note: Same as nHeptane
00077 {}
00078 
00079 
00080 Foam::CH4N2O::CH4N2O
00081 (
00082     const liquid& l,
00083     const NSRDSfunc0& density,
00084     const NSRDSfunc1& vapourPressure,
00085     const NSRDSfunc6& heatOfVapourisation,
00086     const NSRDSfunc0& heatCapacity,
00087     const NSRDSfunc0& enthalpy,
00088     const NSRDSfunc7& idealGasHeatCapacity,
00089     const NSRDSfunc4& secondVirialCoeff,
00090     const NSRDSfunc1& dynamicViscosity,
00091     const NSRDSfunc2& vapourDynamicViscosity,
00092     const NSRDSfunc0& thermalConductivity,
00093     const NSRDSfunc2& vapourThermalConductivity,
00094     const NSRDSfunc6& surfaceTension,
00095     const APIdiffCoefFunc& vapourDiffussivity
00096 )
00097 :
00098     liquid(l),
00099     rho_(density),
00100     pv_(vapourPressure),
00101     hl_(heatOfVapourisation),
00102     cp_(heatCapacity),
00103     h_(enthalpy),
00104     cpg_(idealGasHeatCapacity),
00105     B_(secondVirialCoeff),
00106     mu_(dynamicViscosity),
00107     mug_(vapourDynamicViscosity),
00108     K_(thermalConductivity),
00109     Kg_(vapourThermalConductivity),
00110     sigma_(surfaceTension),
00111     D_(vapourDiffussivity)
00112 {}
00113 
00114 
00115 Foam::CH4N2O::CH4N2O(Istream& is)
00116 :
00117     liquid(is),
00118     rho_(is),
00119     pv_(is),
00120     hl_(is),
00121     cp_(is),
00122     h_(is),
00123     cpg_(is),
00124     B_(is),
00125     mu_(is),
00126     mug_(is),
00127     K_(is),
00128     Kg_(is),
00129     sigma_(is),
00130     D_(is)
00131 {}
00132 
00133 
00134 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines