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

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