OpenFOAM
v2512
The open source CFD toolbox
Loading...
Searching...
No Matches
createPorosity.H
Go to the documentation of this file.
1
// Reading porosity properties from constant directory
2
IOdictionary
porosityProperties
3
(
4
IOobject
5
(
6
"porosityProperties"
,
7
runTime
.constant(),
8
runTime
,
9
IOobject::READ_IF_PRESENT,
10
IOobject::NO_WRITE
11
)
12
);
13
14
const
bool
porosityEnabled
15
(
16
porosityProperties
.getOrDefault<
bool
>(
"porosityEnabled"
,
false
)
17
);
18
19
tmp<volScalarField>
tporosity
;
20
if
(
porosityEnabled
)
21
{
22
tporosity
= tmp<volScalarField>::New
23
(
24
IOobject
25
(
26
"porosity"
,
27
runTime
.timeName(),
28
mesh
,
29
IOobject::MUST_READ,
30
IOobject::AUTO_WRITE
31
),
32
mesh
33
);
34
}
mesh
dynamicFvMesh & mesh
Definition
createDynamicFvMesh.H:6
runTime
engineTime & runTime
Definition
createEngineTime.H:13
porosityProperties
IOdictionary porosityProperties(IOobject("porosityProperties", runTime.constant(), runTime, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE))
porosityEnabled
const bool porosityEnabled(porosityProperties.getOrDefault< bool >("porosityEnabled", false))
tporosity
tmp< volScalarField > tporosity
Definition
createPorosity.H:19
applications
solvers
multiphase
interIsoFoam
createPorosity.H
Generated by
1.16.1