#include <CellElementRegionSelector.hpp>
CellElementRegionSelector allows a CellElementRegion to safely select cell-blocks according to the user input. It handles all user input checks and throws an exception in the event of inconsistency.
Definition at line 33 of file CellElementRegionSelector.hpp.
◆ CellElementRegionSelector()
Construct a new CellElementRegionSelector.
- Parameters
-
cellBlocks | a Group containing all the available cell-blocks. |
cellBlocksRegion | A map of the cellblocks name lists for each region attributes value. |
◆ buildCellBlocksSelection()
Select the mesh cell-blocks for the specified region following the user inputs.
- Exceptions
-
an | InputError if the user setting are inconsistant. |
- Parameters
-
region | the region for which we want to select the cell-blocks. |
- Returns
- the selected cell-blocks names.
◆ checkSelectionConsistency()
void geos::CellElementRegionSelector::checkSelectionConsistency |
( |
| ) |
const |
- Exceptions
-
An | InputError if region cell-blocks selections is inconsistent:
- cell-block is in more than one region,
- orphan cell-block
|
- Todo:
- For now, multiple regions per cell is not supported (ElementRegionManager::getCellBlockToSubRegionMap()). We could refactor the CellElementRegion & Mesh classes so regions are mapped to cell-blocks IN the mesh (and potentially to multiple regions per cell). So, for external meshes, the cell-blocks would no longer be exposed to the final user.
The documentation for this class was generated from the following file: