createNamedPolyMesh.H
Go to the documentation of this file.
2 
3 if (args.optionReadIfPresent("region", regionName))
4 {
6  << "Create polyMesh " << regionName << " for time = "
7  << runTime.timeName() << Foam::nl << Foam::endl;
8 }
9 else
10 {
11  regionName = Foam::polyMesh::defaultRegion;
13  << "Create polyMesh for time = "
14  << runTime.timeName() << Foam::nl << Foam::endl;
15 }
16 
18 (
20  (
21  regionName,
22  runTime.timeName(),
23  runTime,
25  )
26 );
engineTime & runTime
static word defaultRegion
Return the default region name.
Definition: polyMesh.H:309
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
Definition: argListI.H:204
dynamicFvMesh & mesh
A class for handling words, derived from string.
Definition: word.H:59
static const char nl
Definition: Ostream.H:260
Foam::word regionName
messageStream Info
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:74
Foam::argList args(argc, argv)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:92