42 void Foam::zoneToPoint::combine(topoSet&
set,
const bool add)
const 44 bool hasMatched =
false;
46 forAll(mesh_.pointZones(), i)
48 const pointZone& zone = mesh_.pointZones()[i];
50 if (zoneName_.match(zone.name()))
52 const labelList& pointLabels = mesh_.pointZones()[i];
54 Info<<
" Found matching zone " << zone.name()
55 <<
" with " <<
returnReduce(pointLabels.size(), sumOp<label>())
56 <<
" points." <<
endl;
63 if (pointLabels[i] < mesh_.nPoints())
65 addOrDelete(
set, pointLabels[i], add);
74 <<
"Cannot find any pointZone named " << zoneName_ <<
endl 75 <<
"Valid names are " << mesh_.pointZones().names() <<
endl;
125 Info<<
" Adding all points of pointZone " << zoneName_ <<
" ..." 132 Info<<
" Removing all points of pointZone " << 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.
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)
virtual ~zoneToPoint()
Destructor.
A class for handling words, derived from string.
setAction
Enumeration defining the valid actions.
List< label > labelList
A List of labels.
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.
zoneToPoint(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)
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
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.