1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2009-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
34 \*---------------------------------------------------------------------------*/
36 #ifndef hReactionThermo_H
37 #define hReactionThermo_H
39 #include "basicRhoThermo.H"
40 #include "basicMultiComponentMixture.H"
42 #include "runTimeSelectionTables.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 /*---------------------------------------------------------------------------*\
50 Class hReactionThermo Declaration
51 \*---------------------------------------------------------------------------*/
68 //- Runtime type information
69 TypeName("hReactionThermo");
72 //- Declare run-time constructor selection tables
73 declareRunTimeSelectionTable
85 //- Construct from dictionary and mesh
86 hReactionThermo(const fvMesh&);
91 //- Standard selection based on fvMesh
92 static autoPtr<hReactionThermo> New(const fvMesh&);
94 //- Select and check that package contains 'thermoType'
95 static autoPtr<hReactionThermo> NewType
98 const word& thermoType
103 virtual ~hReactionThermo();
108 //- Return the composition of the multi-component mixture
109 virtual basicMultiComponentMixture& composition() = 0;
111 //- Return the composition of the multi-component mixture
112 virtual const basicMultiComponentMixture& composition() const = 0;
115 // Access to thermodynamic state variables
118 // Non-const access allowed for transport equations
119 virtual volScalarField& h()
125 virtual const volScalarField& h() const
131 //- Chemical enthalpy [J/kg]
132 virtual tmp<volScalarField> hc() const = 0;
134 //- Update properties
135 virtual void correct() = 0;
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 } // End namespace Foam
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 // ************************************************************************* //