53 cellToPoint::typeName,
54 "\n Usage: cellToPoint <cellSet> all\n\n" 55 " Select all points of cells in the cellSet\n\n" 59 Foam::cellToPoint::cellActionNames_;
64 void Foam::cellToPoint::combine(
topoSet&
set,
const bool add)
const 67 cellSet loadedSet(mesh_, setName_);
72 const label celli = iter.key();
73 const labelList& cFaces = mesh_.cells()[celli];
77 const face&
f = mesh_.faces()[cFaces[cFacei]];
81 addOrDelete(
set, f[fp], add);
110 setName_(dict.
lookup(
"set")),
111 option_(cellActionNames_.read(dict.
lookup(
"option")))
122 setName_(checkIs(is)),
123 option_(cellActionNames_.read(checkIs(is)))
143 Info<<
" Adding from " << setName_ <<
" ..." <<
endl;
149 Info<<
" Removing from " << setName_ <<
" ..." <<
endl;
#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.
A face is a list of labels corresponding to mesh vertices.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
A list of keyword definitions, which are a keyword followed by any number of values (e...
cellAction
Enumeration defining the valid options.
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.
A class for handling words, derived from string.
setAction
Enumeration defining the valid actions.
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 ~cellToPoint()
Destructor.
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
Class with constructor to add usage string to table.
A collection of cell labels.
Mesh consisting of general polyhedral cells.
cellToPoint(const polyMesh &mesh, const word &setName, const cellAction option)
Construct from components.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.