createPorosity.H
Go to the documentation of this file.
1// Reading porosity properties from constant directory
3(
4 IOobject
5 (
6 "porosityProperties",
7 runTime.constant(),
9 IOobject::READ_IF_PRESENT,
10 IOobject::NO_WRITE
11 )
12);
13
15(
16 porosityProperties.getOrDefault<bool>("porosityEnabled", false)
17);
18
19tmp<volScalarField> tporosity;
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}
dynamicFvMesh & mesh
engineTime & runTime
IOdictionary porosityProperties(IOobject("porosityProperties", runTime.constant(), runTime, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE))
const bool porosityEnabled(porosityProperties.getOrDefault< bool >("porosityEnabled", false))
tmp< volScalarField > tporosity