OpenFOAM
13
The OpenFOAM Foundation
createPorousZones.H
Go to the documentation of this file.
1
IOporosityModelList
pZones
(
mesh
);
2
Switch
pressureImplicitPorosity
(
false
);
3
4
// nUCorrectors used for pressureImplicitPorosity
5
int
nUCorr
= 0;
6
if
(
pZones
.UPtrList<porosityModel>::size())
7
{
8
// nUCorrectors for pressureImplicitPorosity
9
nUCorr
=
simple
.dict().lookupOrDefault<
int
>(
"nUCorrectors"
, 0);
10
11
if
(
nUCorr
> 0)
12
{
13
pressureImplicitPorosity
=
true
;
14
Info
<<
"Using pressure implicit porosity"
<<
endl
;
15
}
16
else
17
{
18
Info
<<
"Using pressure explicit porosity"
<<
endl
;
19
}
20
}
pressureImplicitPorosity
Switch pressureImplicitPorosity(false)
nUCorr
int nUCorr
Definition:
createPorousZones.H:5
pZones
IOporosityModelList pZones(mesh)
mesh
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
simple
simpleControl simple(mesh)
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition:
Ostream.H:258
Foam::Info
messageStream Info
applications
legacy
incompressible
porousSimpleFoam
createPorousZones.H
Generated by
1.9.1