BUG: pointHitSort: define operator<
[OpenFOAM-1.7.x.git] / src / thermophysicalModels / reactionThermo / combustionThermo / mixtureThermos / hsPsiMixtureThermo / hsPsiMixtureThermo.H
blob17a1a46967d233aaf2a5c207c9df293ff5020a71
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::hsPsiMixtureThermo
27 Description
28     Foam::hsPsiMixtureThermo
30 SourceFiles
31     hsPsiMixtureThermo.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef hsPsiMixtureThermo_H
36 #define hsPsiMixtureThermo_H
38 #include "hsCombustionThermo.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 namespace Foam
45 /*---------------------------------------------------------------------------*\
46                    Class hsPsiMixtureThermo Declaration
47 \*---------------------------------------------------------------------------*/
49 template<class MixtureType>
50 class hsPsiMixtureThermo
52     public hsCombustionThermo,
53     public MixtureType
55     // Private member functions
57         void calculate();
59         //- Construct as copy (not implemented)
60         hsPsiMixtureThermo(const hsPsiMixtureThermo<MixtureType>&);
63 public:
65     //- Runtime type information
66     TypeName("hsPsiMixtureThermo");
69     // Constructors
71         //- Construct from mesh
72         hsPsiMixtureThermo(const fvMesh&);
75     //- Destructor
76     virtual ~hsPsiMixtureThermo();
79     // Member functions
81         //- Return the compostion of the multi-component mixture
82         virtual basicMultiComponentMixture& composition()
83         {
84             return *this;
85         }
87         //- Return the compostion of the multi-component mixture
88         virtual const basicMultiComponentMixture& composition() const
89         {
90             return *this;
91         }
93         //- Update properties
94         virtual void correct();
97         // Fields derived from thermodynamic state variables
99             //- Chemical enthalpy [J/kg]
100             virtual tmp<volScalarField> hc() const;
102             //- Sensible enthalpy for cell-set [J/kg]
103             virtual tmp<scalarField> hs
104             (
105                 const scalarField& T,
106                 const labelList& cells
107             ) const;
109             //- Sensible enthalpy for patch [J/kg]
110             virtual tmp<scalarField> hs
111             (
112                 const scalarField& T,
113                 const label patchi
114             ) const;
116             //- Heat capacity at constant pressure for patch [J/kg/K]
117             virtual tmp<scalarField> Cp
118             (
119                 const scalarField& T,
120                 const label patchi
121             ) const;
123             //- Heat capacity at constant pressure [J/kg/K]
124             virtual tmp<volScalarField> Cp() const;
127         //- Read thermophysicalProperties dictionary
128         virtual bool read();
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 } // End namespace Foam
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 #ifdef NoRepository
139 #   include "hsPsiMixtureThermo.C"
140 #endif
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 #endif
146 // ************************************************************************* //