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

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