heheuPsiThermo.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::heheuReactionThermo
26 
27 Description
28  Foam::heheuReactionThermo
29 
30 SourceFiles
31  heheuReactionThermo.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef heheuPsiThermo_H
36 #define heheuPsiThermo_H
37 
38 #include "heThermo.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 /*---------------------------------------------------------------------------*\
46  Class heheuPsiThermo Declaration
47 \*---------------------------------------------------------------------------*/
48 
49 template<class BasicPsiThermo, class MixtureType>
50 class heheuPsiThermo
51 :
52  public heThermo<BasicPsiThermo, MixtureType>
53 {
54  // Private Data
55 
56  //- Unburnt temperature
57  volScalarField Tu_;
58 
59  //- Unburnt energy
60  volScalarField heu_;
61 
62 
63  // Private Member Functions
64 
65  //- Calculate the thermo variables
66  void calculate();
67 
68 
69 public:
70 
71  //- Runtime type information
72  TypeName("heheuPsiThermo");
73 
74 
75  // Constructors
76 
77  //- Construct from mesh and phase name
79  (
80  const fvMesh&,
81  const word& phaseName
82  );
83 
84  //- Disallow default bitwise copy construction
86  (
88  ) = delete;
89 
90 
91  //- Destructor
92  virtual ~heheuPsiThermo();
93 
94 
95  // Member Functions
96 
97  //- Update properties
98  virtual void correct();
99 
100 
101  // Access to thermodynamic state variables.
102 
103  //- Unburnt gas enthalpy [J/kg]
104  // Non-const access allowed for transport equations
105  virtual volScalarField& heu()
106  {
107  return heu_;
108  }
109 
110  //- Unburnt gas enthalpy [J/kg]
111  virtual const volScalarField& heu() const
112  {
113  return heu_;
114  }
115 
116  //- Unburnt gas temperature [K]
117  virtual const volScalarField& Tu() const
118  {
119  return Tu_;
120  }
121 
122 
123  // Fields derived from thermodynamic state variables
124 
125  //- Unburnt gas enthalpy for cell-set [J/kg]
126  virtual tmp<scalarField> heu
127  (
128  const scalarField& T,
129  const labelList& cells
130  ) const;
131 
132  //- Unburnt gas enthalpy for patch [J/kg]
133  virtual tmp<scalarField> heu
134  (
135  const scalarField& T,
136  const label patchi
137  ) const;
138 
139 
140  //- Burnt gas temperature [K]
141  virtual tmp<volScalarField> Tb() const;
142 
143  //- Unburnt gas compressibility [s^2/m^2]
144  virtual tmp<volScalarField> psiu() const;
145 
146  //- Burnt gas compressibility [s^2/m^2]
147  virtual tmp<volScalarField> psib() const;
148 
149 
150  // Access to transport variables
151 
152  //- Dynamic viscosity of unburnt gas [kg/m/s]
153  virtual tmp<volScalarField> muu() const;
154 
155  //- Dynamic viscosity of burnt gas [kg/m/s]
156  virtual tmp<volScalarField> mub() const;
157 };
158 
159 
160 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
161 
162 } // End namespace Foam
163 
164 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
165 
166 #ifdef NoRepository
167  #include "heheuPsiThermo.C"
168 #endif
169 
170 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
171 
172 #endif
173 
174 // ************************************************************************* //
virtual tmp< volScalarField > mub() const
Dynamic viscosity of burnt gas [kg/m/s].
virtual tmp< volScalarField > psiu() const
Unburnt gas compressibility [s^2/m^2].
virtual tmp< volScalarField > Tb() const
Burnt gas temperature [K].
virtual tmp< volScalarField > psib() const
Burnt gas compressibility [s^2/m^2].
virtual tmp< volScalarField > muu() const
Dynamic viscosity of unburnt gas [kg/m/s].
const cellShapeList & cells
A class for handling words, derived from string.
Definition: word.H:59
virtual const volScalarField & Tu() const
Unburnt gas temperature [K].
virtual void correct()
Update properties.
virtual ~heheuPsiThermo()
Destructor.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
label patchi
TypeName("heheuPsiThermo")
Runtime type information.
Enthalpy/Internal energy for a mixture.
Definition: heThermo.H:51
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:95
A class for managing temporary objects.
Definition: PtrList.H:53
virtual volScalarField & heu()
Unburnt gas enthalpy [J/kg].
heheuPsiThermo(const fvMesh &, const word &phaseName)
Construct from mesh and phase name.
Namespace for OpenFOAM.