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

IDEA.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 "IDEA.H"
00028 #include "addToRunTimeSelectionTable.H"
00029 
00030 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00031 
00032 namespace Foam
00033 {
00034     defineTypeNameAndDebug(IDEA, 0);
00035     addToRunTimeSelectionTable(liquid, IDEA,);
00036     addToRunTimeSelectionTable(liquid, IDEA, Istream);
00037 }
00038 
00039 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00040 
00041 Foam::IDEA::IDEA()
00042 :
00043     liquid
00044     (
00045         142.26,
00046         618.074,
00047         2.11e+6,
00048         0.523,
00049         0.247,
00050         242.67,
00051         3.4929e-2,
00052         447.3,
00053         1.7012e-30,
00054         0.3478,
00055         1.57e+4
00056     ),
00057     rho_(152.012105, 3.87150382e-1, 618.073893, 4.00790044e-1),
00058     pv_
00059     (
00060         8.4817774623e+01,
00061        -8.6782398353e+03,
00062        -9.1277694857,
00063         4.6153144498e-06,
00064         2.0
00065     ),
00066     hl_
00067     (
00068         618.074,
00069         2.1671983789e+05,
00070        -4.2413153435e+00,
00071         1.1656811532e+01,
00072        -1.1656446689e+01,
00073         4.3667661492
00074     ),
00075     cp_(1.6604957e+3, -6.250871e-1, 6.1778552e-3, 0.0, 0.0, 0.0),
00076     h_(0.0, 0.0, 0.0, 0.0, 0.0, 0.0),
00077     cpg_
00078     (
00079         1.0457515243e+03,
00080         3.4410492875e+03,
00081         1.5976862298e+03,
00082         2.4697705752e+03,
00083         7.3699710536e+02
00084     ),
00085     B_
00086     (
00087         0.00337351091119935,
00088        -4.13606494008504,
00089        -534560.916470464,
00090        -1.13364022911762e+19,
00091         2.80704220402713e+21
00092     ),
00093     mu_(-6.9645853822e+01, 4.4390635942e+03, 8.4680722718e+00, 0.0, 0.0),
00094     mug_(4.2629382158e-08, 8.8144402122e-01, 9.6918097636e+01, 0.0),
00095     K_(2.03684e-01, -2.3168e-04, 0.0, 0.0, 0.0, 0.0),
00096     Kg_
00097     (
00098        -5.664925956707e+02,
00099         8.896721676320e-01,
00100        -2.849783998688e+09,
00101         6.914935658053e+05
00102     ),
00103     sigma_
00104     (
00105         618.074,
00106         8.3846525429e-03,
00107        -1.0044759047e+01,
00108         2.7261918781e+01,
00109        -2.5529134309e+01,
00110         8.6488806234
00111     ),
00112     D_(147.18, 20.1, 142.2, 28.0) // note: Same as nHeptane
00113 {}
00114 
00115 
00116 Foam::IDEA::IDEA
00117 (
00118     const liquid& l,
00119     const NSRDSfunc5& density,
00120     const NSRDSfunc1& vapourPressure,
00121     const NSRDSfunc6& heatOfVapourisation,
00122     const NSRDSfunc0& heatCapacity,
00123     const NSRDSfunc0& enthalpy,
00124     const NSRDSfunc7& idealGasHeatCapacity,
00125     const NSRDSfunc4& secondVirialCoeff,
00126     const NSRDSfunc1& dynamicViscosity,
00127     const NSRDSfunc2& vapourDynamicViscosity,
00128     const NSRDSfunc0& thermalConductivity,
00129     const NSRDSfunc2& vapourThermalConductivity,
00130     const NSRDSfunc6& surfaceTension,
00131     const APIdiffCoefFunc& vapourDiffussivity
00132 )
00133 :
00134     liquid(l),
00135     rho_(density),
00136     pv_(vapourPressure),
00137     hl_(heatOfVapourisation),
00138     cp_(heatCapacity),
00139     h_(enthalpy),
00140     cpg_(idealGasHeatCapacity),
00141     B_(secondVirialCoeff),
00142     mu_(dynamicViscosity),
00143     mug_(vapourDynamicViscosity),
00144     K_(thermalConductivity),
00145     Kg_(vapourThermalConductivity),
00146     sigma_(surfaceTension),
00147     D_(vapourDiffussivity)
00148 {}
00149 
00150 
00151 Foam::IDEA::IDEA(Istream& is)
00152 :
00153     liquid(is),
00154     rho_(is),
00155     pv_(is),
00156     hl_(is),
00157     cp_(is),
00158     h_(is),
00159     cpg_(is),
00160     B_(is),
00161     mu_(is),
00162     mug_(is),
00163     K_(is),
00164     Kg_(is),
00165     sigma_(is),
00166     D_(is)
00167 {}
00168 
00169 
00170 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd