createNamedPolyMesh.H
Go to the documentation of this file.
2 
3 if (args.readIfPresent("region", regionName))
4 {
6  << "Create polyMesh " << regionName << " for time = "
7  << runTime.timeName() << Foam::nl << Foam::endl;
8 }
9 else
10 {
12  << "Create polyMesh for time = "
13  << runTime.timeName() << Foam::nl << Foam::endl;
14 }
15 
17 (
19  (
20  regionName,
21  runTime.timeName(),
22  runTime,
24  )
25 );
mesh
Foam::polyMesh mesh(Foam::IOobject(regionName, runTime.timeName(), runTime, Foam::IOobject::MUST_READ))
runTime
engineTime & runTime
Definition: createEngineTime.H:13
Foam::IOobject
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:104
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:62
Foam::polyMesh::defaultRegion
static word defaultRegion
Return the default region name.
Definition: polyMesh.H:312
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:350
Foam::argList::readIfPresent
bool readIfPresent(const word &optName, T &val) const
Read a value from the named option if present.
Definition: argListI.H:302
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:77
Foam::Info
messageStream Info
Information stream (uses stdout - output is on the master only)
regionName
Foam::word regionName
Definition: createNamedPolyMesh.H:1
Foam::nl
constexpr char nl
Definition: Ostream.H:385
args
Foam::argList args(argc, argv)
Foam::IOobject::MUST_READ
Definition: IOobject.H:120