createNamedMesh.H
Go to the documentation of this file.
2 
3 if (args.readIfPresent("region", regionName))
4 {
6  << "Create mesh " << regionName << " for time = "
7  << runTime.timeName() << Foam::nl << Foam::endl;
8 }
9 else
10 {
12  << "Create mesh for time = "
13  << runTime.timeName() << Foam::nl << Foam::endl;
14 }
15 
17 (
19  (
20  regionName,
21  runTime.timeName(),
22  runTime,
24  ),
25  false
26 );
27 mesh.init(true); // initialise all (lower levels and current)
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:318
regionName
Foam::word regionName
Definition: createNamedMesh.H:1
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:296
Foam::Info
messageStream Info
Information stream (uses stdout - output is on the master only)
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:83
Foam::fvMesh::init
virtual bool init(const bool doInit)
Initialise all non-demand-driven data.
Definition: fvMesh.C:271
Foam::nl
constexpr char nl
Definition: Ostream.H:385
args
Foam::argList args(argc, argv)
mesh
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.timeName(), runTime, Foam::IOobject::MUST_READ), false)
Foam::IOobject::MUST_READ
Definition: IOobject.H:120