Home
Downloads
Documentation
Installation
User Guide
man-pages
API Documentation
README
Release Notes
Changes
License
Support
SourceForge Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
thermophysicalModels
reactionThermo
combustionThermo
mixtureThermos
hhuMixtureThermo
hhuMixtureThermo.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) 1991-2010 OpenCFD Ltd.
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::hhuMixtureThermo
26
27
Description
28
Foam::hhuMixtureThermo
29
30
SourceFiles
31
hhuMixtureThermo.C
32
33
\*---------------------------------------------------------------------------*/
34
35
#ifndef hhuMixtureThermo_H
36
#define hhuMixtureThermo_H
37
38
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39
40
namespace
Foam
41
{
42
43
/*---------------------------------------------------------------------------*\
44
Class hhuMixtureThermo Declaration
45
\*---------------------------------------------------------------------------*/
46
47
template
<
class
MixtureType>
48
class
hhuMixtureThermo
49
:
50
public
hhuCombustionThermo
,
51
public
MixtureType
52
{
53
// Private member functions
54
55
void
calculate();
56
57
//- Construct as copy (not implemented)
58
hhuMixtureThermo
(
const
hhuMixtureThermo<MixtureType>
&);
59
60
61
public
:
62
63
//- Runtime type information
64
TypeName
(
"hhuMixtureThermo"
);
65
66
67
// Constructors
68
69
//- Construct from mesh
70
hhuMixtureThermo
(
const
fvMesh
&);
71
72
73
//- Destructor
74
virtual
~hhuMixtureThermo
();
75
76
77
// Member functions
78
79
//- Return the compostion of the multi-component mixture
80
virtual
basicMultiComponentMixture
&
composition
()
81
{
82
return
*
this
;
83
}
84
85
//- Return the compostion of the multi-component mixture
86
virtual
const
basicMultiComponentMixture
&
composition
()
const
87
{
88
return
*
this
;
89
}
90
91
//- Update properties
92
virtual
void
correct
();
93
94
//- Chemical enthalpy [J/kg]
95
virtual
tmp<volScalarField>
hc
()
const
;
96
97
98
// Fields derived from thermodynamic state variables
99
100
//- Enthalpy for cell-set [J/kg]
101
virtual
tmp<scalarField>
h
102
(
103
const
scalarField
&
T
,
104
const
labelList
&
cells
105
)
const
;
106
107
//- Enthalpy for patch [J/kg]
108
virtual
tmp<scalarField>
h
109
(
110
const
scalarField
&
T
,
111
const
label
patchi
112
)
const
;
113
114
//- Heat capacity at constant pressure for patch [J/kg/K]
115
virtual
tmp<scalarField>
Cp
116
(
117
const
scalarField
&
T
,
118
const
label
patchi
119
)
const
;
120
121
//- Heat capacity at constant pressure [J/kg/K]
122
virtual
tmp<volScalarField>
Cp
()
const
;
123
124
//- Unburnt gas enthalpy for cell-set [J/kg]
125
virtual
tmp<scalarField>
hu
126
(
127
const
scalarField
&
T
,
128
const
labelList
&
cells
129
)
const
;
130
131
//- Unburnt gas enthalpy for patch [J/kg]
132
virtual
tmp<scalarField>
hu
133
(
134
const
scalarField
&
T
,
135
const
label
patchi
136
)
const
;
137
138
139
//- Burnt gas temperature [K]
140
virtual
tmp<volScalarField>
Tb
()
const
;
141
142
//- Unburnt gas compressibility [s^2/m^2]
143
virtual
tmp<volScalarField>
psiu
()
const
;
144
145
//- Burnt gas compressibility [s^2/m^2]
146
virtual
tmp<volScalarField>
psib
()
const
;
147
148
149
// Access to transport variables
150
151
//- Dynamic viscosity of unburnt gas [kg/ms]
152
virtual
tmp<volScalarField>
muu
()
const
;
153
154
//- Dynamic viscosity of burnt gas [kg/ms]
155
virtual
tmp<volScalarField>
mub
()
const
;
156
157
158
//- Read thermophysicalProperties dictionary
159
virtual
bool
read
();
160
};
161
162
163
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
164
165
}
// End namespace Foam
166
167
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
168
169
#ifdef NoRepository
170
# include "
hhuMixtureThermo.C
"
171
#endif
172
173
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
174
175
#endif
176
177
// ************************ vim: set sw=4 sts=4 et: ************************ //