OpenFOAM logo
Open Source CFD Toolkit

hCombustionThermo.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     hCombustionThermo
00027 
00028 Description
00029 
00030 SourceFiles
00031     hCombustionThermo.C
00032     newhCombustionThermo.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef hCombustionThermo_H
00037 #define hCombustionThermo_H
00038 
00039 #include "basicThermo.H"
00040 #include "combustionMixture.H"
00041 #include "autoPtr.H"
00042 #include "runTimeSelectionTables.H"
00043 
00044 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00045 
00046 namespace Foam
00047 {
00048 
00049 /*---------------------------------------------------------------------------*\
00050                            Class hCombustionThermo Declaration
00051 \*---------------------------------------------------------------------------*/
00052 
00053 class hCombustionThermo
00054 :
00055     public basicThermo
00056 {
00057 
00058 protected:
00059 
00060     // Protected data
00061 
00062         volScalarField h_;
00063 
00064 
00065 public:
00066 
00067     //- Runtime type information
00068     TypeName("hCombustionThermo");
00069 
00070 
00071     // Declare run-time constructor selection tables
00072 
00073         declareRunTimeSelectionTable
00074         (
00075             autoPtr,
00076             hCombustionThermo,
00077             fvMesh,
00078             (const fvMesh& mesh),
00079             (mesh)
00080         );
00081 
00082 
00083     // Constructors
00084 
00085         //- Construct from dictionary and mesh
00086         hCombustionThermo(const fvMesh&);
00087 
00088 
00089     // Selectors
00090 
00091         static autoPtr<hCombustionThermo> New(const fvMesh&);
00092 
00093 
00094     // Destructor
00095 
00096         virtual ~hCombustionThermo();
00097 
00098 
00099     // Member functions
00100 
00101         //- Return the composition of the combustion mixture
00102         virtual combustionMixture& composition() = 0;
00103 
00104         //- Return the composition of the combustion mixture
00105         virtual const combustionMixture& composition() const = 0;
00106 
00107 
00108         // Access to thermodynamic state variables
00109 
00110             //- Enthalpy [J/kg]
00111             //  Non-const access allowed for transport equations
00112             volScalarField& h()
00113             {
00114                 return h_;
00115             }
00116 
00117             //- Enthalpy [J/kg]
00118             const volScalarField& h() const
00119             {
00120                 return h_;
00121             }
00122 
00123 
00124         //- Update properties
00125         virtual void correct() = 0;
00126 };
00127 
00128 
00129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00130 
00131 } // End namespace Foam
00132 
00133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00134 
00135 #endif
00136 
00137 // ************************************************************************* //
For further information go to www.openfoam.org