OpenFOAM
5.0
The OpenFOAM Foundation
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
w
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
+
Enumerations
a
b
c
d
e
f
g
i
k
l
m
o
p
r
s
t
v
w
+
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Related Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Typedefs
b
c
d
f
g
k
l
m
p
r
s
t
v
w
+
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
applications
solvers
combustion
chemFoam
pEqn.H
Go to the documentation of this file.
1
{
2
rho
=
thermo
.rho();
3
if
(
constProp
==
"volume"
)
4
{
5
scalar invW = 0.0;
6
forAll
(
Y
, i)
7
{
8
invW +=
Y
[i][0]/
specieData
[i].W();
9
}
10
11
Rspecific
[0] = 1000.0*
constant::physicoChemical::R
.value()*invW;
12
13
p
[0] =
rho0
*
Rspecific
[0]*
thermo
.T()[0];
14
rho
[0] =
rho0
;
15
}
16
}
p
p
Definition:
pEqn.H:50
forAll
forAll(phases, phasei)
Definition:
pEqn.H:5
thermo
psiReactionThermo & thermo
Definition:
createFields.H:31
constProp
word constProp(initialConditions.lookup("constantProperty"))
rho0
volScalarField rho0(rho - psi *p)
specieData
PtrList< gasHThermoPhysics > specieData(Y.size())
R
#define R(A, B, C, D, E, F, K, M)
Y
PtrList< volScalarField > & Y
Definition:
createFieldRefs.H:3
Rspecific
Rspecific[0]
Definition:
readInitialConditions.H:100
rho
rho
Definition:
pEqn.H:1
Generated by
1.8.13