48 void Foam::cellToPoint::combine(topoSet& set,
const bool add)
const
51 cellSet loadedSet(
mesh_, setName_);
56 const label celli = iter.key();
94 setName_(
dict.lookup(
"set")),
95 option_(cellActionNames_.
read(
dict.lookup(
"option")))
115 Info<<
" Adding from " << setName_ <<
" ..." <<
endl;
121 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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
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.
defineTypeNameAndDebug(combustionModel, 0)
void add(LagrangianPatchField< typename typeOfSum< Type1, Type2 >::type > &f, const LagrangianPatchField< Type1 > &f1, const LagrangianPatchField< Type2 > &f2)
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)