41 void Foam::patchToFace::combine(topoSet& set,
const bool add)
const
45 List<wordRe>(1, patchName_),
56 Info<<
" Found matching patch " << pp.name()
62 label facei = pp.start();
63 facei < pp.start() + pp.size();
74 <<
"Cannot find any patch named " << patchName_ <<
endl
102 dict.dictName() ==
"sourceInfo"
103 ?
dict.lookupBackwardsCompatible({
"patch",
"name"})
125 Info<<
" Adding all faces of patch " << patchName_ <<
" ..." <<
endl;
131 Info<<
" Removing all faces of patch " << patchName_ <<
" ..."
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Macros for easy insertion into run-time selection tables.
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.
A topoSetSource to select faces based on usage in patches.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
virtual ~patchToFace()
Destructor.
patchToFace(const polyMesh &mesh, const word &patchName)
Construct from components.
labelHashSet patchSet(const UList< wordRe > &patchNames, const bool warnNotFound=true, const bool usePatchGroups=true) const
Return the set of patch indices corresponding to the given names.
wordList names() const
Return the list of patch names.
Mesh consisting of general polyhedral cells.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
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).
A class for handling words, derived from string.
#define WarningInFunction
Report a warning using Foam::Warning.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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)
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)