41 void Foam::zoneToCell::combine(topoSet&
set,
const bool add)
const 43 bool hasMatched =
false;
45 forAll(mesh_.cellZones(), i)
47 const cellZone& zone = mesh_.cellZones()[i];
49 if (zoneName_.match(zone.name()))
51 const labelList& cellLabels = mesh_.cellZones()[i];
53 Info<<
" Found matching zone " << zone.name()
54 <<
" with " <<
returnReduce(cellLabels.size(), sumOp<label>())
62 if (cellLabels[i] < mesh_.nCells())
64 addOrDelete(
set, cellLabels[i], add);
73 <<
"Cannot find any cellZone named " << zoneName_ <<
endl 74 <<
"Valid names are " << mesh_.cellZones().names() <<
endl;
124 Info<<
" Adding all cells of cellZone " << zoneName_ <<
" ..." 131 Info<<
" Removing all cells of cellZone " << zoneName_ <<
" ..."
#define forAll(list, i)
Loop across all elements in list.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual ~zoneToCell()
Destructor.
Macros for easy insertion into run-time selection tables.
Base class of a source for a topoSet.
const word dictName() const
Return the local dictionary name (final part of scoped name)
A class for handling words, derived from string.
setAction
Enumeration defining the valid actions.
List< label > labelList
A List of labels.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
#define WarningInFunction
Report a warning using Foam::Warning.
zoneToCell(const polyMesh &mesh, const word &zoneName)
Construct from components.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
Mesh consisting of general polyhedral cells.
ITstream & lookupBackwardsCompatible(const wordList &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream, trying a list of keywords.
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.