OpenFOAM
9
The OpenFOAM Foundation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
createSolidMeshes.H
Go to the documentation of this file.
1
const
wordList
solidNames
2
(
3
rp
.found(
"solid"
) ?
rp
[
"solid"
] :
wordList
(0)
4
);
5
6
PtrList<fvMesh>
solidRegions
(
solidNames
.size());
7
8
forAll
(
solidNames
, i)
9
{
10
Info
<<
"Create solid mesh for region "
<<
solidNames
[i]
11
<<
" for time = "
<<
runTime
.timeName() <<
nl
<<
endl
;
12
13
solidRegions
.set
14
(
15
i,
16
new
fvMesh
17
(
18
IOobject
19
(
20
solidNames
[i],
21
runTime
.timeName(),
22
runTime
,
23
IOobject::MUST_READ
24
)
25
)
26
);
27
28
// Force calculation of geometric properties to prevent it being done
29
// later in e.g. some boundary evaluation
30
//(void)solidRegions[i].weights();
31
//(void)solidRegions[i].deltaCoeffs();
32
}
runTime
engineTime & runTime
Definition:
createEngineTime.H:14
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition:
Ostream.H:251
solidNames
const wordList solidNames(rp.found("solid") ? rp["solid"] :wordList(0))
solidRegions
PtrList< fvMesh > solidRegions(solidNames.size())
rp
regionProperties rp(runTime)
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
forAll
forAll(solidNames, i)
Definition:
createSolidMeshes.H:8
applications
solvers
heatTransfer
chtMultiRegionFoam
solid
createSolidMeshes.H
Generated by
1.8.13