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

C12H26.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 "C12H26.H"
00028 #include "addToRunTimeSelectionTable.H"
00029 
00030 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00031 
00032 namespace Foam
00033 {
00034     defineTypeNameAndDebug(C12H26, 0);
00035     addToRunTimeSelectionTable(liquid, C12H26,);
00036     addToRunTimeSelectionTable(liquid, C12H26, Istream);
00037 }
00038 
00039 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00040 
00041 Foam::C12H26::C12H26()
00042 :
00043     liquid
00044     (
00045         170.338,
00046         658.0,
00047         1.82e+6,
00048         0.716,
00049         0.238,
00050         263.57,
00051         6.152e-1,
00052         489.47,
00053         0.0,
00054         0.5764,
00055         1.59e+4
00056     ),
00057     rho_(60.53982858, 0.25511, 658.0, 0.29368),
00058     pv_(137.47, -11976.0, -16.698, 8.0906e-06, 2.0),
00059     hl_(658.0, 454020.829174935, 0.40681, 0.0, 0.0, 0.0),
00060     cp_(2983.53861146661, -8.0352006011577, 0.018207916025784, 0.0, 0.0, 0.0),
00061     h_
00062     (
00063        -2755166.83820769,
00064         2983.53861146661,
00065        -4.01760030057885,
00066         0.00606930534192801,
00067         0.0,
00068         0.0
00069     ),
00070     cpg_(1250.16144371778, 3894.02247296552, 1715.5, 2650.67101879792, 777.5),
00071     B_
00072     (
00073         0.00516619896910848,
00074        -6.40491258556517,
00075        -295295.236529723,
00076        -3.22147729807794e+19,
00077         8.78195117941974e+21
00078     ),
00079     mu_(-20.607, 1943, 1.3205, 0.0, 0.0),
00080     mug_(6.344e-08, 0.8287, 219.5, 0.0),
00081     K_(0.2047, -0.0002326, 0.0, 0.0, 0.0, 0.0),
00082     Kg_(5.719e-06, 1.4699, 579.4, 0.0),
00083     sigma_(658.0, 0.055493, 1.3262, 0.0, 0.0, 0.0),
00084     D_(147.18, 20.1, 170.338, 28.0) // note: Same as nHeptane
00085 {}
00086 
00087 
00088 Foam::C12H26::C12H26
00089 (
00090     const liquid& l,
00091     const NSRDSfunc5& density,
00092     const NSRDSfunc1& vapourPressure,
00093     const NSRDSfunc6& heatOfVapourisation,
00094     const NSRDSfunc0& heatCapacity,
00095     const NSRDSfunc0& enthalpy,
00096     const NSRDSfunc7& idealGasHeatCapacity,
00097     const NSRDSfunc4& secondVirialCoeff,
00098     const NSRDSfunc1& dynamicViscosity,
00099     const NSRDSfunc2& vapourDynamicViscosity,
00100     const NSRDSfunc0& thermalConductivity,
00101     const NSRDSfunc2& vapourThermalConductivity,
00102     const NSRDSfunc6& surfaceTension,
00103     const APIdiffCoefFunc& vapourDiffussivity
00104 )
00105 :
00106     liquid(l),
00107     rho_(density),
00108     pv_(vapourPressure),
00109     hl_(heatOfVapourisation),
00110     cp_(heatCapacity),
00111     h_(enthalpy),
00112     cpg_(idealGasHeatCapacity),
00113     B_(secondVirialCoeff),
00114     mu_(dynamicViscosity),
00115     mug_(vapourDynamicViscosity),
00116     K_(thermalConductivity),
00117     Kg_(vapourThermalConductivity),
00118     sigma_(surfaceTension),
00119     D_(vapourDiffussivity)
00120 {}
00121 
00122 
00123 Foam::C12H26::C12H26(Istream& is)
00124 :
00125     liquid(is),
00126     rho_(is),
00127     pv_(is),
00128     hl_(is),
00129     cp_(is),
00130     h_(is),
00131     cpg_(is),
00132     B_(is),
00133     mu_(is),
00134     mug_(is),
00135     K_(is),
00136     Kg_(is),
00137     sigma_(is),
00138     D_(is)
00139 {}
00140 
00141 
00142 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd