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

iC3H8O.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 #include "iC3H8O.H"
00030 #include "addToRunTimeSelectionTable.H"
00031 
00032 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00033 
00034 namespace Foam
00035 {
00036     defineTypeNameAndDebug(iC3H8O, 0);
00037     addToRunTimeSelectionTable(liquid, iC3H8O,);
00038     addToRunTimeSelectionTable(liquid, iC3H8O, Istream);
00039 }
00040 
00041 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00042 
00043 Foam::iC3H8O::iC3H8O()
00044 :
00045     liquid
00046     (
00047         60.096,
00048         508.31,
00049         4.7643e+6,
00050         0.22013,
00051         0.248,
00052         185.28,
00053         3.20e-2,
00054         355.41,
00055         5.5372e-30,
00056         0.6689,
00057         2.3575e+4
00058     ),
00059     rho_(70.91328, 0.26475, 508.31, 0.243),
00060     pv_(92.935, -8177.1, -10.031, 3.9988e-06, 2.0),
00061     hl_(508.31, 948149.627263046, 0.087, 0.3007, 0.0, 0.0),
00062     cp_
00063     (
00064         7760.91586794462,
00065        -68.3672790202343,
00066         0.241380457933972,
00067        -0.000235057241746539,
00068         0.0,
00069         0.0
00070     ),
00071     h_
00072     (
00073        -6227786.27583977,
00074         7760.91586794462,
00075        -34.1836395101172,
00076         0.0804601526446574,
00077        -5.87643104366347e-05,
00078         0.0
00079     ),
00080     cpg_(789.73642172524, 3219.8482428115, 1124, 1560.83599574015, 460.0),
00081     B_
00082     (
00083         0.000502529286474973,
00084        -0.104665867944622,
00085        -717185.83599574,
00086         3.3047124600639e+18,
00087        -1.43270766773163e+21
00088     ),
00089     mu_(-8.23, 2282.2, -0.98495, 0.0, 0.0),
00090     mug_(1.993e-07, 0.7233, 178.0, 0.0),
00091     K_(0.2029, -0.0002278, 0.0, 0.0, 0.0, 0.0),
00092     Kg_(-80.642, -1.4549, -604.42, 0.0),
00093     sigma_(0.03818, -3.818e-05, -6.51e-08, 0.0, 0.0, 0.0),
00094     D_(4.75e-10, 1.75, 0.0, 0.0, 0.0)
00095 {}
00096 
00097 
00098 Foam::iC3H8O::iC3H8O
00099 (
00100     const liquid& l,
00101     const NSRDSfunc5& density,
00102     const NSRDSfunc1& vapourPressure,
00103     const NSRDSfunc6& heatOfVapourisation,
00104     const NSRDSfunc0& heatCapacity,
00105     const NSRDSfunc0& enthalpy,
00106     const NSRDSfunc7& idealGasHeatCapacity,
00107     const NSRDSfunc4& secondVirialCoeff,
00108     const NSRDSfunc1& dynamicViscosity,
00109     const NSRDSfunc2& vapourDynamicViscosity,
00110     const NSRDSfunc0& thermalConductivity,
00111     const NSRDSfunc2& vapourThermalConductivity,
00112     const NSRDSfunc0& surfaceTension,
00113     const NSRDSfunc1& vapourDiffussivity
00114 )
00115 :
00116     liquid(l),
00117     rho_(density),
00118     pv_(vapourPressure),
00119     hl_(heatOfVapourisation),
00120     cp_(heatCapacity),
00121     h_(enthalpy),
00122     cpg_(idealGasHeatCapacity),
00123     B_(secondVirialCoeff),
00124     mu_(dynamicViscosity),
00125     mug_(vapourDynamicViscosity),
00126     K_(thermalConductivity),
00127     Kg_(vapourThermalConductivity),
00128     sigma_(surfaceTension),
00129     D_(vapourDiffussivity)
00130 {}
00131 
00132 
00133 Foam::iC3H8O::iC3H8O(Istream& is)
00134 :
00135     liquid(is),
00136     rho_(is),
00137     pv_(is),
00138     hl_(is),
00139     cp_(is),
00140     h_(is),
00141     cpg_(is),
00142     B_(is),
00143     mu_(is),
00144     mug_(is),
00145     K_(is),
00146     Kg_(is),
00147     sigma_(is),
00148     D_(is)
00149 {}
00150 
00151 
00152 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd