BUG: pointHitSort: define operator<
[OpenFOAM-1.7.x.git] / src / thermophysicalModels / reactionThermo / combustionThermo / mixtureThermos / hhuMixtureThermo / hhuMixtureThermo.H
blob224e41eae09e030e320ef17efe33ec1890982395
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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/>.
24 Class
25     Foam::hhuMixtureThermo
27 Description
28     Foam::hhuMixtureThermo
30 SourceFiles
31     hhuMixtureThermo.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef hhuMixtureThermo_H
36 #define hhuMixtureThermo_H
38 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
40 namespace Foam
43 /*---------------------------------------------------------------------------*\
44                       Class hhuMixtureThermo Declaration
45 \*---------------------------------------------------------------------------*/
47 template<class MixtureType>
48 class hhuMixtureThermo
50     public hhuCombustionThermo,
51     public MixtureType
53     // Private member functions
55         void calculate();
57         //- Construct as copy (not implemented)
58         hhuMixtureThermo(const hhuMixtureThermo<MixtureType>&);
61 public:
63     //- Runtime type information
64     TypeName("hhuMixtureThermo");
67     // Constructors
69         //- Construct from mesh
70         hhuMixtureThermo(const fvMesh&);
73     //- Destructor
74     virtual ~hhuMixtureThermo();
77     // Member functions
79         //- Return the compostion of the multi-component mixture
80         virtual basicMultiComponentMixture& composition()
81         {
82             return *this;
83         }
85         //- Return the compostion of the multi-component mixture
86         virtual const basicMultiComponentMixture& composition() const
87         {
88             return *this;
89         }
91         //- Update properties
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
102             (
103                 const scalarField& T,
104                 const labelList& cells
105             ) const;
107             //- Enthalpy for patch [J/kg]
108             virtual tmp<scalarField> h
109             (
110                 const scalarField& T,
111                 const label patchi
112             ) const;
114             //- Heat capacity at constant pressure for patch [J/kg/K]
115             virtual tmp<scalarField> Cp
116             (
117                 const scalarField& T,
118                 const label patchi
119             ) const;
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
126             (
127                 const scalarField& T,
128                 const labelList& cells
129             ) const;
131             //- Unburnt gas enthalpy for patch [J/kg]
132             virtual tmp<scalarField> hu
133             (
134                 const scalarField& T,
135                 const label patchi
136             ) const;
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
159         virtual bool read();
163 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
165 } // End namespace Foam
167 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
169 #ifdef NoRepository
170 #   include "hhuMixtureThermo.C"
171 #endif
173 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
175 #endif
177 // ************************************************************************* //