This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/src/OpenFOAM/include/createNamedMesh.H

31 lines
670 B
C
Raw Normal View History

2010-08-24 15:19:39 +00:00
//
// createNamedMesh.H
// ~~~~~~~~~~~~~~~~~
2010-08-24 15:19:39 +00:00
Foam::word regionName;
2010-08-24 15:19:39 +00:00
if (args.optionReadIfPresent("region", regionName))
{
Foam::Info
<< "Create mesh " << regionName << " for time = "
<< runTime.timeName() << Foam::nl << Foam::endl;
}
else
{
2010-08-24 15:19:39 +00:00
regionName = Foam::fvMesh::defaultRegion;
Foam::Info
<< "Create mesh for time = "
<< runTime.timeName() << Foam::nl << Foam::endl;
}
2010-08-24 15:19:39 +00:00
Foam::fvMesh mesh
(
2010-08-24 15:19:39 +00:00
Foam::IOobject
(
regionName,
runTime.timeName(),
runTime,
2010-08-24 15:19:39 +00:00
Foam::IOobject::MUST_READ
)
);