OpenFOAM
9
The OpenFOAM Foundation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
createFluidMeshes.H
Go to the documentation of this file.
1
const
wordList
fluidNames
2
(
3
rp
.found(
"fluid"
) ?
rp
[
"fluid"
] :
wordList
(0)
4
);
5
6
PtrList<fvMesh>
fluidRegions
(
fluidNames
.size());
7
8
forAll
(
fluidNames
, i)
9
{
10
Info
<<
"Create fluid mesh for region "
<<
fluidNames
[i]
11
<<
" for time = "
<<
runTime
.timeName() <<
nl
<<
endl
;
12
13
fluidRegions
.set
14
(
15
i,
16
new
fvMesh
17
(
18
IOobject
19
(
20
fluidNames
[i],
21
runTime
.timeName(),
22
runTime
,
23
IOobject::MUST_READ
24
)
25
)
26
);
27
}
forAll
forAll(fluidNames, i)
Definition:
createFluidMeshes.H:8
runTime
engineTime & runTime
Definition:
createEngineTime.H:14
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition:
Ostream.H:251
fluidNames
const wordList fluidNames(rp.found("fluid") ? rp["fluid"] :wordList(0))
rp
regionProperties rp(runTime)
fluidRegions
PtrList< fvMesh > fluidRegions(fluidNames.size())
Foam::nl
static const char nl
Definition:
Ostream.H:260
Foam::wordList
List< word > wordList
A List of words.
Definition:
fileName.H:54
Foam::Info
messageStream Info
applications
solvers
heatTransfer
chtMultiRegionFoam
fluid
createFluidMeshes.H
Generated by
1.8.13