createNamedDynamicFvMesh.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 
17 
18  autoPtr<dynamicFvMesh> meshPtr
19  (
21  (
22  IOobject
23  (
24  regionName,
25  runTime.timeName(),
26  runTime,
27  IOobject::MUST_READ
28  )
29  )
30  );
31 
32  dynamicFvMesh& mesh = meshPtr();
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:251
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
Definition: argListI.H:204
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
A class for handling words, derived from string.
Definition: word.H:59
static const char nl
Definition: Ostream.H:260
messageStream Info
Foam::argList args(argc, argv)
Foam::Info<< "Create mesh for time = "<< runTime.timeName()<< Foam::nl<< Foam::endl;} autoPtr< dynamicFvMesh > meshPtr(dynamicFvMesh::New(IOobject(regionName, runTime.timeName(), runTime, IOobject::MUST_READ)))