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

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-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::hCombustionThermo
00027 
00028 Description
00029     Foam::hCombustionThermo
00030 
00031 SourceFiles
00032     hCombustionThermo.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef hCombustionThermo_H
00037 #define hCombustionThermo_H
00038 
00039 #include "basicPsiThermo.H"
00040 #include "basicMultiComponentMixture.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 basicPsiThermo
00056 {
00057 
00058 protected:
00059 
00060     // Protected data
00061 
00062         //- Enthalpy field
00063         volScalarField h_;
00064 
00065 
00066 public:
00067 
00068     //- Runtime type information
00069     TypeName("hCombustionThermo");
00070 
00071 
00072     //- Declare run-time constructor selection tables
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         //- Standard selection based on fvMesh
00092         static autoPtr<hCombustionThermo> New(const fvMesh&);
00093 
00094         //- Select and check that package contains 'thermoType'
00095         static autoPtr<hCombustionThermo> NewType
00096         (
00097             const fvMesh&,
00098             const word& thermoType
00099         );
00100 
00101 
00102     //- Destructor
00103     virtual ~hCombustionThermo();
00104 
00105 
00106     // Member functions
00107 
00108         //- Return the composition of the multi-component mixture
00109         virtual basicMultiComponentMixture& composition() = 0;
00110 
00111         //- Return the composition of the multi-component mixture
00112         virtual const basicMultiComponentMixture& composition() const = 0;
00113 
00114 
00115         // Access to thermodynamic state variables
00116 
00117             //- Enthalpy [J/kg]
00118             //  Non-const access allowed for transport equations
00119             virtual volScalarField& h()
00120             {
00121                 return h_;
00122             }
00123 
00124             //- Enthalpy [J/kg]
00125             virtual const volScalarField& h() const
00126             {
00127                 return h_;
00128             }
00129 
00130 
00131         //- Sensible enthalpy [J/kg]
00132         virtual tmp<volScalarField> hs() const = 0;
00133 
00134         //- Chemical enthalpy [J/kg]
00135         virtual tmp<volScalarField> hc() const = 0;
00136 
00137         //- Update properties
00138         virtual void correct() = 0;
00139 };
00140 
00141 
00142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00143 
00144 } // End namespace Foam
00145 
00146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00147 
00148 #endif
00149 
00150 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd