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

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