heheuPsiThermo.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 | Copyright (C) 2011-2016 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 heheuReactionThermo_H
36 #define heheuReactionThermo_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 Member Functions
55 
56  volScalarField Tu_;
57  volScalarField heu_;
58 
59 
60  // Private Member Functions
61 
62  void calculate();
63 
64  //- Construct as copy (not implemented)
66  (
68  );
69 
70 
71 public:
72 
73  //- Runtime type information
74  TypeName("heheuPsiThermo");
75 
76 
77  // Constructors
78 
79  //- Construct from mesh and phase name
81  (
82  const fvMesh&,
83  const word& phaseName
84  );
85 
86 
87  //- Destructor
88  virtual ~heheuPsiThermo();
89 
90 
91  // Member functions
92 
93  //- Update properties
94  virtual void correct();
95 
96  // Access to thermodynamic state variables.
97 
98  //- Unburnt gas enthalpy [J/kg]
99  // Non-const access allowed for transport equations
100  virtual volScalarField& heu()
101  {
102  return heu_;
103  }
104 
105  //- Unburnt gas enthalpy [J/kg]
106  virtual const volScalarField& heu() const
107  {
108  return heu_;
109  }
110 
111  //- Unburnt gas temperature [K]
112  virtual const volScalarField& Tu() const
113  {
114  return Tu_;
115  }
116 
117 
118  // Fields derived from thermodynamic state variables
119 
120  //- Unburnt gas enthalpy for cell-set [J/kg]
121  virtual tmp<scalarField> heu
122  (
123  const scalarField& p,
124  const scalarField& T,
125  const labelList& cells
126  ) const;
127 
128  //- Unburnt gas enthalpy for patch [J/kg]
129  virtual tmp<scalarField> heu
130  (
131  const scalarField& p,
132  const scalarField& T,
133  const label patchi
134  ) const;
135 
136 
137  //- Burnt gas temperature [K]
138  virtual tmp<volScalarField> Tb() const;
139 
140  //- Unburnt gas compressibility [s^2/m^2]
141  virtual tmp<volScalarField> psiu() const;
142 
143  //- Burnt gas compressibility [s^2/m^2]
144  virtual tmp<volScalarField> psib() const;
145 
146 
147  // Access to transport variables
148 
149  //- Dynamic viscosity of unburnt gas [kg/ms]
150  virtual tmp<volScalarField> muu() const;
151 
152  //- Dynamic viscosity of burnt gas [kg/ms]
153  virtual tmp<volScalarField> mub() const;
154 };
155 
156 
157 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
158 
159 } // End namespace Foam
160 
161 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
162 
163 #ifdef NoRepository
164  #include "heheuPsiThermo.C"
165 #endif
166 
167 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168 
169 #endif
170 
171 // ************************************************************************* //
virtual tmp< volScalarField > mub() const
Dynamic viscosity of burnt gas [kg/ms].
virtual tmp< volScalarField > psiu() const
Unburnt gas compressibility [s^2/m^2].
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
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/ms].
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:49
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
volScalarField & p
A class for managing temporary objects.
Definition: PtrList.H:53
virtual volScalarField & heu()
Unburnt gas enthalpy [J/kg].
Namespace for OpenFOAM.