52 Foam::pointToCell::pointActionNames_;
57 void Foam::pointToCell::combine(
topoSet&
set,
const bool add)
const 68 const label pointi = iter.key();
69 const labelList& pCells = mesh_.pointCells()[pointi];
73 addOrDelete(
set, pCells[pCelli], add);
77 else if (option_ == EDGE)
79 const faceList& faces = mesh_.faces();
82 const face&
f = faces[facei];
88 addOrDelete(
set, mesh_.faceOwner()[facei],
add);
89 if (mesh_.isInternalFace(facei))
91 addOrDelete(
set, mesh_.faceNeighbour()[facei],
add);
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.
virtual ~pointToCell()
Destructor.
A face is a list of labels corresponding to mesh vertices.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
label nextLabel(const label i) const
Next vertex on face.
Initialise the NamedEnum HashTable from the static list of names.
Macros for easy insertion into run-time selection tables.
Base class of a source for a topoSet.
bool found(const Key &) const
Return true if hashedEntry is found in table.
A class for handling words, derived from string.
setAction
Enumeration defining the valid actions.
pointAction
Enumeration defining the valid options.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
Mesh consisting of general polyhedral cells.
pointToCell(const polyMesh &mesh, const word &setName, const pointAction option)
Construct from components.
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.