createNamedDynamicFvMesh.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 
16  autoPtr<dynamicFvMesh> meshPtr
17  (
19  (
20  IOobject
21  (
22  regionName,
23  runTime.timeName(),
24  runTime,
25  IOobject::MUST_READ
26  )
27  )
28  );
29 
30  dynamicFvMesh& mesh = meshPtr();
runTime
engineTime & runTime
Definition: createEngineTime.H:13
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::polyMesh::defaultRegion
static word defaultRegion
Return the default region name.
Definition: polyMesh.H:318
mesh
dynamicFvMesh & mesh
Definition: createNamedDynamicFvMesh.H:30
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:369
Foam::argList::readIfPresent
bool readIfPresent(const word &optName, T &val) const
Read a value from the named option if present.
Definition: argListI.H:323
regionName
Foam::word regionName
Definition: createNamedDynamicFvMesh.H:1
Foam::Info
messageStream Info
Information stream (stdout output on master, null elsewhere)
Foam::New
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
Definition: DimensionedFieldReuseFunctions.H:105
Foam::nl
constexpr char nl
Definition: Ostream.H:404
meshPtr
autoPtr< dynamicFvMesh > meshPtr(dynamicFvMesh::New(IOobject(regionName, runTime.timeName(), runTime, IOobject::MUST_READ)))
args
Foam::argList args(argc, argv)