openfoam/applications/utilities/miscellaneous
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
..
foamDictionary ENH: improve consistency of fileName handling windows/non-windows (#2057) 2021-04-19 16:33:42 +00:00
foamFormatConvert ENH: add 'filtered' polyMesh regionName() method 2022-05-27 14:10:31 +02:00
foamHasLibrary ENH: add -verbose support into argList 2021-11-09 15:44:54 +01:00
foamHelp ENH: use singleton method for accessing runtime selection 2021-11-05 17:21:27 +01:00
foamListRegions ENH: no implicit loading of controlDict libs for foamListRegions (#1713) 2020-05-23 15:53:17 +02:00
foamListTimes ENH: add -verbose support into argList 2021-11-09 15:44:54 +01:00
foamRestoreFields ENH: bundle broadcasts (#2371) 2022-04-29 11:44:28 +02:00
OSspecific CONFIG: improve support for compiler/link options (#1830) 2020-09-07 09:45:51 +02:00
patchSummary GIT: Header file updates 2019-10-31 14:48:44 +00:00