1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-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
26 Foam::hhuMixtureThermo
29 Foam::hhuMixtureThermo
34 \*---------------------------------------------------------------------------*/
36 #ifndef hhuMixtureThermo_H
37 #define hhuMixtureThermo_H
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 /*---------------------------------------------------------------------------*\
45 Class hhuMixtureThermo Declaration
46 \*---------------------------------------------------------------------------*/
48 template<class MixtureType>
49 class hhuMixtureThermo
51 public hhuCombustionThermo,
54 // Private member functions
58 //- Construct as copy (not implemented)
59 hhuMixtureThermo(const hhuMixtureThermo<MixtureType>&);
64 //- Runtime type information
65 TypeName("hhuMixtureThermo");
70 //- Construct from mesh
71 hhuMixtureThermo(const fvMesh&);
75 virtual ~hhuMixtureThermo();
80 //- Return the compostion of the multi-component mixture
81 virtual basicMultiComponentMixture& composition()
86 //- Return the compostion of the multi-component mixture
87 virtual const basicMultiComponentMixture& composition() const
93 virtual void correct();
95 //- Chemical enthalpy [J/kg]
96 virtual tmp<volScalarField> hc() const;
99 // Fields derived from thermodynamic state variables
101 //- Enthalpy for cell-set [J/kg]
102 virtual tmp<scalarField> h
104 const scalarField& T,
105 const labelList& cells
108 //- Enthalpy for patch [J/kg]
109 virtual tmp<scalarField> h
111 const scalarField& T,
115 //- Heat capacity at constant pressure for patch [J/kg/K]
116 virtual tmp<scalarField> Cp
118 const scalarField& T,
122 //- Heat capacity at constant pressure [J/kg/K]
123 virtual tmp<volScalarField> Cp() const;
125 //- Unburnt gas enthalpy for cell-set [J/kg]
126 virtual tmp<scalarField> hu
128 const scalarField& T,
129 const labelList& cells
132 //- Unburnt gas enthalpy for patch [J/kg]
133 virtual tmp<scalarField> hu
135 const scalarField& T,
140 //- Burnt gas temperature [K]
141 virtual tmp<volScalarField> Tb() const;
143 //- Unburnt gas compressibility [s^2/m^2]
144 virtual tmp<volScalarField> psiu() const;
146 //- Burnt gas compressibility [s^2/m^2]
147 virtual tmp<volScalarField> psib() const;
150 // Access to transport variables
152 //- Dynamic viscosity of unburnt gas [kg/ms]
153 virtual tmp<volScalarField> muu() const;
155 //- Dynamic viscosity of burnt gas [kg/ms]
156 virtual tmp<volScalarField> mub() const;
159 //- Read thermophysicalProperties dictionary
164 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
166 } // End namespace Foam
168 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
171 # include "hhuMixtureThermo.C"
174 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
178 // ************************************************************************* //