OpenFOAM: API Guide
v2112
The open source CFD toolbox
setPorosityTreatment.H
Go to the documentation of this file.
1
bool
pressureImplicitPorosity
(
false
);
2
3
// nUCorrectors used for pressureImplicitPorosity
4
int
nUCorr
= 0;
5
if
(
pZones
.active())
6
{
7
// nUCorrectors for pressureImplicitPorosity
8
nUCorr
=
simple
.dict().getOrDefault<
int
>(
"nUCorrectors"
, 0);
9
10
if
(
nUCorr
> 0)
11
{
12
pressureImplicitPorosity
=
true
;
13
Info
<<
"Using pressure implicit porosity"
<<
endl
;
14
}
15
else
16
{
17
Info
<<
"Using pressure explicit porosity"
<<
endl
;
18
}
19
}
simple
const dictionary & simple
Definition:
readFluidMultiRegionSIMPLEControls.H:1
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition:
Ostream.H:369
pressureImplicitPorosity
bool pressureImplicitPorosity(false)
pZones
IOporosityModelList pZones(mesh)
Foam::Info
messageStream Info
Information stream (stdout output on master, null elsewhere)
nUCorr
int nUCorr
Definition:
setPorosityTreatment.H:4
applications
solvers
incompressible
simpleFoam
porousSimpleFoam
setPorosityTreatment.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.