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

createNamedMesh.H

Go to the documentation of this file.
00001 //
00002 // createNamedMesh.H
00003 // ~~~~~~~~~~~~~~~~~
00004 
00005     Foam::word regionName;
00006 
00007     if (args.optionReadIfPresent("region", regionName))
00008     {
00009         Foam::Info
00010             << "Create mesh " << regionName << " for time = "
00011             << runTime.timeName() << Foam::nl << Foam::endl;
00012     }
00013     else
00014     {
00015         regionName = Foam::fvMesh::defaultRegion;
00016         Foam::Info
00017             << "Create mesh for time = "
00018             << runTime.timeName() << Foam::nl << Foam::endl;
00019     }
00020 
00021     Foam::fvMesh 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