Go to the documentation of this file.
61 labelToFace::typeName,
62 "\n Usage: labelToFace (i0 i1 .. in)\n\n"
63 " Select faces by label\n\n"
87 labels_(std::move(labels))
114 check(labels_,
mesh.nFaces());
126 if (action == topoSetSource::ADD || action == topoSetSource::NEW)
130 Info<<
" Adding faces mentioned in dictionary"
134 addOrDelete(
set, labels_,
true);
136 else if (action == topoSetSource::SUBTRACT)
140 Info<<
" Removing faces mentioned dictionary"
144 addOrDelete(
set, labels_,
false);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
Class with constructor to add usage string to table.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
The topoSetFaceSource is a intermediate class for handling topoSet sources for selecting faces.
Mesh consisting of general polyhedral cells.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
messageStream Info
Information stream (uses stdout - output is on the master only)
addNamedToRunTimeSelectionTable(topoSetCellSource, badQualityToCell, word, badQuality)
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
General set of labels of mesh quantity (points, cells, faces).
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
defineTypeNameAndDebug(combustionModel, 0)
A topoSetFaceSource to select faces based on explicitly given face labels.
labelToFace(const polyMesh &mesh, const labelList &labels)
Construct from components, copying labels.