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 -------------------------------------------------------------------------------
11 License
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 
27 Class
28  Foam::hePsiThermo
29 
30 Description
31  Energy for a mixture based on compressibility
32 
33 SourceFiles
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 
46 namespace Foam
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class hePsiThermo Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 template<class BasicPsiThermo, class MixtureType>
54 class 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 
76 public:
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 // ************************************************************************* //
Foam::heThermo
Enthalpy/Internal energy for a mixture.
Definition: heThermo.H:52
p
volScalarField & p
Definition: createFieldRefs.H:8
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::constant::physicoChemical::mu
const dimensionedScalar mu
Atomic mass unit.
Definition: createFieldRefs.H:4
Foam::heThermo< BasicPsiThermo, MixtureType >::he
virtual volScalarField & he()
Enthalpy/Internal energy [J/kg].
Definition: heThermo.H:163
Foam::constant::atomic::alpha
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Definition: readThermalProperties.H:212
Foam::hePsiThermo::TypeName
TypeName("hePsiThermo")
Runtime type information.
Foam::hePsiThermo
Energy for a mixture based on compressibility.
Definition: hePsiThermo.H:53
Foam::T
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Definition: FieldFieldFunctions.C:58
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:85
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
psiThermo.H
Foam::hePsiThermo::~hePsiThermo
virtual ~hePsiThermo()
Destructor.
Definition: hePsiThermo.C:191
hePsiThermo.C
Foam::hePsiThermo::correct
virtual void correct()
Update properties.
Definition: hePsiThermo.C:198
Foam::GeometricField< scalar, fvPatchField, volMesh >
psi
const volScalarField & psi
Definition: createFieldRefs.H:1
heThermo.H