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

C7H16.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 "C7H16.H"
00028 #include "addToRunTimeSelectionTable.H"
00029 
00030 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00031 
00032 namespace Foam
00033 {
00034     defineTypeNameAndDebug(C7H16, 0);
00035     addToRunTimeSelectionTable(liquid, C7H16,);
00036     addToRunTimeSelectionTable(liquid, C7H16, Istream);
00037 }
00038 
00039 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00040 
00041 Foam::C7H16::C7H16()
00042 :
00043     liquid
00044     (
00045         100.204,
00046         540.20,
00047         2.74e+6,
00048         0.428,
00049         0.261,
00050         182.57,
00051         1.8269e-1,
00052         371.58,
00053         0.0,
00054         0.3495,
00055         1.52e+4
00056     ),
00057     rho_(61.38396836, 0.26211, 540.2, 0.28141),
00058     pv_(87.829, -6996.4, -9.8802, 7.2099e-06, 2.0),
00059     hl_(540.20, 499121.791545248, 0.38795, 0.0, 0.0, 0.0),
00060     cp_
00061     (
00062         540.20,
00063         6.11976102401216,
00064         3137.69909384855,
00065         182.274175063868,
00066        -254.530511150515
00067     ),
00068     h_(-3.1469964e+6,7.3072e+3,-3.52884e+1,1.10637e-1,-1.634831e-4,9.64941e-8),
00069     cpg_(1199.05392998284, 3992.85457666361, 1676.6, 2734.42177956968, 756.4),
00070     B_
00071     (
00072         0.00274040956448844,
00073        -2.90407568560137,
00074        -440900.562851782,
00075        -8.78208454752305e+17,
00076         1.28238393676899e+20
00077     ),
00078     mu_(-24.451, 1533.1, 2.0087, 0.0, 0.0),
00079     mug_(6.672e-08, 0.82837, 85.752, 0.0),
00080     K_(0.215, -0.000303, 0.0, 0.0, 0.0, 0.0),
00081     Kg_(-0.070028, 0.38068, -7049.9, -2400500.0),
00082     sigma_(540.20, 0.054143, 1.2512, 0.0, 0.0, 0.0),
00083     D_(147.18, 20.1, 100.204, 28.0) // note: Same as C7H16
00084 {}
00085 
00086 
00087 Foam::C7H16::C7H16
00088 (
00089     const liquid& l,
00090     const NSRDSfunc5& density,
00091     const NSRDSfunc1& vapourPressure,
00092     const NSRDSfunc6& heatOfVapourisation,
00093     const NSRDSfunc14& heatCapacity,
00094     const NSRDSfunc0& enthalpy,
00095     const NSRDSfunc7& idealGasHeatCapacity,
00096     const NSRDSfunc4& secondVirialCoeff,
00097     const NSRDSfunc1& dynamicViscosity,
00098     const NSRDSfunc2& vapourDynamicViscosity,
00099     const NSRDSfunc0& thermalConductivity,
00100     const NSRDSfunc2& vapourThermalConductivity,
00101     const NSRDSfunc6& surfaceTension,
00102     const APIdiffCoefFunc& vapourDiffussivity
00103 )
00104 :
00105     liquid(l),
00106     rho_(density),
00107     pv_(vapourPressure),
00108     hl_(heatOfVapourisation),
00109     cp_(heatCapacity),
00110     h_(enthalpy),
00111     cpg_(idealGasHeatCapacity),
00112     B_(secondVirialCoeff),
00113     mu_(dynamicViscosity),
00114     mug_(vapourDynamicViscosity),
00115     K_(thermalConductivity),
00116     Kg_(vapourThermalConductivity),
00117     sigma_(surfaceTension),
00118     D_(vapourDiffussivity)
00119 {}
00120 
00121 
00122 Foam::C7H16::C7H16(Istream& is)
00123 :
00124     liquid(is),
00125     rho_(is),
00126     pv_(is),
00127     hl_(is),
00128     cp_(is),
00129     h_(is),
00130     cpg_(is),
00131     B_(is),
00132     mu_(is),
00133     mug_(is),
00134     K_(is),
00135     Kg_(is),
00136     sigma_(is),
00137     D_(is)
00138 {}
00139 
00140 
00141 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd