Go to the documentation of this file.
35 #ifndef polyBoundaryMesh_H
36 #define polyBoundaryMesh_H
54 Ostream&
operator<<(Ostream&,
const polyBoundaryMesh&);
167 const bool usePatchGroups =
true
198 const bool warnNotFound =
true,
199 const bool usePatchGroups =
true
const HashTable< labelList, word > & groupPatchIDs() const
Per patch group the patch indices.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
static word groupName(Name name, const word &group)
label findPatchID(const word &patchName) const
Find patch index given a name.
void matchGroups(const labelUList &patchIDs, wordList &groups, labelHashSet &nonGroupPatches) const
Match the patches to groups. Returns all the (fully matched) groups.
A class for handling words, derived from string.
wordList physicalTypes() const
Return a list of physical types.
const polyMesh & mesh_
Reference to mesh.
autoPtr< HashTable< labelList, word > > groupPatchIDsPtr_
void movePoints(const pointField &)
Correct polyBoundaryMesh after moving points.
bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
Write using given format, version and form uncompression.
compressionType
Enumeration for the format of data in the stream.
void clearGeom()
Clear geometry at this level and at patches.
autoPtr< List< labelPairList > > neighbourEdgesPtr_
Edges of neighbouring patches.
void reorder(const labelUList &, const bool validBoundary)
Reorders patches. Ordering does not have to be done in.
void clearAddressing()
Clear addressing at this level and at patches.
label findIndex(const keyType &) const
Return patch index for the first match, return -1 if not found.
wordList types() const
Return a list of patch types.
Mesh consisting of general polyhedral cells.
wordList names() const
Return a list of patch names.
void setGroup(const word &groupName, const labelList &patchIDs)
Set/add group with patches.
A class for handling keywords in dictionaries.
const labelList & patchID() const
Per boundary face label the patch index.
bool checkParallelSync(const bool report=false) const
Check whether all procs have all patches and in same order. Return.
const polyPatch & operator[](const word &) const
Return const reference to polyPatch by name.
labelList findIndices(const keyType &, const bool usePatchGroups=true) const
Return patch indices for all matches. Optionally matches patchGroups.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
~polyBoundaryMesh()
Destructor.
A patch is a list of labels that address the faces in the global face list.
bool checkDefinition(const bool report=false) const
Check boundary definition. Return true if in error.
labelHashSet findPatchIDs() const
Find patch indices for a given polyPatch type.
TypeName("polyBoundaryMesh")
Runtime type information.
label whichPatch(const label faceIndex) const
Return patch index for a given face label.
const polyMesh & mesh() const
Return the mesh reference.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
wordList patchNames(nPatches)
Ostream & operator<<(Ostream &, const edgeMesh &)
void calcGeometry()
Calculate the geometry for the patches (transformation tensors etc.)
autoPtr< labelList > patchIDPtr_
An STL-conforming hash table.
void updateMesh()
Correct polyBoundaryMesh after topology update.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
bool writeData(Ostream &) const
writeData member function required by regIOobject
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
const List< labelPairList > & neighbourEdges() const
Per patch the edges on the neighbouring patch. Is for every external.
polyBoundaryMesh(const polyBoundaryMesh &)
Disallow construct as copy.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
label size() const
Return the number of elements in the PtrList.
friend Ostream & operator(Ostream &, const PtrList< T > &)
friend Ostream & operator<<(Ostream &, const polyBoundaryMesh &)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
labelHashSet patchSet(const UList< wordRe > &patchNames, const bool warnNotFound=true, const bool usePatchGroups=true) const
Return the set of patch IDs corresponding to the given names.
void operator=(const polyBoundaryMesh &)
Disallow assignment.
streamFormat
Enumeration for the format of data in the stream.