1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
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
29 Enthalpy for a mixture based on density
34 \*---------------------------------------------------------------------------*/
39 #include "basicRhoThermo.H"
40 #include "basicMixture.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class hRhoThermo Declaration
49 \*---------------------------------------------------------------------------*/
51 template<class MixtureType>
54 public basicRhoThermo,
63 // Private member functions
65 //- Calculate the thermo variables
68 //- Construct as copy (not implemented)
69 hRhoThermo(const hRhoThermo<MixtureType>&);
74 //- Runtime type information
75 TypeName("hRhoThermo");
80 //- Construct from mesh
81 hRhoThermo(const fvMesh&);
85 virtual ~hRhoThermo();
90 //- Return the compostion of the combustion mixture
91 virtual basicMixture& composition()
96 //- Return the compostion of the combustion mixture
97 virtual const basicMixture& composition() const
102 //- Update properties
103 virtual void correct();
106 // Access to thermodynamic state variables
109 // Non-const access allowed for transport equations
110 virtual volScalarField& h()
116 virtual const volScalarField& h() const
122 // Fields derived from thermodynamic state variables
124 //- Enthalpy for cell-set [J/kg]
125 virtual tmp<scalarField> h
127 const scalarField& T,
128 const labelList& cells
131 //- Enthalpy for patch [J/kg]
132 virtual tmp<scalarField> h
134 const scalarField& T,
138 //- Heat capacity at constant pressure for patch [J/kg/K]
139 virtual tmp<scalarField> Cp
141 const scalarField& T,
145 //- Heat capacity at constant pressure [J/kg/K]
146 virtual tmp<volScalarField> Cp() const;
148 //- Heat capacity at constant volume for patch [J/kg/K]
149 virtual tmp<scalarField> Cv
151 const scalarField& T,
155 //- Heat capacity at constant volume [J/kg/K]
156 virtual tmp<volScalarField> Cv() const;
159 //- Read thermophysicalProperties dictionary
164 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
166 } // End namespace Foam
168 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
171 # include "hRhoThermo.C"
174 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
178 // ************************************************************************* //