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
hPsiMixtureThermo
hPsiMixtureThermo.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::hPsiMixtureThermo
26
27
Description
28
Foam::hPsiMixtureThermo
29
30
SourceFiles
31
hPsiMixtureThermo.C
32
33
\*---------------------------------------------------------------------------*/
34
35
#ifndef hPsiMixtureThermo_H
36
#define hPsiMixtureThermo_H
37
38
#include <
reactionThermophysicalModels/hCombustionThermo.H
>
39
40
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41
42
namespace
Foam
43
{
44
45
/*---------------------------------------------------------------------------*\
46
Class hPsiMixtureThermo Declaration
47
\*---------------------------------------------------------------------------*/
48
49
template
<
class
MixtureType>
50
class
hPsiMixtureThermo
51
:
52
public
hCombustionThermo
,
53
public
MixtureType
54
{
55
// Private member functions
56
57
void
calculate();
58
59
//- Construct as copy (not implemented)
60
hPsiMixtureThermo
(
const
hPsiMixtureThermo<MixtureType>
&);
61
62
63
public
:
64
65
//- Runtime type information
66
TypeName
(
"hPsiMixtureThermo"
);
67
68
69
// Constructors
70
71
//- Construct from mesh
72
hPsiMixtureThermo
(
const
fvMesh
&);
73
74
75
//- Destructor
76
virtual
~hPsiMixtureThermo
();
77
78
79
// Member functions
80
81
//- Return the compostion of the multi-component mixture
82
virtual
basicMultiComponentMixture
&
composition
()
83
{
84
return
*
this
;
85
}
86
87
//- Return the compostion of the multi-component mixture
88
virtual
const
basicMultiComponentMixture
&
composition
()
const
89
{
90
return
*
this
;
91
}
92
93
//- Update properties
94
virtual
void
correct
();
95
96
//- Chemical enthalpy [J/kg]
97
virtual
tmp<volScalarField>
hc
()
const
;
98
99
100
// Fields derived from thermodynamic state variables
101
102
//- Enthalpy for cell-set [J/kg]
103
virtual
tmp<scalarField>
h
104
(
105
const
scalarField
&
T
,
106
const
labelList
&
cells
107
)
const
;
108
109
//- Enthalpy for patch [J/kg]
110
virtual
tmp<scalarField>
h
111
(
112
const
scalarField
&
T
,
113
const
label
patchi
114
)
const
;
115
116
//- Heat capacity at constant pressure for patch [J/kg/K]
117
virtual
tmp<scalarField>
Cp
118
(
119
const
scalarField
&
T
,
120
const
label
patchi
121
)
const
;
122
123
//- Heat capacity at constant pressure [J/kg/K]
124
virtual
tmp<volScalarField>
Cp
()
const
;
125
126
127
//- Read thermophysicalProperties dictionary
128
virtual
bool
read
();
129
};
130
131
132
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133
134
}
// End namespace Foam
135
136
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137
138
#ifdef NoRepository
139
# include "
hPsiMixtureThermo.C
"
140
#endif
141
142
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143
144
#endif
145
146
// ************************ vim: set sw=4 sts=4 et: ************************ //