41 void Foam::zoneToCell::combine(topoSet& set,
const bool add)
const
43 bool hasMatched =
false;
49 if (zoneName_.
match(zone.name()))
53 Info<<
" Found matching zone " << zone.name()
54 <<
" with " <<
returnReduce(cellLabels.size(), sumOp<label>())
73 <<
"Cannot find any cellZone named " << zoneName_ <<
endl
101 dict.dictName() ==
"sourceInfo"
102 ?
dict.lookupBackwardsCompatible({
"zone",
"name"})
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.
Macros for easy insertion into run-time selection tables.
wordList toc() const
Return the table of contents.
A list of keyword definitions, which are a keyword followed by any number of values (e....
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Mesh consisting of general polyhedral cells.
const cellZoneList & cellZones() const
Return cell zones.
Base class of a source for a topoSet.
void addOrDelete(topoSet &set, const label celli, const bool) const
Add (if bool) celli to set or delete celli from set.
setAction
Enumeration defining the valid actions.
General set of labels of mesh quantity (points, cells, faces).
bool match(const std::string &, bool literalMatch=false) const
Smart match as regular expression or as a string.
A class for handling words, derived from string.
A topoSetSource to select faces based on cellZone.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
virtual ~zoneToCell()
Destructor.
zoneToCell(const polyMesh &mesh, const word &zoneName)
Construct from components.
#define WarningInFunction
Report a warning using Foam::Warning.
List< label > labelList
A List of labels.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
Ostream & endl(Ostream &os)
Add newline and flush stream.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
defineTypeNameAndDebug(combustionModel, 0)
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)