FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

createNamedPolyMesh.H

Go to the documentation of this file.
00001 //
00002 // createNamedPolyMesh.H
00003 // ~~~~~~~~~~~~~~~~~~~~~
00004 
00005     Foam::word regionName;
00006 
00007     if (args.optionReadIfPresent("region", regionName))
00008     {
00009         Foam::Info
00010             << "Create polyMesh " << regionName << " for time = "
00011             << runTime.timeName() << Foam::nl << Foam::endl;
00012     }
00013     else
00014     {
00015         regionName = Foam::polyMesh::defaultRegion;
00016         Foam::Info
00017             << "Create polyMesh for time = "
00018             << runTime.timeName() << Foam::nl << Foam::endl;
00019     }
00020 
00021     Foam::polyMesh mesh
00022     (
00023         Foam::IOobject
00024         (
00025             regionName,
00026             runTime.timeName(),
00027             runTime,
00028             Foam::IOobject::MUST_READ
00029         )
00030     );
00031 
00032 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines