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_
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Ostream & endl(Ostream &os)
Add newline and flush stream.
Initialise the NamedEnum HashTable from the static list of names.
AccessType combine(const List< T > &, AccessOp aop=accessOp< T >())
Combines sublists into one big list.
Macros for easy insertion into run-time selection tables.
Base class of a source for a topoSet.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
A class for handling words, derived from string.
setAction
Enumeration defining the valid actions.
pointAction
Enumeration defining the valid options.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
bool found(const Key &) const
Return true if hashedEntry is found in table.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
Class with constructor to add usage string to table.
label nextLabel(const label i) const
Next vertex on face.
Mesh consisting of general polyhedral cells.
pointToCell(const polyMesh &mesh, const word &setName, const pointAction option)
Construct from components.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.