OpenFOAM logo
Open Source CFD Toolkit

createNamedMesh.H

Go to the documentation of this file.
00001     word meshName;
00002 
00003     if (args.options().found("mesh"))
00004     {
00005         meshName = args.options()["mesh"];
00006 
00007         Info<< "Create mesh " << meshName << " for time = "
00008             << runTime.timeName() << nl << endl;
00009     }
00010     else
00011     {
00012         meshName = fvMesh::defaultRegion;
00013 
00014         Info<< "Create mesh for time = "
00015             << runTime.timeName() << nl << endl;
00016     }
00017 
00018     fvMesh mesh
00019     (
00020         IOobject
00021         (
00022             meshName,
00023             runTime.timeName(),
00024             runTime,
00025             IOobject::MUST_READ
00026         )
00027     );
00028 
00029     mesh.constructAndClear();
For further information go to www.openfoam.org