General run-time selected cell set selection class for polyMesh. More...


Public Types | |
| enum class | selectionTypes { points , cellSet , cellZone , all } |
| Enumeration for selection mode types. More... | |
Public Member Functions | |
| polyCellSet (const polyMesh &mesh) | |
| Construct from mesh. Will select all. More... | |
| polyCellSet (const polyMesh &mesh, const dictionary &dict) | |
| Construct from mesh and dictionary. More... | |
| ~polyCellSet () | |
| Destructor. More... | |
| const selectionTypes & | selectionType () const |
| Return const access to the cell selection type. More... | |
| const word & | cellSetName () const |
| Return const access to the name of cellSet. More... | |
| labelUList | cells () const |
| Return const access to the cell set. More... | |
| label | nCells () const |
| Return the number of cells in the set. More... | |
| bool | all () const |
| Return true if the set comprises all the cells. More... | |
| label | celli (const label i) const |
| Return the cell index corresponding to the cell set index. More... | |
| void | movePoints () |
| Update for mesh motion. More... | |
| void | topoChange (const polyTopoChangeMap &) |
| Update topology using the given map. More... | |
| void | mapMesh (const polyMeshMap &) |
| Update from another mesh using the given map. More... | |
| void | distribute (const polyDistributionMap &) |
| Redistribute or update using the given distribution map. More... | |
| bool | read (const dictionary &dict) |
| Read coefficients dictionary. More... | |
Static Public Attributes | |
| static const NamedEnum< selectionTypes, 4 > | selectionTypeNames |
| Word list of selection type names. More... | |
General run-time selected cell set selection class for polyMesh.
Currently supports cell selection from:
// Select all cells
select all;
// Select the cells within the given cellSet
select cellSet; // Optional
cellSet rotor;
// Select the cells within the given cellZone
select cellZone; // Optional
cellZone rotor;
// Select the cells containing a list of points
select points; // Optional
points
(
(2.25 0.5 0)
(2.75 0.5 0)
);
Definition at line 81 of file polyCellSet.H.
|
strong |
Enumeration for selection mode types.
| Enumerator | |
|---|---|
| points | |
| cellSet | |
| cellZone | |
| all | |
Definition at line 88 of file polyCellSet.H.
| polyCellSet | ( | const polyMesh & | mesh | ) |
Construct from mesh. Will select all.
Definition at line 148 of file polyCellSet.C.
| polyCellSet | ( | const polyMesh & | mesh, |
| const dictionary & | dict | ||
| ) |
Construct from mesh and dictionary.
Definition at line 156 of file polyCellSet.C.
References dict, and polyCellSet::read().

| ~polyCellSet | ( | ) |
Destructor.
Definition at line 168 of file polyCellSet.C.
|
inline |
Return const access to the cell selection type.
Definition at line 31 of file polyCellSetI.H.
Referenced by solidBodyMotionSolver::solidBodyMotionSolver().

|
inline |
Return const access to the name of cellSet.
Definition at line 37 of file polyCellSetI.H.
|
inline |
Return const access to the cell set.
Definition at line 43 of file polyCellSetI.H.
References Foam::identityMap().
Referenced by fvSpecificSource::cells().


|
inline |
Return the number of cells in the set.
Definition at line 60 of file polyCellSetI.H.
References cells, and List< T >::size().

|
inline |
Return true if the set comprises all the cells.
Definition at line 73 of file polyCellSetI.H.
|
inline |
Return the cell index corresponding to the cell set index.
Definition at line 79 of file polyCellSetI.H.
| void movePoints | ( | ) |
Update for mesh motion.
Definition at line 174 of file polyCellSet.C.
References points.
Referenced by fvCellSet::movePoints().

| void topoChange | ( | const polyTopoChangeMap & | ) |
Update topology using the given map.
Definition at line 183 of file polyCellSet.C.
Referenced by fvCellSet::topoChange().

| void mapMesh | ( | const polyMeshMap & | ) |
Update from another mesh using the given map.
Definition at line 189 of file polyCellSet.C.
Referenced by fvCellSet::mapMesh().

| void distribute | ( | const polyDistributionMap & | ) |
Redistribute or update using the given distribution map.
Definition at line 195 of file polyCellSet.C.
Referenced by fvCellSet::distribute().

| bool read | ( | const dictionary & | dict | ) |
Read coefficients dictionary.
Definition at line 201 of file polyCellSet.C.
References dict, Foam::exit(), Foam::FatalError, FatalErrorInFunction, dictionary::found(), dictionary::lookup(), dictionary::lookupBackwardsCompatible(), Foam::nl, and points.
Referenced by polyCellSet::polyCellSet(), and fvCellSet::read().


|
static |
Word list of selection type names.
Definition at line 97 of file polyCellSet.H.