Go to the documentation of this file.
55 pointToCell::typeName,
56 "\n Usage: pointToCell <pointSet> any|edge\n\n"
57 " Select all cells with any point ('any') or any edge ('edge')"
58 " in the pointSet\n\n"
78 const label pointI = iter.key();
92 const face&
f = faces[faceI];
96 if (loadedSet.
found(
f[fp]) && loadedSet.
found(
f.nextLabel(fp)))
135 option_(pointActionNames_.read(
dict.
lookup(
"option")))
147 setName_(checkIs(is)),
148 option_(pointActionNames_.read(checkIs(is)))
168 Info<<
" Adding cells according to pointSet " << setName_
175 Info<<
" Removing cells according to pointSet " << setName_
virtual ~pointToCell()
Destructor.
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
AccessType combine(const List< T > &, AccessOp aop=accessOp< T >())
Combines sublists into one big list.
Class with constructor to add usage string to table.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
pointAction
Enumeration defining the valid options.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
Mesh consisting of general polyhedral cells.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
static const NamedEnum< pointAction, 2 > pointActionNames_
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual const labelList & faceOwner() const
Return face owner.
General set of labels of mesh quantity (points, cells, faces).
A list of keyword definitions, which are a keyword followed by any number of values (e....
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Macros for easy insertion into run-time selection tables.
bool found(const Key &) const
Return true if hashedEntry is found in table.
Base class of a source for a topoSet.
virtual const faceList & faces() const
Return raw faces.
void combine(topoSet &set, const bool add) const
Depending on point-to-cell option add to or delete from cellSet.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool isInternalFace(const label faceIndex) const
Return true if given face label is internal to the mesh.
const labelListList & pointCells() const
A face is a list of labels corresponding to mesh vertices.
static addToUsageTable usage_
Add usage string.
pointAction option_
Option.
defineTypeNameAndDebug(combustionModel, 0)
virtual const labelList & faceNeighbour() const
Return face neighbour.
pointToCell(const polyMesh &mesh, const word &setName, const pointAction option)
Construct from components.
void addOrDelete(topoSet &set, const label cellI, const bool) const
Add (if bool) cellI to set or delete cellI from set.
Initialise the NamedEnum HashTable from the static list of names.
word setName_
Name of set to use.