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

Ar.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 "Ar.H"
00027 #include <OpenFOAM/addToRunTimeSelectionTable.H>
00028 
00029 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00030 
00031 namespace Foam
00032 {
00033     defineTypeNameAndDebug(Ar, 0);
00034     addToRunTimeSelectionTable(liquid, Ar,);
00035     addToRunTimeSelectionTable(liquid, Ar, Istream);
00036 }
00037 
00038 
00039 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00040 
00041 Foam::Ar::Ar()
00042 :
00043     liquid
00044     (
00045         39.948,
00046         150.86,
00047         4.8981e+6,
00048         0.07459,
00049         0.291,
00050         83.78,
00051         6.88e+4,
00052         87.28,
00053         0.0,
00054         0.0,
00055         1.4138e+4
00056     ),
00057     rho_(151.922244, 0.286, 150.86, 0.2984),
00058     pv_(39.233, -1051.7, -3.5895, 5.0444e-05, 2),
00059     hl_(150.86, 218509.061780314, 0.352, 0.0, 0.0, 0.0),
00060     cp_(4562.43116050866, -70.7770101131471, 0.367477721037349, 0.0, 0.0, 0.0),
00061     h_
00062     (
00063        -1460974.49982473,
00064         4562.43116050866,
00065        -35.3885050565735,
00066         0.122492573679116,
00067         0.0,
00068         0.0
00069     ),
00070     cpg_(520.326424351657, 0.0, 0.0, 0.0, 0.0, 0.0),
00071     B_
00072     (
00073         0.000952488234705117,
00074        -0.379993992189847,
00075        -2022.62941824372,
00076         4633523580654.85,
00077         -302893761890458.0
00078     ),
00079     mu_(-8.868, 204.3, -0.3831, -1.3e-22, 10.0),
00080     mug_(8.386e-07, 0.6175, 75.377, -432.5),
00081     K_(0.1819, -0.0003176, -4.11e-06, 0.0, 0.0, 0.0),
00082     Kg_(0.0001236, 0.8262, -132.8, 16000),
00083     sigma_(150.86, 0.03823, 1.2927, 0.0, 0.0, 0.0),
00084     D_(147.18, 20.1, 39.948, 28) // note: Same as nHeptane
00085 {}
00086 
00087 
00088 Foam::Ar::Ar
00089 (
00090     const liquid& l,
00091     const NSRDSfunc5& density,
00092     const NSRDSfunc1& vapourPressure,
00093     const NSRDSfunc6& heatOfVapourisation,
00094     const NSRDSfunc0& heatCapacity,
00095     const NSRDSfunc0& enthalpy,
00096     const NSRDSfunc0& idealGasHeatCapacity,
00097     const NSRDSfunc4& secondVirialCoeff,
00098     const NSRDSfunc1& dynamicViscosity,
00099     const NSRDSfunc2& vapourDynamicViscosity,
00100     const NSRDSfunc0& thermalConductivity,
00101     const NSRDSfunc2& vapourThermalConductivity,
00102     const NSRDSfunc6& surfaceTension,
00103     const APIdiffCoefFunc& vapourDiffussivity
00104 )
00105 :
00106     liquid(l),
00107     rho_(density),
00108     pv_(vapourPressure),
00109     hl_(heatOfVapourisation),
00110     cp_(heatCapacity),
00111     h_(enthalpy),
00112     cpg_(idealGasHeatCapacity),
00113     B_(secondVirialCoeff),
00114     mu_(dynamicViscosity),
00115     mug_(vapourDynamicViscosity),
00116     K_(thermalConductivity),
00117     Kg_(vapourThermalConductivity),
00118     sigma_(surfaceTension),
00119     D_(vapourDiffussivity)
00120 {}
00121 
00122 
00123 Foam::Ar::Ar(Istream& is)
00124 :
00125     liquid(is),
00126     rho_(is),
00127     pv_(is),
00128     hl_(is),
00129     cp_(is),
00130     h_(is),
00131     cpg_(is),
00132     B_(is),
00133     mu_(is),
00134     mug_(is),
00135     K_(is),
00136     Kg_(is),
00137     sigma_(is),
00138     D_(is)
00139 {}
00140 
00141 
00142 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines