41 void Foam::patchToFace::combine(topoSet&
set,
const bool add)
const 45 List<wordRe>(1, patchName_),
52 label patchi = iter.key();
54 const polyPatch& pp = mesh_.boundaryMesh()[
patchi];
56 Info<<
" Found matching patch " << pp.name()
62 label facei = pp.start();
63 facei < pp.start() + pp.size();
67 addOrDelete(
set, facei, add);
74 <<
"Cannot find any patch named " << patchName_ <<
endl 75 <<
"Valid names are " << mesh_.boundaryMesh().names() <<
endl;
125 Info<<
" Adding all faces of patch " << patchName_ <<
" ..." <<
endl;
131 Info<<
" Removing all faces of patch " << patchName_ <<
" ..." FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
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)
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.
virtual ~patchToFace()
Destructor.
A class for handling words, derived from string.
setAction
Enumeration defining the valid actions.
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.
patchToFace(const polyMesh &mesh, const word &patchName)
Construct from components.
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.