createNamedMesh.H
Go to the documentation of this file.
2 
3 if (args.optionReadIfPresent("region", regionName))
4 {
6  << "Create mesh " << regionName << " for time = "
7  << runTime.timeName() << Foam::nl << Foam::endl;
8 }
9 else
10 {
11  regionName = Foam::fvMesh::defaultRegion;
13  << "Create mesh for time = "
14  << runTime.timeName() << Foam::nl << Foam::endl;
15 }
16 
18 (
20  (
21  regionName,
22  runTime.timeName(),
23  runTime,
25  )
26 );
Foam::word regionName
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:256
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
Definition: argListI.H:198
dynamicFvMesh & mesh
A class for handling words, derived from string.
Definition: word.H:59
static const char nl
Definition: Ostream.H:265
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
messageStream Info
Foam::argList args(argc, argv)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:92