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

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