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" 62 Foam::pointToCell::pointActionNames_;
67 void Foam::pointToCell::combine(
topoSet&
set,
const bool add)
const 78 const label pointI = iter.key();
79 const labelList& pCells = mesh_.pointCells()[pointI];
83 addOrDelete(
set, pCells[pCellI], add);
87 else if (option_ == EDGE)
89 const faceList& faces = mesh_.faces();
92 const face&
f = faces[faceI];
98 addOrDelete(
set, mesh_.faceOwner()[faceI],
add);
99 if (mesh_.isInternalFace(faceI))
101 addOrDelete(
set, mesh_.faceNeighbour()[faceI],
add);
134 setName_(dict.
lookup(
"set")),
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_
General set of labels of mesh quantity (points, cells, faces).
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label nextLabel(const label i) const
Next vertex on face.
A list of keyword definitions, which are a keyword followed by any number of values (e...
AccessType combine(const List< T > &, AccessOp aop=accessOp< T >())
Combines sublists into one big list.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
A face is a list of labels corresponding to mesh vertices.
Ostream & endl(Ostream &os)
Add newline and flush stream.
pointAction
Enumeration defining the valid options.
setAction
Enumeration defining the valid actions.
Macros for easy insertion into run-time selection tables.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
Initialise the NamedEnum HashTable from the static list of names.
pointToCell(const polyMesh &mesh, const word &setName, const pointAction option)
Construct from components.
Mesh consisting of general polyhedral cells.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Base class of a source for a topoSet.
Class with constructor to add usage string to table.
virtual ~pointToCell()
Destructor.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
bool found(const Key &) const
Return true if hashedEntry is found in table.
defineTypeNameAndDebug(combustionModel, 0)