All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups
rhoQGDThermo.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::rhoQGDThermo
31 
32 Group
33  grpRhoQGDThermo
34 
35 Description
36  Basic thermodynamic properties based on density
37 
38 SourceFiles
39  rhoQGDThermo.C
40 
41 \*---------------------------------------------------------------------------*/
42 
43 #ifndef rhoQGDThermo_H
44 #define rhoQGDThermo_H
45 
46 #include "rhoThermo.H"
47 #include "QGDThermo.H"
48 #include "runTimeSelectionTables.H"
49 
50 
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 
53 namespace Foam
54 {
55 
56 /*---------------------------------------------------------------------------*\
57  Class rhoQGDThermo Declaration
58 \*---------------------------------------------------------------------------*/
59 
60 class rhoQGDThermo
61 :
62  public rhoThermo, public QGDThermo
63 {
64 
65 protected:
66 
67  // Protected Member Functions
68 
69  //- Construct as copy (not implemented)
70  rhoQGDThermo(const rhoQGDThermo&);
71 
72  //-
73  volScalarField c_;
74 
75  //-
76  volScalarField gamma_;
77 
78 
79 public:
80 
81  //- Runtime type information
82  TypeName("rhoQGDThermo");
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  //- Selector
114  static autoPtr<rhoQGDThermo> New
115  (
116  const fvMesh& mesh,
117  const word& phaseName=word::null
118  );
119 
120  //- Selector
121  static autoPtr<rhoQGDThermo> New
122  (
123  const fvMesh& mesh,
124  const word& phaseName,
125  const word& dictName
126  );
127 
128 
129  //- Destructor
130  virtual ~rhoQGDThermo();
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 // ************************************************************************* //
virtual tmp< volScalarField > rho() const
Definition: rhoQGDThermo.C:139
virtual ~rhoQGDThermo()
Destructor.
Definition: rhoQGDThermo.C:101
virtual const volScalarField & p() const
Definition: rhoQGDThermo.C:129
const volScalarField & c() const
Definition: rhoQGDThermo.C:124
volScalarField gamma_
Definition: rhoQGDThermo.H:77
Basic thermodynamic properties based on density.
Definition: rhoQGDThermo.H:55
TypeName("rhoQGDThermo")
Runtime type information.
declareRunTimeSelectionTable(autoPtr, rhoQGDThermo, fvMesh,(const fvMesh &mesh, const word &phaseName),(mesh, phaseName))
Declare run-time constructor selection table.
Abstract base class for classes implementing thermophysical properties of gases and fluids governed b...
Definition: QGDThermo.H:53
static autoPtr< rhoQGDThermo > New(const fvMesh &mesh, const word &phaseName=word::null)
Selector.
Definition: rhoQGDThermo.C:81
rhoQGDThermo(const rhoQGDThermo &)
Construct as copy (not implemented)
volScalarField c_
Definition: rhoQGDThermo.H:72
virtual tmp< volScalarField > mu() const
Definition: rhoQGDThermo.C:144