Go to the documentation of this file.
66 #ifndef polyTopoChange_H
67 #define polyTopoChange_H
88 class polyBoundaryMesh;
218 static void renumberKey
232 static void renumberReverseMap
239 static void renumberCompact
261 static void getMergeSets
269 bool hasValidPoints(
const face&
f)
const;
288 const label nActiveFaces,
296 const label nActiveFaces,
310 const label nActiveFaces,
320 void reorderCompactFaces
333 const bool orderCells,
334 const bool orderPoints,
335 label& nInternalPoints,
345 const bool internalFacesOnly
349 void calcPatchPointMap
356 void calcFaceInflationMaps
364 void calcCellInflationMaps
382 void calcFaceZonePointMap
393 void reorderCoupledFaces
395 const bool syncParallel,
402 void compactAndReorder
405 const bool syncParallel,
406 const bool orderCells,
407 const bool orderPoints,
408 label& nInternalPoints,
470 return faceNeighbour_;
524 const label masterPointID,
542 void removePoint(
const label pointi,
const label mergePointi);
551 const label masterPointID,
552 const label masterEdgeID,
553 const label masterFaceID,
554 const bool flipFaceFlux,
567 const bool flipFaceFlux,
574 void removeFace(
const label facei,
const label mergeFacei);
579 const label masterPointID,
580 const label masterEdgeID,
581 const label masterFaceID,
582 const label masterCellID,
590 void removeCell(
const label celli,
const label mergeCelli);
615 const bool syncParallel =
true,
616 const bool orderCells =
false,
617 const bool orderPoints =
false
628 const bool syncParallel =
true,
629 const bool orderCells =
false,
630 const bool orderPoints =
false
label addCell(const label masterPointID, const label masterEdgeID, const label masterFaceID, const label masterCellID, const label zoneID)
Add cell. Return new cell label.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void clear()
Clear all storage.
void addMesh(const polyMesh &mesh, const labelUList &patchMap, const labelUList &pointZoneMap, const labelUList &faceZoneMap, const labelUList &cellZoneMap)
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
autoPtr< mapPolyMesh > changeMesh(polyMesh &mesh, const bool inflate, const bool syncParallel=true, const bool orderCells=false, const bool orderPoints=false)
Inplace changes mesh without change of patches.
void removePoint(const label pointi, const label mergePointi)
Remove/merge point.
void removeCell(const label celli, const label mergeCelli)
Remove/merge cell.
const DynamicList< point > & points() const
Points. Shrunk after constructing mesh (or calling of compact())
A packed storage unstructured matrix of objects of type <T> using an offset table for access.
label addFace(const face &f, const label own, const label nei, const label masterPointID, const label masterEdgeID, const label masterFaceID, const bool flipFaceFlux, const label patchID, const label zoneID, const bool zoneFlip)
Add face to cells. Return new face label.
bool pointRemoved(const label pointi) const
label addPoint(const point &pt, const label masterPointID, const label zoneID, const bool inCell)
Add point. Return new point label.
Direct mesh changes based on v1.3 polyTopoChange syntax.
bool faceRemoved(const label facei) const
void modifyCell(const label celli, const label zoneID)
Modify zone of cell.
const DynamicList< label > & faceOwner() const
Mesh consisting of general polyhedral cells.
const DynamicList< label > & faceNeighbour() const
void setCapacity(const label nPoints, const label nFaces, const label nCells)
polyTopoChange(const label nPatches, const bool strict=true)
const DynamicList< face > & faces() const
void modifyFace(const face &f, const label facei, const label own, const label nei, const bool flipFaceFlux, const label patchID, const label zoneID, const bool zoneFlip)
Modify vertices or cell of face.
ListType reorder(const labelUList &oldToNew, const ListType &input, const bool prune=false)
Reorder the elements of a list.
const labelIOList & zoneID
bool cellRemoved(const label celli) const
void removeFace(const label facei, const label mergeFacei)
Remove/merge face.
ClassName("polyTopoChange")
Runtime type information.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
label setAction(const topoAction &action)
For compatibility with polyTopoChange: set topological action.
void modifyPoint(const label pointi, const point &pt, const label zoneID, const bool inCell)
Modify coordinate.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void setNumPatches(const label nPatches)
A virtual base class for topological actions.
A face is a list of labels corresponding to mesh vertices.
const DynamicList< label > & region() const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
autoPtr< mapPolyMesh > makeMesh(autoPtr< Type > &newMesh, const IOobject &io, const polyMesh &mesh, const bool syncParallel=true, const bool orderCells=false, const bool orderPoints=false)
Create new mesh with old mesh patches. Additional dictionaries.
void movePoints(const pointField &newPoints)
Move all points. Incompatible with other topology changes.
Cell-face mesh analysis engine.