51 Foam::cellToPoint::cellActionNames_;
56 void Foam::cellToPoint::combine(
topoSet&
set,
const bool add)
const 59 cellSet loadedSet(mesh_, setName_);
64 const label celli = iter.key();
65 const labelList& cFaces = mesh_.cells()[celli];
69 const face&
f = mesh_.faces()[cFaces[cFacei]];
73 addOrDelete(
set, f[fp], add);
102 setName_(dict.
lookup(
"set")),
103 option_(cellActionNames_.read(dict.
lookup(
"option")))
123 Info<<
" Adding from " << setName_ <<
" ..." <<
endl;
129 Info<<
" Removing from " << setName_ <<
" ..." <<
endl;
#define forAll(list, i)
Loop across all elements in list.
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...
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
cellAction
Enumeration defining the valid options.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Initialise the NamedEnum HashTable from the static list of names.
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.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
virtual ~cellToPoint()
Destructor.
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
A collection of cell labels.
Mesh consisting of general polyhedral cells.
cellToPoint(const polyMesh &mesh, const word &setName, const cellAction option)
Construct from components.
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.