1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2010 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
13 the Free Software Foundation, either version 3 of the License, or
14 (at your 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, see <http://www.gnu.org/licenses/>.
25 Foam::hhuMixtureThermo
28 Foam::hhuMixtureThermo
33 \*---------------------------------------------------------------------------*/
35 #ifndef hhuMixtureThermo_H
36 #define hhuMixtureThermo_H
38 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 /*---------------------------------------------------------------------------*\
44 Class hhuMixtureThermo Declaration
45 \*---------------------------------------------------------------------------*/
47 template<class MixtureType>
48 class hhuMixtureThermo
50 public hhuCombustionThermo,
53 // Private member functions
57 //- Construct as copy (not implemented)
58 hhuMixtureThermo(const hhuMixtureThermo<MixtureType>&);
63 //- Runtime type information
64 TypeName("hhuMixtureThermo");
69 //- Construct from mesh
70 hhuMixtureThermo(const fvMesh&);
74 virtual ~hhuMixtureThermo();
79 //- Return the compostion of the multi-component mixture
80 virtual basicMultiComponentMixture& composition()
85 //- Return the compostion of the multi-component mixture
86 virtual const basicMultiComponentMixture& composition() const
92 virtual void correct();
94 //- Chemical enthalpy [J/kg]
95 virtual tmp<volScalarField> hc() const;
98 // Fields derived from thermodynamic state variables
100 //- Enthalpy for cell-set [J/kg]
101 virtual tmp<scalarField> h
103 const scalarField& T,
104 const labelList& cells
107 //- Enthalpy for patch [J/kg]
108 virtual tmp<scalarField> h
110 const scalarField& T,
114 //- Heat capacity at constant pressure for patch [J/kg/K]
115 virtual tmp<scalarField> Cp
117 const scalarField& T,
121 //- Heat capacity at constant pressure [J/kg/K]
122 virtual tmp<volScalarField> Cp() const;
124 //- Unburnt gas enthalpy for cell-set [J/kg]
125 virtual tmp<scalarField> hu
127 const scalarField& T,
128 const labelList& cells
131 //- Unburnt gas enthalpy for patch [J/kg]
132 virtual tmp<scalarField> hu
134 const scalarField& T,
139 //- Burnt gas temperature [K]
140 virtual tmp<volScalarField> Tb() const;
142 //- Unburnt gas compressibility [s^2/m^2]
143 virtual tmp<volScalarField> psiu() const;
145 //- Burnt gas compressibility [s^2/m^2]
146 virtual tmp<volScalarField> psib() const;
149 // Access to transport variables
151 //- Dynamic viscosity of unburnt gas [kg/ms]
152 virtual tmp<volScalarField> muu() const;
154 //- Dynamic viscosity of burnt gas [kg/ms]
155 virtual tmp<volScalarField> mub() const;
158 //- Read thermophysicalProperties dictionary
163 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
165 } // End namespace Foam
167 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
170 # include "hhuMixtureThermo.C"
173 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
177 // ************************************************************************* //