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

nC3H8O.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 #include "nC3H8O.H"
00027 #include <OpenFOAM/addToRunTimeSelectionTable.H>
00028 
00029 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00030 
00031 namespace Foam
00032 {
00033     defineTypeNameAndDebug(nC3H8O, 0);
00034     addToRunTimeSelectionTable(liquid, nC3H8O,);
00035     addToRunTimeSelectionTable(liquid, nC3H8O, Istream);
00036 }
00037 
00038 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00039 
00040 Foam::nC3H8O::nC3H8O()
00041 :
00042     liquid
00043     (
00044         60.096,
00045         536.71,
00046         5.1696e+6,
00047         0.21853,
00048         0.253,
00049         146.95,
00050         6.5112e-7,
00051         370.35,
00052         5.6039e-30,
00053         0.6279,
00054         2.4557e+4
00055     ),
00056     rho_(75.300288, 0.272, 536.71, 0.2494),
00057     pv_(77.46, -7960, -7.5235, 3e-07, 2.0),
00058     hl_(536.71, 1098242.8115016, 0.647, -0.783, 0.613, 0.0),
00059     cp_
00060     (
00061         216.320553780618,
00062         18.5203674121406,
00063        -0.0751797124600639,
00064         0.000126464323748669,
00065         0.0,
00066         0.0
00067     ),
00068     h_
00069     (
00070        -5533091.96851587,
00071         216.320553780618,
00072         9.26018370607029,
00073        -0.0250599041533546,
00074         3.16160809371672e-05,
00075         0.0
00076     ),
00077     cpg_(961.794462193823, 3467.78487752929, 1542, 2046.72523961661, 649),
00078     B_
00079     (
00080         0.000933506389776358,
00081        -1.09325079872204,
00082        -531649.361022364,
00083        -2.32627795527157e+17,
00084        -3.81888977635783e+20
00085     ),
00086     mu_(0.571, 1521, -2.0894, 0.0, 0.0),
00087     mug_(7.942e-07, 0.5491, 415.8, 0.0),
00088     K_(0.204, -0.000169, 0.0, 0.0, 0.0, 0.0),
00089     Kg_(-613.84, 0.7927, -1157400000.0, 0.0),
00090     sigma_(0.04533, -6.88e-05, -1.6e-08, 0.0, 0.0, 0.0),
00091     D_(4.75e-10, 1.75, 0.0, 0.0, 0.0) // note: same as iC3H8O
00092 {}
00093 
00094 
00095 Foam::nC3H8O::nC3H8O
00096 (
00097     const liquid& l,
00098     const NSRDSfunc5& density,
00099     const NSRDSfunc1& vapourPressure,
00100     const NSRDSfunc6& heatOfVapourisation,
00101     const NSRDSfunc0& heatCapacity,
00102     const NSRDSfunc0& enthalpy,
00103     const NSRDSfunc7& idealGasHeatCapacity,
00104     const NSRDSfunc4& secondVirialCoeff,
00105     const NSRDSfunc1& dynamicViscosity,
00106     const NSRDSfunc2& vapourDynamicViscosity,
00107     const NSRDSfunc0& thermalConductivity,
00108     const NSRDSfunc2& vapourThermalConductivity,
00109     const NSRDSfunc0& surfaceTension,
00110     const NSRDSfunc1& vapourDiffussivity
00111 )
00112 :
00113     liquid(l),
00114     rho_(density),
00115     pv_(vapourPressure),
00116     hl_(heatOfVapourisation),
00117     cp_(heatCapacity),
00118     h_(enthalpy),
00119     cpg_(idealGasHeatCapacity),
00120     B_(secondVirialCoeff),
00121     mu_(dynamicViscosity),
00122     mug_(vapourDynamicViscosity),
00123     K_(thermalConductivity),
00124     Kg_(vapourThermalConductivity),
00125     sigma_(surfaceTension),
00126     D_(vapourDiffussivity)
00127 {}
00128 
00129 
00130 Foam::nC3H8O::nC3H8O(Istream& is)
00131 :
00132     liquid(is),
00133     rho_(is),
00134     pv_(is),
00135     hl_(is),
00136     cp_(is),
00137     h_(is),
00138     cpg_(is),
00139     B_(is),
00140     mu_(is),
00141     mug_(is),
00142     K_(is),
00143     Kg_(is),
00144     sigma_(is),
00145     D_(is)
00146 {}
00147 
00148 
00149 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines