41 void Foam::zoneToFace::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(faceLabels.size(), sumOp<label>())
73 <<
"Cannot find any faceZone named " << zoneName_ <<
endl
95 const dictionary&
dict
101 dict.dictName() ==
"sourceInfo"
102 ?
dict.lookupBackwardsCompatible({
"zone",
"name"})
103 :
dict.lookup(
"zone")
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.
Macros for easy insertion into run-time selection tables.
wordList toc() const
Return the table of contents.
const faceZoneList & faceZones() const
Return face zones.
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.
bool match(const std::string &, bool literalMatch=false) const
Smart match as regular expression or as a string.
virtual ~zoneToFace()
Destructor.
zoneToFace(const polyMesh &mesh, const word &zoneName)
Construct from components.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define WarningInFunction
Report a warning using Foam::Warning.
List< label > labelList
A List of labels.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
void add(GeometricField< typename typeOfSum< Type1, Type2 >::type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type1, GeoMesh, PrimitiveField2 > &gf1, const GeometricField< Type2, GeoMesh, PrimitiveField3 > &gf2)
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)
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)