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