All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups
hePsiQGDThermo.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) 2019 OpenCFD Ltd.
10  Copyright (C) 2016-2019 ISP RAS (www.ispras.ru) UniCFD Group (www.unicfd.ru)
11 -------------------------------------------------------------------------------
12 
13 License
14  This file is part of QGDsolver, based on OpenFOAM library.
15 
16  OpenFOAM is free software: you can redistribute it and/or modify it
17  under the terms of the GNU General Public License as published by
18  the Free Software Foundation, either version 3 of the License, or
19  (at your option) any later version.
20 
21  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
22  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
23  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24  for more details.
25 
26  You should have received a copy of the GNU General Public License
27  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
28 
29 Class
30  Foam::hePsiQGDThermo
31 
32 Group
33  grpPsiQGDThermo
34 
35 Description
36  Energy for a perfect gas mixture with QGD equations
37 
38 SourceFiles
39  hePsiQGDThermo.C
40 
41 \*---------------------------------------------------------------------------*/
42 
43 #ifndef hePsiQGDThermo_H
44 #define hePsiQGDThermo_H
45 
46 #include "psiThermo.H"
47 #include "heThermo.H"
48 
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 
51 namespace Foam
52 {
53 
54 /*---------------------------------------------------------------------------*\
55  Class hePsiQGDThermo Declaration
56 \*---------------------------------------------------------------------------*/
57 
58 template<class BasicPsiThermo, class MixtureType>
59 class hePsiQGDThermo
60 :
61  public heThermo<BasicPsiThermo, MixtureType>
62 {
63  // Private Member Functions
64 
65  //- Calculate the thermo variables
66  void calculate();
67 
68  //- Construct as copy (not implemented)
70 
71 public:
72 
73  //- Runtime type information
74  TypeName("hePsiQGDThermo");
75 
76 
77  // Constructors
78 
79  //- Construct from mesh and phase name
81  (
82  const fvMesh&,
83  const word& phaseName
84  );
85 
86  //- Construct from mesh and phase name
88  (
89  const fvMesh&,
90  const word& phaseName,
91  const word& dictionaryName
92  );
93 
94 
95  //- Destructor
96  virtual ~hePsiQGDThermo();
97 
98 
99  // Member functions
100 
101  //- Update properties
102  virtual void correct();
103 
104  // Accesss functions
105 
106  virtual tmp<volScalarField> gamma() const;
107 
108 };
109 
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 } // End namespace Foam
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 #ifdef NoRepository
118  #include "hePsiQGDThermo.C"
119 #endif
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 #endif
124 
125 // ************************************************************************* //
virtual ~hePsiQGDThermo()
Destructor.
virtual void correct()
Update properties.
virtual tmp< volScalarField > gamma() const
Energy for a perfect gas mixture with QGD equations.
TypeName("hePsiQGDThermo")
Runtime type information.