heRhoThermo.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2011-2016 OpenFOAM Foundation
9 Copyright (C) 2015-2017 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27Class
28 Foam::heRhoThermo
29
30Description
31 Energy for a mixture based on density
32
33SourceFiles
34 heRhoThermo.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef heRhoThermo_H
39#define heRhoThermo_H
40
41#include "rhoThermo.H"
42#include "heThermo.H"
43
44// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46namespace Foam
47{
48
49/*---------------------------------------------------------------------------*\
50 Class heRhoThermo Declaration
51\*---------------------------------------------------------------------------*/
52
53template<class BasicPsiThermo, class MixtureType>
54class heRhoThermo
55:
56 public heThermo<BasicPsiThermo, MixtureType>
57{
58 // Private Member Functions
59
60 //- Calculate the thermo variables
61 void calculate
62 (
63 const volScalarField& p,
70 const bool doOldTimes
71 );
72
73 //- Construct as copy (not implemented)
75
76
77public:
78
79 //- Runtime type information
80 TypeName("heRhoThermo");
81
82
83 // Constructors
84
85 //- Construct from mesh and phase name
87 (
88 const fvMesh&,
89 const word& phaseName
90 );
91
92
93 //- Construct from mesh,dictionary,phase name with a single temperature
95 (
96 const fvMesh&,
97 const word& phaseName,
98 const word& dictName
99 );
100
101
102 //- Destructor
103 virtual ~heRhoThermo();
104
105
106 // Member functions
107
108 //- Update properties
109 virtual void correct();
110
111 //- Update properties from T
112 //virtual void correctT();
113};
114
115
116// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117
118} // End namespace Foam
119
120// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121
122#ifdef NoRepository
123 #include "heRhoThermo.C"
124#endif
125
126// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127
128#endif
129
130// ************************************************************************* //
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:91
Energy for a mixture based on density.
Definition: heRhoThermo.H:56
virtual ~heRhoThermo()
Destructor.
Definition: heRhoThermo.C:200
virtual void correct()
Update properties.
Definition: heRhoThermo.C:207
TypeName("heRhoThermo")
Runtime type information.
Enthalpy/Internal energy for a mixture.
Definition: heThermo.H:56
virtual volScalarField & he()
Enthalpy/Internal energy [J/kg].
Definition: heThermo.H:163
A class for handling words, derived from Foam::string.
Definition: word.H:68
volScalarField & p
const volScalarField & psi
const volScalarField & T
const volScalarField & mu
const word dictName("faMeshDefinition")
Namespace for OpenFOAM.
volScalarField & alpha
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73