openfoam/applications/utilities/mesh/generation/extrude2DMesh
Mark Olesen ba10afea77 ENH: add 'filtered' polyMesh regionName() method
- in various situations with mesh regions it is also useful to
  filter out or remove the defaultRegion name (ie, "region0").

  Can now do that conveniently from the polyMesh itself or as a static
  function. Simply use this

      const word& regionDir = polyMesh::regionName(regionName);

  OR  mesh.regionName()

  instead of

      const word& regionDir =
      (
           regionName != polyMesh::defaultRegion
         ? regionName
         : word::null
      );

  Additionally, since the string '/' join operator filters out empty
  strings, the following will work correctly:

      (polyMesh::regionName(regionName)/polyMesh::meshSubDir)

      (mesh.regionName()/polyMesh::meshSubDir)
2022-05-27 14:10:31 +02:00
..
extrude2DMesh STYLE: remove dead code, refactor constructors in extrudePatchMesh 2020-02-21 11:13:22 +01:00
Make COMP: adjust compilation order with updated interdependencies 2019-04-28 14:44:33 +02:00
Allwclean STYLE: regularize quoting and exit on failed 'cd' 2019-11-13 13:19:16 +01:00
Allwmake STYLE: regularize quoting and exit on failed 'cd' 2019-11-13 13:19:16 +01:00
extrude2DMeshApp.C ENH: add 'filtered' polyMesh regionName() method 2022-05-27 14:10:31 +02:00