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

H2O.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 "H2O.H"
00028 #include "addToRunTimeSelectionTable.H"
00029 
00030 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00031 
00032 namespace Foam
00033 {
00034     defineTypeNameAndDebug(H2O, 0);
00035     addToRunTimeSelectionTable(liquid, H2O,);
00036     addToRunTimeSelectionTable(liquid, H2O, Istream);
00037 }
00038 
00039 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00040 
00041 Foam::H2O::H2O()
00042 :
00043     liquid
00044     (
00045         18.015,
00046         647.13,
00047         2.2055e+7,
00048         0.05595,
00049         0.229,
00050         273.16,
00051         6.113e+2,
00052         373.15,
00053         6.1709e-30,
00054         0.3449,
00055         4.7813e+4
00056     ),
00057     rho_(98.343885, 0.30542, 647.13, 0.081),
00058     pv_(73.649, -7258.2, -7.3037, 4.1653e-06, 2),
00059     hl_(647.13, 2889425.47876769, 0.3199, -0.212, 0.25795, 0),
00060     cp_
00061     (
00062         15341.1046350264,
00063        -116.019983347211,
00064         0.451013044684985,
00065        -0.000783569247849015,
00066         5.20127671384957e-07,
00067         0
00068     ),
00069     h_
00070     (
00071        -17957283.7993676,
00072         15341.1046350264,
00073        -58.0099916736053,
00074         0.150337681561662,
00075        -0.000195892311962254,
00076         1.04025534276991e-07
00077     ),
00078     cpg_
00079     (
00080         1851.73466555648,
00081         1487.53816264224,
00082         2609.3,
00083         493.366638912018,
00084         1167.6
00085     ),
00086     B_
00087     (
00088        -0.0012789342214821,
00089         1.4909797391063,
00090        -1563696.91923397,
00091         1.85445462114904e+19,
00092        -7.68082153760755e+21
00093     ),
00094     mu_(-51.964, 3670.6, 5.7331, -5.3495e-29, 10),
00095     mug_(2.6986e-06, 0.498, 1257.7, -19570),
00096     K_(-0.4267, 0.0056903, -8.0065e-06, 1.815e-09, 0, 0),
00097     Kg_(6.977e-05, 1.1243, 844.9, -148850),
00098     sigma_(647.13, 0.18548, 2.717, -3.554, 2.047, 0),
00099     D_(15.0, 15.0, 18.015, 28)
00100 {}
00101 
00102 
00103 Foam::H2O::H2O
00104 (
00105     const liquid& l,
00106     const NSRDSfunc5& density,
00107     const NSRDSfunc1& vapourPressure,
00108     const NSRDSfunc6& heatOfVapourisation,
00109     const NSRDSfunc0& heatCapacity,
00110     const NSRDSfunc0& enthalpy,
00111     const NSRDSfunc7& idealGasHeatCapacity,
00112     const NSRDSfunc4& secondVirialCoeff,
00113     const NSRDSfunc1& dynamicViscosity,
00114     const NSRDSfunc2& vapourDynamicViscosity,
00115     const NSRDSfunc0& thermalConductivity,
00116     const NSRDSfunc2& vapourThermalConductivity,
00117     const NSRDSfunc6& surfaceTension,
00118     const APIdiffCoefFunc& vapourDiffussivity
00119 )
00120 :
00121     liquid(l),
00122     rho_(density),
00123     pv_(vapourPressure),
00124     hl_(heatOfVapourisation),
00125     cp_(heatCapacity),
00126     h_(enthalpy),
00127     cpg_(idealGasHeatCapacity),
00128     B_(secondVirialCoeff),
00129     mu_(dynamicViscosity),
00130     mug_(vapourDynamicViscosity),
00131     K_(thermalConductivity),
00132     Kg_(vapourThermalConductivity),
00133     sigma_(surfaceTension),
00134     D_(vapourDiffussivity)
00135 {}
00136 
00137 
00138 Foam::H2O::H2O(Istream& is)
00139 :
00140     liquid(is),
00141     rho_(is),
00142     pv_(is),
00143     hl_(is),
00144     cp_(is),
00145     h_(is),
00146     cpg_(is),
00147     B_(is),
00148     mu_(is),
00149     mug_(is),
00150     K_(is),
00151     Kg_(is),
00152     sigma_(is),
00153     D_(is)
00154 {}
00155 
00156 
00157 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd