1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2010 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
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
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/>.
28 Enthalpy for a mixture based on compressibility
33 \*---------------------------------------------------------------------------*/
38 #include "basicPsiThermo.H"
39 #include "basicMixture.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class hPsiThermo Declaration
48 \*---------------------------------------------------------------------------*/
50 template<class MixtureType>
53 public basicPsiThermo,
62 // Private Member Functions
64 //- Calculate the thermo variables
67 //- Construct as copy (not implemented)
68 hPsiThermo(const hPsiThermo<MixtureType>&);
73 //- Runtime type information
74 TypeName("hPsiThermo");
79 //- Construct from mesh
80 hPsiThermo(const fvMesh&);
84 virtual ~hPsiThermo();
89 //- Return the compostion of the mixture
90 virtual basicMixture& composition()
95 //- Return the compostion of the mixture
96 virtual const basicMixture& composition() const
101 //- Update properties
102 virtual void correct();
105 // Access to thermodynamic state variables
108 // Non-const access allowed for transport equations
109 virtual volScalarField& h()
115 virtual const volScalarField& h() const
121 // Fields derived from thermodynamic state variables
123 //- Enthalpy for cell-set [J/kg]
124 virtual tmp<scalarField> h
126 const scalarField& T,
127 const labelList& cells
130 //- Enthalpy for patch [J/kg]
131 virtual tmp<scalarField> h
133 const scalarField& T,
137 //- Heat capacity at constant pressure for patch [J/kg/K]
138 virtual tmp<scalarField> Cp
140 const scalarField& T,
144 //- Heat capacity at constant pressure [J/kg/K]
145 virtual tmp<volScalarField> Cp() const;
147 //- Heat capacity at constant volume for patch [J/kg/K]
148 virtual tmp<scalarField> Cv
150 const scalarField& T,
154 //- Heat capacity at constant volume [J/kg/K]
155 virtual tmp<volScalarField> Cv() const;
158 //- Read thermophysicalProperties dictionary
163 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
165 } // End namespace Foam
167 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
170 # include "hPsiThermo.C"
173 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
177 // ************************************************************************* //