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

MB.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 "MB.H"
00028 #include "addToRunTimeSelectionTable.H"
00029 
00030 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00031 
00032 namespace Foam
00033 {
00034     defineTypeNameAndDebug(MB, 0);
00035     addToRunTimeSelectionTable(liquid, MB,);
00036     addToRunTimeSelectionTable(liquid, MB, Istream);
00037 }
00038 
00039 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00040 
00041 Foam::MB::MB()
00042 :
00043     liquid
00044     (
00045         102.133,
00046         554.5,
00047         3.4734e+6,
00048         0.34,
00049         0.256,
00050         187.35,
00051         1.0102e-1,
00052         375.90,
00053         5.7373e-30,
00054         0.3807,
00055         1.7713e+4
00056     ),
00057     rho_(76.6099633, 0.257, 554.5, 0.2772),
00058     pv_(107.51, -8112.9, -12.77, 9.2919e-06, 2.0),
00059     hl_(554.5, 508307.794738233, 0.392, 0.0, 0.0, 0.0),
00060     cp_(1135.77394182096, 2.89818178257762, 0.0, 0.0, 0.0, 0.0),
00061     h_(-5255966.14542938, 1135.77394182096, 1.44909089128881, 0.0, 0.0, 0.0),
00062     cpg_(875.329227575808, 2849.22600922327, 1570.0, 2029.70636327142, 678.3),
00063     B_
00064     (
00065         0.00220496803188,
00066        -2.42184210783978,
00067        -401045.695318849,
00068        -2.85079259397061e+17,
00069        -3.57377145486767e+19
00070     ),
00071     mu_(-12.206, 1141.7, 0.15014, 0.0, 0.0),
00072     mug_(3.733e-07, 0.6177, 256.5, 0.0),
00073     K_(0.2298, -0.0003002, 0.0, 0.0, 0.0, 0.0),
00074     Kg_(1333.1, 0.9962, 12317000000.0, 0.0),
00075     sigma_(554.5, 0.064084, 1.2418, 0.0, 0.0, 0.0),
00076     D_(147.18, 20.1, 102.133, 28.0) // note: Same as nHeptane
00077 {}
00078 
00079 
00080 Foam::MB::MB
00081 (
00082     const liquid& l,
00083     const NSRDSfunc5& density,
00084     const NSRDSfunc1& vapourPressure,
00085     const NSRDSfunc6& heatOfVapourisation,
00086     const NSRDSfunc0& heatCapacity,
00087     const NSRDSfunc0& enthalpy,
00088     const NSRDSfunc7& idealGasHeatCapacity,
00089     const NSRDSfunc4& secondVirialCoeff,
00090     const NSRDSfunc1& dynamicViscosity,
00091     const NSRDSfunc2& vapourDynamicViscosity,
00092     const NSRDSfunc0& thermalConductivity,
00093     const NSRDSfunc2& vapourThermalConductivity,
00094     const NSRDSfunc6& surfaceTension,
00095     const APIdiffCoefFunc& vapourDiffussivity
00096 )
00097 :
00098     liquid(l),
00099     rho_(density),
00100     pv_(vapourPressure),
00101     hl_(heatOfVapourisation),
00102     cp_(heatCapacity),
00103     h_(enthalpy),
00104     cpg_(idealGasHeatCapacity),
00105     B_(secondVirialCoeff),
00106     mu_(dynamicViscosity),
00107     mug_(vapourDynamicViscosity),
00108     K_(thermalConductivity),
00109     Kg_(vapourThermalConductivity),
00110     sigma_(surfaceTension),
00111     D_(vapourDiffussivity)
00112 {}
00113 
00114 
00115 Foam::MB::MB(Istream& is)
00116 :
00117     liquid(is),
00118     rho_(is),
00119     pv_(is),
00120     hl_(is),
00121     cp_(is),
00122     h_(is),
00123     cpg_(is),
00124     B_(is),
00125     mu_(is),
00126     mug_(is),
00127     K_(is),
00128     Kg_(is),
00129     sigma_(is),
00130     D_(is)
00131 {}
00132 
00133 
00134 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd