35 #ifndef polyBoundaryMesh_H 36 #define polyBoundaryMesh_H 54 Ostream&
operator<<(Ostream&,
const polyBoundaryMesh&);
169 const bool usePatchGroups =
true 203 const bool warnNotFound =
true,
204 const bool usePatchGroups =
true 242 const bool validBoundary
254 const bool write =
true
bool writeData(Ostream &) const
writeData member function required by regIOobject
bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp, const bool write=true) const
Write using given format, version and form uncompression.
void renamePatches(const wordUList &newNames, const bool validBoundary)
Rename the patches. If validBoundary is set this calls topoChange()
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const labelList & patchID() const
Per boundary face label the patch index.
void reorderPatches(const labelUList &newToOld, const bool validBoundary)
Reorders the patches. Ordering does not have to be done in.
label findPatchID(const word &patchName) const
Find patch index given a name.
void clearGeom()
Clear geometry at this level and at patches.
wordList types() const
Return a list of patch types.
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.
friend Ostream & operator(Ostream &, const UPtrList< T > &)
Write UPtrList to Ostream.
const polyPatch & operator[](const word &) const
Return const reference to polyPatch by name.
void matchGroups(const labelUList &patchIDs, wordList &groups, labelHashSet &nonGroupPatches) const
Match the patches to groups. Returns all the (fully matched) groups.
void topoChange()
Correct polyBoundaryMesh after topology update.
~polyBoundaryMesh()
Destructor.
void movePoints(const pointField &)
Correct polyBoundaryMesh after moving points.
A class for handling words, derived from string.
static word groupName(Name name, const word &group)
bool checkDefinition(const bool report=false) const
Check boundary definition. Return true if in error.
wordList names() const
Return a list of patch names.
wordList patchNames(nPatches)
streamFormat
Enumeration for the format of data in the stream.
const polyMesh & mesh() const
Return the mesh reference.
wordList physicalTypes() const
Return a list of physical types.
An STL-conforming hash table.
const List< labelPairList > & nbrEdges() const
Per patch the edges on the neighbouring patch. Is for every external.
A wordRe is a word, but can also have a regular expression for matching words.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
compressionType
Enumeration for the format of data in the stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool checkParallelSync(const bool report=false) const
Check whether all procs have all patches and in same order. Return.
TypeName("polyBoundaryMesh")
Runtime type information.
const labelList & patchFaceID() const
Per boundary face label the patch face index.
label size() const
Return the number of elements in the UPtrList.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
void clearAddressing()
Clear addressing at this level and at patches.
Ostream & operator<<(Ostream &, const ensightPart &)
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
label findIndex(const wordRe &) const
Return patch index for the first match, return -1 if not found.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh consisting of general polyhedral cells.
virtual bool write(const bool write=true) const
Write using setting from DB.
friend Ostream & operator<<(Ostream &, const polyBoundaryMesh &)
A patch is a list of labels that address the faces in the global face list.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
label whichPatch(const label faceIndex) const
Return patch index for a given face label.
labelList findIndices(const wordRe &, const bool usePatchGroups=true) const
Return patch indices for all matches. Optionally matches patchGroups.
labelHashSet findPatchIDs() const
Find patch indices for a given polyPatch type.
void setGroup(const word &groupName, const labelList &patchIDs)
Set/add group with patches.
const HashTable< labelList, word > & groupPatchIDs() const
Per patch group the patch indices.