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

C3H8.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 "C3H8.H"
00028 #include "addToRunTimeSelectionTable.H"
00029 
00030 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00031 
00032 namespace Foam
00033 {
00034     defineTypeNameAndDebug(C3H8, 0);
00035     addToRunTimeSelectionTable(liquid, C3H8,);
00036     addToRunTimeSelectionTable(liquid, C3H8, Istream);
00037 }
00038 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00039 
00040 Foam::C3H8::C3H8()
00041 :
00042     liquid
00043     (
00044         44.096,
00045         369.83,
00046         4.248e+6,
00047         0.2, 0.276,
00048         85.47,
00049         1.685e-4,
00050         231.11,
00051         0.0,
00052         0.1523,
00053         1.31e+4
00054     ),
00055     rho_(60.6628672, 0.27453, 369.83, 0.29359),
00056     pv_(59.078, -3492.6, -6.0669, 1.0919e-05, 2.0),
00057     hl_(369.83, 662395.682148041, 0.78237, -0.77319, 0.39246, 0.0),
00058     cp_
00059     (
00060         369.83,
00061         9.48470319647089,
00062         2576.87772133527,
00063         95.3560311677331,
00064        -131.535634282099
00065     ),
00066     h_(0.0, 0.0, 0.0, 0.0, 0.0, 0.0),
00067     cpg_(1177.43105950653, 4364.34143686502, 1626.5, 2648.76632801161, 723.6),
00068     B_
00069     (
00070         0.00255578737300435,
00071        -2.24963715529753,
00072        -102276.850507983,
00073         7.00743831640058e+15,
00074        -1.59878447024673e+18
00075     ),
00076     mu_(-6.9281, 420.76, -0.63276, -1.713e-26, 10.0),
00077     mug_(2.4993e-07, 0.68612, 179.34, -8254.6),
00078     K_(0.26755, -0.00066457, 2.774e-07, 0.0, 0.0, 0.0),
00079     Kg_(-1.12, 0.10972, -9834.6, -7535800),
00080     sigma_(369.83, 0.05092, 1.2197, 0.0, 0.0, 0.0),
00081     D_(147.18, 20.1, 44.096, 28) // note: Same as nHeptane
00082 {}
00083 
00084 
00085 Foam::C3H8::C3H8
00086 (
00087     const liquid& l,
00088     const NSRDSfunc5& density,
00089     const NSRDSfunc1& vapourPressure,
00090     const NSRDSfunc6& heatOfVapourisation,
00091     const NSRDSfunc14& heatCapacity,
00092     const NSRDSfunc0& enthalpy,
00093     const NSRDSfunc7& idealGasHeatCapacity,
00094     const NSRDSfunc4& secondVirialCoeff,
00095     const NSRDSfunc1& dynamicViscosity,
00096     const NSRDSfunc2& vapourDynamicViscosity,
00097     const NSRDSfunc0& thermalConductivity,
00098     const NSRDSfunc2& vapourThermalConductivity,
00099     const NSRDSfunc6& surfaceTension,
00100     const APIdiffCoefFunc& vapourDiffussivity
00101 )
00102 :
00103     liquid(l),
00104     rho_(density),
00105     pv_(vapourPressure),
00106     hl_(heatOfVapourisation),
00107     cp_(heatCapacity),
00108     h_(enthalpy),
00109     cpg_(idealGasHeatCapacity),
00110     B_(secondVirialCoeff),
00111     mu_(dynamicViscosity),
00112     mug_(vapourDynamicViscosity),
00113     K_(thermalConductivity),
00114     Kg_(vapourThermalConductivity),
00115     sigma_(surfaceTension),
00116     D_(vapourDiffussivity)
00117 {}
00118 
00119 
00120 Foam::C3H8::C3H8(Istream& is)
00121 :
00122     liquid(is),
00123     rho_(is),
00124     pv_(is),
00125     hl_(is),
00126     cp_(is),
00127     h_(is),
00128     cpg_(is),
00129     B_(is),
00130     mu_(is),
00131     mug_(is),
00132     K_(is),
00133     Kg_(is),
00134     sigma_(is),
00135     D_(is)
00136 {}
00137 
00138 
00139 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd