OpenFOAM logo
Open Source CFD Toolkit

C16H34.H

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-2005 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 Class
00026     C16H34
00027 
00028 Description
00029     nHexaDecane
00030 
00031 SourceFiles
00032     C16H34.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef C16H34_H
00037 #define C16H34_H
00038 
00039 #include "liquid.H"
00040 #include "NSRDSfunc0.H"
00041 #include "NSRDSfunc1.H"
00042 #include "NSRDSfunc2.H"
00043 #include "NSRDSfunc3.H"
00044 #include "NSRDSfunc4.H"
00045 #include "NSRDSfunc5.H"
00046 #include "NSRDSfunc6.H"
00047 #include "NSRDSfunc7.H"
00048 #include "NSRDSfunc14.H"
00049 #include "APIdiffCoefFunc.H"
00050 
00051 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00052 
00053 namespace Foam
00054 {
00055 
00056 /*---------------------------------------------------------------------------*\
00057                            Class C16H34 Declaration
00058 \*---------------------------------------------------------------------------*/
00059 
00060 class C16H34
00061 :
00062     public liquid
00063 {
00064     // Private data
00065 
00066         NSRDSfunc5 rho_;
00067         NSRDSfunc1 pv_;
00068         NSRDSfunc6 hl_;
00069         NSRDSfunc0 cp_;
00070         NSRDSfunc0 h_;
00071         NSRDSfunc7 cpg_;
00072         NSRDSfunc4 B_;
00073         NSRDSfunc1 mu_;
00074         NSRDSfunc2 mug_;
00075         NSRDSfunc0 K_;
00076         NSRDSfunc2 Kg_;
00077         NSRDSfunc6 sigma_;
00078         APIdiffCoefFunc D_;
00079 
00080 
00081 public:
00082 
00083     //- Runtime type information
00084     TypeName("C16H34");
00085 
00086 
00087     // Constructors
00088 
00089         //- Construct null
00090         C16H34()
00091         :
00092             liquid(226.446, 720.60, 1.4186e+6, 0.93, 0.22, 291.32, 8.7467e-2, 560.01, 0, 0.7471, 1.6052e+4),
00093             rho_(61.94656776, 0.25442, 720.6, 0.3238),
00094             pv_(233.1, -17346, -32.251, 0.02407, 1),
00095             hl_(720.60, 430654.548987397, 0.4122, 0, 0, 0),
00096             cp_(3769.90540791182, -12.5871068599136, 0.0247211255663602, 0, 0, 0),
00097             // NN: enthalpy, h_, is not used in the sprayModel.
00098             // For consistency, the enthalpy is derived from hlat and hl.
00099             // It is, however, convenient to have it available.
00100             h_(-2777201.30410301, 3769.90540791182, -6.29355342995681, 0.00824037518878673, 0, 0),
00101             cpg_(1128.74592618108, 3600.8584828171, -1429.7, 2259.69988429913, 679),
00102             B_(0.0025091191718997, -2.46668079807106, -1704070.72767901, -3.00623548219001e+19, 7.07320950690231e+21),
00103             mu_(-18.388, 2056.8, 0.98681, 0, 0),
00104             mug_(1.2463e-07, 0.7322, 395, 6000),
00105             K_(0.1963, -0.00019, 0, 0, 0, 0),
00106             Kg_(3.075e-06, 1.552, 678, 0),
00107             sigma_(720.60, 0.05699, 1.3929, 0, 0, 0),
00108             D_(147.18, 20.1, 226.446, 28) // NN: Same as nHeptane
00109         {}
00110         C16H34
00111         (
00112             const liquid& l,
00113             const NSRDSfunc5& density,
00114             const NSRDSfunc1& vapourPressure,
00115             const NSRDSfunc6& heatOfVapourisation,
00116             const NSRDSfunc0& heatCapacity,
00117             const NSRDSfunc0& enthalpy,
00118             const NSRDSfunc7& idealGasHeatCapacity,
00119             const NSRDSfunc4& secondVirialCoeff,
00120             const NSRDSfunc1& dynamicViscosity,
00121             const NSRDSfunc2& vapourDynamicViscosity,
00122             const NSRDSfunc0& thermalConductivity,
00123             const NSRDSfunc2& vapourThermalConductivity,
00124             const NSRDSfunc6& surfaceTension,
00125             const APIdiffCoefFunc& vapourDiffussivity
00126         )
00127         :
00128             liquid(l),
00129             rho_(density),
00130             pv_(vapourPressure),
00131             hl_(heatOfVapourisation),
00132             cp_(heatCapacity),
00133             h_(enthalpy),
00134             cpg_(idealGasHeatCapacity),
00135             B_(secondVirialCoeff),
00136             mu_(dynamicViscosity),
00137             mug_(vapourDynamicViscosity),
00138             K_(thermalConductivity),
00139             Kg_(vapourThermalConductivity),
00140             sigma_(surfaceTension),
00141             D_(vapourDiffussivity)
00142         {}
00143 
00144         //- Construct from Istream
00145         C16H34(Istream& is)
00146         :
00147             liquid(is),
00148             rho_(is),
00149             pv_(is),
00150             hl_(is),
00151             cp_(is),
00152             h_(is),
00153             cpg_(is),
00154             B_(is),
00155             mu_(is),
00156             mug_(is),
00157             K_(is),
00158             Kg_(is),
00159             sigma_(is),
00160             D_(is)
00161         {}
00162 
00163 
00164     // Member Functions
00165 
00166         //- Liquid density [kg/m^3]
00167         scalar rho(scalar p, scalar T) const
00168         {
00169             return rho_.f(p, T);
00170         }
00171 
00172         //- Vapour pressure [Pa]
00173         scalar pv(scalar p, scalar T) const
00174         {
00175             return pv_.f(p, T);
00176         }
00177 
00178         //- Heat of vapourisation [J/kg]
00179         scalar hl(scalar p, scalar T) const
00180         {
00181             return hl_.f(p, T);
00182         }
00183 
00184         //- Liquid heat capacity [J/(kg K)]
00185         scalar cp(scalar p, scalar T) const
00186         {
00187             return cp_.f(p, T);
00188         }
00189 
00190         //- Liquid Enthalpy [J/(kg)]
00191         scalar h(scalar p, scalar T) const
00192         {
00193             return h_.f(p, T);
00194         }
00195 
00196         //- Ideal gas heat capacity [J/(kg K)]
00197         scalar cpg(scalar p, scalar T) const
00198         {
00199             return cpg_.f(p, T);
00200         }
00201 
00202         //- Second Virial Coefficient [m^3/kg]
00203         scalar B(scalar p, scalar T) const
00204         {
00205             return B_.f(p, T);
00206         }
00207 
00208         //- Liquid viscosity [Pa s]
00209         scalar mu(scalar p, scalar T) const
00210         {
00211             return mu_.f(p, T);
00212         }
00213 
00214         //- Vapour viscosity [Pa s]
00215         scalar mug(scalar p, scalar T) const
00216         {
00217             return mug_.f(p, T);
00218         }
00219 
00220         //- Liquid thermal conductivity  [W/(m K)]
00221         scalar K(scalar p, scalar T) const
00222         {
00223             return K_.f(p, T);
00224         }
00225 
00226         //- Vapour thermal conductivity  [W/(m K)]
00227         scalar Kg(scalar p, scalar T) const
00228         {
00229             return Kg_.f(p, T);
00230         }
00231 
00232         //- Surface tension [N/m]
00233         scalar sigma(scalar p, scalar T) const
00234         {
00235             return sigma_.f(p, T);
00236         }
00237 
00238         //- Vapour diffussivity [m2/s]
00239         scalar D(scalar p, scalar T) const
00240         {
00241             return D_.f(p, T);
00242         }
00243 
00244 
00245         //- Write the function coefficients
00246         void writeData(Ostream& os) const
00247         {
00248             liquid::writeData(os); os << nl;
00249             rho_.writeData(os); os << nl;
00250             pv_.writeData(os); os << nl;
00251             hl_.writeData(os); os << nl;
00252             cp_.writeData(os); os << nl;
00253             cpg_.writeData(os); os << nl;
00254             B_.writeData(os); os << nl;
00255             mu_.writeData(os); os << nl;
00256             mug_.writeData(os); os << nl;
00257             K_.writeData(os); os << nl;
00258             Kg_.writeData(os); os << nl;
00259             sigma_.writeData(os); os << nl;
00260             D_.writeData(os); os << endl;
00261         }
00262 
00263 
00264     // Ostream Operator
00265 
00266         friend Ostream& operator<<(Ostream& os, const C16H34& l)
00267         {
00268             l.writeData(os);
00269             return os;
00270         }
00271 };
00272 
00273 
00274 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00275 
00276 } // End namespace Foam
00277 
00278 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00279 
00280 #endif
00281 
00282 // ************************************************************************* //
For further information go to www.openfoam.org