hePsiThermo.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::hePsiThermo
29
30Description
31 Energy for a mixture based on compressibility
32
33SourceFiles
34 hePsiThermo.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef hePsiThermo_H
39#define hePsiThermo_H
40
41#include "psiThermo.H"
42#include "heThermo.H"
43
44// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46namespace Foam
47{
48
49/*---------------------------------------------------------------------------*\
50 Class hePsiThermo Declaration
51\*---------------------------------------------------------------------------*/
52
53template<class BasicPsiThermo, class MixtureType>
54class hePsiThermo
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,
69 const bool doOldTimes
70 );
71
72 //- Construct as copy (not implemented)
74
75
76public:
77
78 //- Runtime type information
79 TypeName("hePsiThermo");
80
81
82 // Constructors
83
84 //- Construct from mesh and phase name
86 (
87 const fvMesh&,
88 const word& phaseName
89 );
90
91 //- Construct from mesh and phase name and dict name
93 (
94 const fvMesh&,
95 const word& phaseName,
96 const word& dictionaryName
97 );
98
99
100 //- Destructor
101 virtual ~hePsiThermo();
102
103
104 // Member functions
105
106 //- Update properties
107 virtual void correct();
108
109};
110
111
112// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113
114} // End namespace Foam
115
116// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117
118#ifdef NoRepository
119 #include "hePsiThermo.C"
120#endif
121
122// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123
124#endif
125
126// ************************************************************************* //
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:91
Energy for a mixture based on compressibility.
Definition: hePsiThermo.H:56
virtual void correct()
Update properties.
Definition: hePsiThermo.C:198
virtual ~hePsiThermo()
Destructor.
Definition: hePsiThermo.C:191
TypeName("hePsiThermo")
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
Namespace for OpenFOAM.
volScalarField & alpha
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73