openfoam/applications/utilities/mesh/manipulation
Mark Olesen bac943e6fc ENH: new bitSet class and improved PackedList class (closes #751)
- The bitSet class replaces the old PackedBoolList class.
  The redesign provides better block-wise access and reduced method
  calls. This helps both in cases where the bitSet may be relatively
  sparse, and in cases where advantage of contiguous operations can be
  made. This makes it easier to work with a bitSet as top-level object.

  In addition to the previously available count() method to determine
  if a bitSet is being used, now have simpler queries:

    - all()  - true if all bits in the addressable range are empty
    - any()  - true if any bits are set at all.
    - none() - true if no bits are set.

  These are faster than count() and allow early termination.

  The new test() method tests the value of a single bit position and
  returns a bool without any ambiguity caused by the return type
  (like the get() method), nor the const/non-const access (like
  operator[] has). The name corresponds to what std::bitset uses.

  The new find_first(), find_last(), find_next() methods provide a faster
  means of searching for bits that are set.

  This can be especially useful when using a bitSet to control an
  conditional:

  OLD (with macro):

      forAll(selected, celli)
      {
          if (selected[celli])
          {
              sumVol += mesh_.cellVolumes()[celli];
          }
      }

  NEW (with const_iterator):

      for (const label celli : selected)
      {
          sumVol += mesh_.cellVolumes()[celli];
      }

      or manually

      for
      (
          label celli = selected.find_first();
          celli != -1;
          celli = selected.find_next()
      )
      {
          sumVol += mesh_.cellVolumes()[celli];
      }

- When marking up contiguous parts of a bitset, an interval can be
  represented more efficiently as a labelRange of start/size.
  For example,

  OLD:

      if (isA<processorPolyPatch>(pp))
      {
          forAll(pp, i)
          {
              ignoreFaces.set(i);
          }
      }

  NEW:

      if (isA<processorPolyPatch>(pp))
      {
          ignoreFaces.set(pp.range());
      }
2018-03-07 11:21:48 +01:00
..
attachMesh ENH: simplify method names for reading argList options and arguments 2018-01-08 15:35:18 +01:00
autoPatch ENH: simplify method names for reading argList options and arguments 2018-01-08 15:35:18 +01:00
checkMesh ENH: new bitSet class and improved PackedList class (closes #751) 2018-03-07 11:21:48 +01:00
createBaffles ENH: new bitSet class and improved PackedList class (closes #751) 2018-03-07 11:21:48 +01:00
createPatch STYLE: Correcting typos 2018-03-28 17:14:16 +01:00
deformedGeom ENH: simplify method names for reading argList options and arguments 2018-01-08 15:35:18 +01:00
flattenMesh GIT: Initial state after latest Foundation merge 2016-09-20 14:49:08 +01:00
insideCells STYLE: consistency in using argList::addArgument, argList::addOption 2017-11-22 12:54:28 +01:00
mergeMeshes ENH: simplify method names for reading argList options and arguments 2018-01-08 15:35:18 +01:00
mergeOrSplitBaffles ENH: new bitSet class and improved PackedList class (closes #751) 2018-03-07 11:21:48 +01:00
mirrorMesh STYLE: Correcting typos 2018-03-28 17:14:16 +01:00
moveDynamicMesh STYLE: rename toLabel, toLabelRange classes -> labelOp, labelRangeOp 2018-04-11 22:48:03 +02:00
moveEngineMesh ENH: (further) Doxygen documentation updates for module support 2016-06-27 20:34:19 +01:00
moveMesh ENH: (further) Doxygen documentation updates for module support 2016-06-27 20:34:19 +01:00
objToVTK STYLE: consistency in using argList::addArgument, argList::addOption 2017-11-22 12:54:28 +01:00
orientFaceZone ENH: new bitSet class and improved PackedList class (closes #751) 2018-03-07 11:21:48 +01:00
polyDualMesh ENH: new bitSet class and improved PackedList class (closes #751) 2018-03-07 11:21:48 +01:00
refineMesh ENH: new bitSet class and improved PackedList class (closes #751) 2018-03-07 11:21:48 +01:00
renumberMesh ENH: improve handling of ThirdParty packages 2018-04-24 14:51:19 +02:00
rotateMesh ENH: simplify method names for reading argList options and arguments 2018-01-08 15:35:18 +01:00
setSet ENH: improve handling of ThirdParty packages 2018-04-24 14:51:19 +02:00
setsToZones STYLE: consistent use of wordHashSet instead of HashSet<word> 2018-02-22 11:19:47 +01:00
singleCellMesh BUG: singleCellMesh: writes constant mesh to 0 directory instead. 2016-08-10 15:49:09 +01:00
splitMesh ENH: consistency of HashSet setMany(), insertMany() with packed-list version 2018-03-14 21:08:29 +01:00
splitMeshRegions STYLE: more consistent use of dimensioned Zero 2018-03-16 10:24:03 +01:00
stitchMesh ENH: remove reliance on the Xfer class (issue #639) 2018-03-05 13:28:53 +01:00
subsetMesh ENH: new bitSet class and improved PackedList class (closes #751) 2018-03-07 11:21:48 +01:00
topoSet ENH: simplify method names for reading argList options and arguments 2018-01-08 15:35:18 +01:00
transformPoints ENH: change wordRes to be a List of wordRe instead of a wrapper (issue #259) 2018-02-21 10:05:30 +01:00
zipUpMesh ENH: (further) Doxygen documentation updates for module support 2016-06-27 20:34:19 +01:00