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

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