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

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