Go to the documentation of this file.
54 cellToPoint::typeName,
55 "\n Usage: cellToPoint <cellSet> all\n\n"
56 " Select all points of cells in the cellSet\n\n"
73 const label cellI = iter.key();
114 option_(cellActionNames_.read(
dict.
lookup(
"option")))
126 setName_(checkIs(is)),
127 option_(cellActionNames_.read(checkIs(is)))
147 Info<<
" Adding from " << setName_ <<
" ..." <<
endl;
153 Info<<
" Removing from " << setName_ <<
" ..." <<
endl;
void combine(topoSet &set, const bool add) const
Depending on face to cell option add to or delete from cellSet.
A class for handling words, derived from string.
static const NamedEnum< cellAction, 1 > cellActionNames_
#define forAll(list, i)
Loop across all elements in list.
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.
const cellList & cells() const
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
static addToUsageTable usage_
Add usage string.
Mesh consisting of general polyhedral cells.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
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)....
cellAction
Enumeration defining the valid options.
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.
Base class of a source for a topoSet.
A collection of cell labels.
virtual const faceList & faces() const
Return raw faces.
word setName_
Name of set to use.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual ~cellToPoint()
Destructor.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
cellToPoint(const polyMesh &mesh, const word &setName, const cellAction option)
Construct from components.
A face is a list of labels corresponding to mesh vertices.
defineTypeNameAndDebug(combustionModel, 0)
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.