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

hhuMixtureThermo.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-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 Class
00026     Foam::hhuMixtureThermo
00027 
00028 Description
00029     Foam::hhuMixtureThermo
00030 
00031 SourceFiles
00032     hhuMixtureThermo.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef hhuMixtureThermo_H
00037 #define hhuMixtureThermo_H
00038 
00039 //#include "hPsiMixtureThermo.H"
00040 
00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00042 
00043 namespace Foam
00044 {
00045 
00046 /*---------------------------------------------------------------------------*\
00047                       Class hhuMixtureThermo Declaration
00048 \*---------------------------------------------------------------------------*/
00049 
00050 template<class MixtureType>
00051 class hhuMixtureThermo
00052 :
00053     public hhuCombustionThermo,
00054     public MixtureType
00055 {
00056     // Private member functions
00057 
00058         void calculate();
00059 
00060         //- Construct as copy (not implemented)
00061         hhuMixtureThermo(const hhuMixtureThermo<MixtureType>&);
00062 
00063 
00064 public:
00065 
00066     //- Runtime type information
00067     TypeName("hhuMixtureThermo");
00068 
00069 
00070     // Constructors
00071 
00072         //- Construct from mesh
00073         hhuMixtureThermo(const fvMesh&);
00074 
00075 
00076     //- Destructor
00077     virtual ~hhuMixtureThermo();
00078 
00079 
00080     // Member functions
00081 
00082         //- Return the compostion of the multi-component mixture
00083         virtual basicMultiComponentMixture& composition()
00084         {
00085             return *this;
00086         }
00087 
00088         //- Return the compostion of the multi-component mixture
00089         virtual const basicMultiComponentMixture& composition() const
00090         {
00091             return *this;
00092         }
00093 
00094         //- Update properties
00095         virtual void correct();
00096 
00097         //- Sensible enthalpy [J/kg]
00098         virtual tmp<volScalarField> hs() const;
00099 
00100         //- Chemical enthalpy [J/kg]
00101         virtual tmp<volScalarField> hc() const;
00102 
00103 
00104         // Fields derived from thermodynamic state variables
00105 
00106             //- Enthalpy for cell-set [J/kg]
00107             virtual tmp<scalarField> h
00108             (
00109                 const scalarField& T,
00110                 const labelList& cells
00111             ) const;
00112 
00113             //- Enthalpy for patch [J/kg]
00114             virtual tmp<scalarField> h
00115             (
00116                 const scalarField& T,
00117                 const label patchi
00118             ) const;
00119 
00120             //- Heat capacity at constant pressure for patch [J/kg/K]
00121             virtual tmp<scalarField> Cp
00122             (
00123                 const scalarField& T,
00124                 const label patchi
00125             ) const;
00126 
00127             //- Heat capacity at constant pressure [J/kg/K]
00128             virtual tmp<volScalarField> Cp() const;
00129 
00130             //- Unburnt gas enthalpy for cell-set [J/kg]
00131             virtual tmp<scalarField> hu
00132             (
00133                 const scalarField& T,
00134                 const labelList& cells
00135             ) const;
00136 
00137             //- Unburnt gas enthalpy for patch [J/kg]
00138             virtual tmp<scalarField> hu
00139             (
00140                 const scalarField& T,
00141                 const label patchi
00142             ) const;
00143 
00144 
00145             //- Burnt gas temperature [K]
00146             virtual tmp<volScalarField> Tb() const;
00147 
00148             //- Unburnt gas compressibility [s^2/m^2]
00149             virtual tmp<volScalarField> psiu() const;
00150 
00151             //- Burnt gas compressibility [s^2/m^2]
00152             virtual tmp<volScalarField> psib() const;
00153 
00154 
00155         // Access to transport variables
00156 
00157             //- Dynamic viscosity of unburnt gas [kg/ms]
00158             virtual tmp<volScalarField> muu() const;
00159 
00160             //- Dynamic viscosity of burnt gas [kg/ms]
00161             virtual tmp<volScalarField> mub() const;
00162 
00163 
00164         //- Read thermophysicalProperties dictionary
00165         virtual bool read();
00166 };
00167 
00168 
00169 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00170 
00171 } // End namespace Foam
00172 
00173 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
00174 
00175 #ifdef NoRepository
00176 #   include "hhuMixtureThermo.C"
00177 #endif
00178 
00179 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00180 
00181 #endif
00182 
00183 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd