41 void Foam::zoneToFace::combine(topoSet&
set,
const bool add)
const 43 bool hasMatched =
false;
45 forAll(mesh_.faceZones(), i)
47 const faceZone& zone = mesh_.faceZones()[i];
49 if (zoneName_.match(zone.name()))
51 const labelList& faceLabels = mesh_.faceZones()[i];
53 Info<<
" Found matching zone " << zone.name()
54 <<
" with " <<
returnReduce(faceLabels.size(), sumOp<label>())
62 if (faceLabels[i] < mesh_.nFaces())
64 addOrDelete(
set, faceLabels[i], add);
73 <<
"Cannot find any faceZone named " << zoneName_ <<
endl 74 <<
"Valid names are " << mesh_.faceZones().names() <<
endl;
124 Info<<
" Adding all faces of faceZone " << zoneName_ <<
" ..." 131 Info<<
" Removing all faces of faceZone " << 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 ~zoneToFace()
Destructor.
zoneToFace(const polyMesh &mesh, const word &zoneName)
Construct from components.
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.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
#define WarningInFunction
Report a warning using Foam::Warning.
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.