OpenFOAM logo
Open Source CFD Toolkit

aC10H7CH3.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     aC10H7CH3
00027 
00028 Description
00029     alphaMethylNaphthalene
00030 
00031 SourceFiles
00032     aC10H7CH3.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef aC10H7CH3_H
00037 #define aC10H7CH3_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 aC10H7CH3 Declaration
00058 \*---------------------------------------------------------------------------*/
00059 
00060 class aC10H7CH3
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("aC11H10");
00085 
00086 
00087     // Constructors
00088 
00089         //- Construct null
00090         aC10H7CH3()
00091         :
00092             liquid(142.2, 772.04, 3.66e+6, 0.523, 0.298, 242.67, 3.4929e-2, 517.83, 1.7012e-30, 0.3478, 2.0176e+4),
00093             rho_(60.92559, 0.22408, 772.04, 0.25709),
00094             pv_(73.716, -9103.2, -7.2253, 2.062e-06, 2),
00095             hl_(772.04, 511744.022503516, 0.4164, 0, 0, 0),
00096             cp_(965.893108298172, 1.16216596343179, 0.00298523206751055, 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_(38161.6838138517, 965.893108298172, 0.581082981715893, 0.00099507735583685, 0, 0),
00101             cpg_(743.389592123769, 2703.5864978903, 1548.5, 2031.64556962025, 722.06),
00102             B_(0.00205555555555556, -3.34423347398031, -931153.305203938, 1.87601969057665e+18, -2.06448663853727e+21),
00103             mu_(-93.6, 5784, 12, 0, 0),
00104             mug_(2.5672e-06, 0.3566, 825.54, 0),
00105             K_(0.19758, -0.0001796, 0, 0, 0, 0),
00106             Kg_(0.3911, -0.1051, -213.52, 2318300),
00107             sigma_(772.04, 0.076, 1.33, 0, 0, 0),
00108             D_(147.18, 20.1, 142.2, 28) // NN: Same as nHeptane
00109         {}
00110         aC10H7CH3
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         aC10H7CH3(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 aC10H7CH3& 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