1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
25 Foam::hsPsiMixtureThermo
28 Foam::hsPsiMixtureThermo
33 \*---------------------------------------------------------------------------*/
35 #ifndef hsPsiMixtureThermo_H
36 #define hsPsiMixtureThermo_H
38 #include "hsCombustionThermo.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 /*---------------------------------------------------------------------------*\
46 Class hsPsiMixtureThermo Declaration
47 \*---------------------------------------------------------------------------*/
49 template<class MixtureType>
50 class hsPsiMixtureThermo
52 public hsCombustionThermo,
55 // Private member functions
59 //- Construct as copy (not implemented)
60 hsPsiMixtureThermo(const hsPsiMixtureThermo<MixtureType>&);
65 //- Runtime type information
66 TypeName("hsPsiMixtureThermo");
71 //- Construct from mesh and object registry
72 hsPsiMixtureThermo(const fvMesh&, const objectRegistry&);
76 virtual ~hsPsiMixtureThermo();
81 //- Return the compostion of the multi-component mixture
82 virtual basicMultiComponentMixture& composition()
87 //- Return the compostion of the multi-component mixture
88 virtual const basicMultiComponentMixture& composition() const
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
105 const scalarField& T,
106 const labelList& cells
109 //- Sensible enthalpy for patch [J/kg]
110 virtual tmp<scalarField> hs
112 const scalarField& T,
116 //- Heat capacity at constant pressure for patch [J/kg/K]
117 virtual tmp<scalarField> Cp
119 const scalarField& T,
123 //- Heat capacity at constant pressure for cell-set [J/kg/K]
124 virtual tmp<scalarField> Cp
126 const scalarField& T,
127 const labelList& cells
130 //- Heat capacity at constant pressure [J/kg/K]
131 virtual tmp<volScalarField> Cp() const;
134 //- Read thermophysicalProperties dictionary
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 } // End namespace Foam
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
146 # include "hsPsiMixtureThermo.C"
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
153 // ************************************************************************* //