All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups
psiQGDThermo.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::psiQGDThermo
31 
32 Group
33  grpPsiQGDThermo
34 
35 Description
36  Class describing thermophysical properties of perfect gas with motion
37  governed by Quasi- Gas dynamics equations.
38 
39 SourceFiles
40  psiQGDThermo.C
41 
42 \*---------------------------------------------------------------------------*/
43 
44 #ifndef psiQGDThermo_H
45 #define psiQGDThermo_H
46 
47 #include "QGDThermo.H"
48 #include "psiThermo.H"
49 #include "runTimeSelectionTables.H"
50 #include "QGDCoeffs.H"
51 
52 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
53 
54 namespace Foam
55 {
56 
57 /*---------------------------------------------------------------------------*\
58  Class psiQGDThermo Declaration
59 \*---------------------------------------------------------------------------*/
60 
61 class psiQGDThermo
62 :
63  public psiThermo, public QGDThermo
64 {
65 
66 protected:
67 
68  // Protected Member Functions
69 
70  //- Construct as copy (not implemented)
71  psiQGDThermo(const psiQGDThermo&);
72 
73  //-
74  volScalarField c_;
75 
76  //-
77  volScalarField gamma_;
78 
79 public:
80 
81  //- Runtime type information
82  TypeName("psiQGDThermo");
83 
84 
85  //- Declare run-time constructor selection table
87  (
88  autoPtr,
90  fvMesh,
91  (const fvMesh& mesh, const word& phaseName),
92  (mesh, phaseName)
93  );
94 
95 
96  // Constructors
97 
98  //- Construct from mesh and phase name
100  (
101  const fvMesh&,
102  const word& phaseName
103  );
104 
105  //- Construct from mesh and phase name
107  (
108  const fvMesh&,
109  const word& phaseName,
110  const word& dictName
111  );
112 
113 
114  //- Selector
115  static autoPtr<psiQGDThermo> New
116  (
117  const fvMesh& mesh,
118  const word& phaseName=word::null
119  );
120 
121  //- Selector
122  static autoPtr<psiQGDThermo> New
123  (
124  const fvMesh& mesh,
125  const word& phaseName,
126  const word& dictName
127  );
128 
129  //- Destructor
130  virtual ~psiQGDThermo();
131 
132 
133  // Member functions
134 
135  //-
136  bool read();
137 
138  //-
139  const volScalarField& c() const;
140 
141  //-
142  virtual const volScalarField& p() const;
143 
144  //-
145  volScalarField& p();
146 
147  //-
148  virtual tmp<volScalarField> rho() const;
149 
150  //-
151  virtual tmp<volScalarField> mu() const;
152 };
153 
154 
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 
157 } // End namespace Foam
158 
159 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
160 
161 #endif
162 
163 // ************************************************************************* //
declareRunTimeSelectionTable(autoPtr, psiQGDThermo, fvMesh,(const fvMesh &mesh, const word &phaseName),(mesh, phaseName))
Declare run-time constructor selection table.
virtual const volScalarField & p() const
Definition: psiQGDThermo.C:139
virtual ~psiQGDThermo()
Destructor.
Definition: psiQGDThermo.C:111
const volScalarField & c() const
Definition: psiQGDThermo.C:134
TypeName("psiQGDThermo")
Runtime type information.
volScalarField gamma_
Definition: psiQGDThermo.H:78
virtual tmp< volScalarField > mu() const
Definition: psiQGDThermo.C:154
virtual tmp< volScalarField > rho() const
Definition: psiQGDThermo.C:149
static autoPtr< psiQGDThermo > New(const fvMesh &mesh, const word &phaseName=word::null)
Selector.
Definition: psiQGDThermo.C:91
Class describing thermophysical properties of perfect gas with motion governed by Quasi- Gas dynamics...
Definition: psiQGDThermo.H:56
Abstract base class for classes implementing thermophysical properties of gases and fluids governed b...
Definition: QGDThermo.H:53
volScalarField c_
Definition: psiQGDThermo.H:73
psiQGDThermo(const psiQGDThermo &)
Construct as copy (not implemented)