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

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