56 void Foam::cellToPoint::combine(topoSet& set,
const bool add)
const
59 cellSet loadedSet(
mesh_, setName_);
64 const label celli = iter.key();
102 setName_(
dict.lookup(
"set")),
103 option_(cellActionNames_.
read(
dict.lookup(
"option")))
123 Info<<
" Adding from " << setName_ <<
" ..." <<
endl;
129 Info<<
" Removing from " << setName_ <<
" ..." <<
endl;
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Macros for easy insertion into run-time selection tables.
Initialise the NamedEnum HashTable from the static list of names.
A topoSetSource to select points based on usage in cells.
static const NamedEnum< cellAction, 1 > cellActionNames_
Names of the valid options.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
cellToPoint(const polyMesh &mesh, const word &setName, const cellAction option)
Construct from components.
virtual ~cellToPoint()
Destructor.
cellAction
Enumeration defining the valid options.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh consisting of general polyhedral cells.
virtual const faceList & faces() const
Return raw faces.
const cellList & cells() const
Base class of a source for a topoSet.
void addOrDelete(topoSet &set, const label celli, const bool) const
Add (if bool) celli to set or delete celli from set.
setAction
Enumeration defining the valid actions.
General set of labels of mesh quantity (points, cells, faces).
A class for handling words, derived from string.
bool read(const char *, int32_t &)
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
defineTypeNameAndDebug(combustionModel, 0)
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)