52 Foam::pointToCell::pointActionNames_;
57 void Foam::pointToCell::combine(topoSet& set,
const bool add)
const
60 pointSet loadedSet(
mesh_, setName_);
68 const label pointi = iter.key();
77 else if (option_ ==
EDGE)
82 const face&
f = faces[facei];
86 if (loadedSet.found(
f[fp]) && loadedSet.found(
f.nextLabel(fp)))
122 setName_(
dict.lookup(
"set")),
123 option_(pointActionNames_.
read(
dict.lookup(
"option")))
143 Info<<
" Adding cells according to pointSet " << setName_
150 Info<<
" Removing cells according to pointSet " << setName_
#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 list of keyword definitions, which are a keyword followed by any number of values (e....
A topoSetSource to select cells based on usage of points.
pointAction
Enumeration defining the valid options.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
pointToCell(const polyMesh &mesh, const word &setName, const pointAction option)
Construct from components.
virtual ~pointToCell()
Destructor.
Mesh consisting of general polyhedral cells.
virtual const faceList & faces() const
Return raw faces.
virtual const labelList & faceOwner() const
Return face owner.
virtual const labelList & faceNeighbour() const
Return face neighbour.
const labelListList & pointCells() const
bool isInternalFace(const label faceIndex) const
Return true if given face label is internal to the mesh.
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.
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)
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)