OpenFOAM logo
Open Source CFD Toolkit

C14H30.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     C14H30
00027 
00028 Description
00029     nTetraDecane
00030 
00031 SourceFiles
00032     C14H30.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef C14H30_H
00037 #define C14H30_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 C14H30 Declaration
00058 \*---------------------------------------------------------------------------*/
00059 
00060 class C14H30
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("C14H30");
00085 
00086 
00087     // Constructors
00088 
00089         //- Construct null
00090         C14H30()
00091         :
00092             liquid(198.392, 692.40, 1.6212e+6, 0.8428, 0.237, 279.01, 1.8849e-1, 526.73, 0.0, 0.6617, 1.6173e+4),
00093             rho_(60.92023144, 0.2582, 692.4, 0.26628),
00094             pv_(249.21, -16915, -35.195, 0.028451, 1),
00095             hl_(692.40, 455764.345336506, 0.428, 0, 0, 0),
00096             cp_(2565.72845679261, -4.78114036856325, 0.0120362716238558, 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_(-2690601.01887934, 2565.72845679261, -2.39057018428162, 0.00401209054128527, 0, 0),
00101             cpg_(1134.11831122223, 3629.17859591113, -1440.3, 2275.29335860317, -682),
00102             B_(0.00247837614419936, -2.62692044034034, -1427174.48284205, -1.68288035807895e+19, 3.48854792531957e+21),
00103             mu_(-18.964, 2010.9, 1.0648, 0, 0),
00104             mug_(4.4565e-08, 0.8684, 228.16, -4347.2),
00105             K_(0.1957, -0.0001993, 0, 0, 0, 0),
00106             Kg_(-0.000628, 0.944, -5490, 0),
00107             sigma_(692.40, 0.056436, 1.3658, 0, 0, 0),
00108             D_(147.18, 20.1, 198.392, 28) // NN: Same as nHeptane
00109         {}
00110         C14H30
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         C14H30(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 C14H30& 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