54 pointToCell::typeName,
55 "\n Usage: pointToCell <pointSet> any|edge\n\n" 56 " Select all cells with any point ('any') or any edge ('edge')" 57 " in the pointSet\n\n" 61 Foam::pointToCell::pointActionNames_;
66 void Foam::pointToCell::combine(
topoSet&
set,
const bool add)
const 77 const label pointi = iter.key();
78 const labelList& pCells = mesh_.pointCells()[pointi];
82 addOrDelete(
set, pCells[pCelli], add);
86 else if (option_ == EDGE)
88 const faceList& faces = mesh_.faces();
91 const face&
f = faces[facei];
97 addOrDelete(
set, mesh_.faceOwner()[facei],
add);
98 if (mesh_.isInternalFace(facei))
100 addOrDelete(
set, mesh_.faceNeighbour()[facei],
add);
131 setName_(dict.
lookup(
"set")),
132 option_(pointActionNames_.read(dict.
lookup(
"option")))
143 setName_(checkIs(is)),
144 option_(pointActionNames_.read(checkIs(is)))
164 Info<<
" Adding cells according to pointSet " << setName_
171 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.
label nextLabel(const label i) const
Next vertex on face.
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.
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.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
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).
Class with constructor to add usage string to table.
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.