63 #ifndef polyTopoChange_H 64 #define polyTopoChange_H 86 class polyBoundaryMesh;
239 static void getMergeSets
247 bool hasValidPoints(
const face&)
const;
266 const label nActiveFaces,
274 const label nActiveFaces,
288 const label nActiveFaces,
298 void reorderCompactFaces
311 const bool orderCells,
312 const bool orderPoints,
313 label& nInternalPoints,
323 const bool internalFacesOnly
327 void calcPatchPointMap
334 void calcFaceInflationMaps
342 void calcCellInflationMaps
360 void calcFaceZonePointMap
371 void reorderCoupledFaces
373 const bool syncParallel,
380 void compactAndReorder
383 const bool syncParallel,
384 const bool orderCells,
385 const bool orderPoints,
386 label& nInternalPoints,
448 return faceNeighbour_;
499 const label masterPointID,
511 const label newZoneID,
523 const point& newPosition,
524 const point& oldPosition,
525 const label masterPointID,
535 const point& newPosition,
536 const point& oldPosition,
537 const label newZoneID
550 const label masterPointID,
551 const label masterEdgeID,
552 const label masterFaceID,
553 const bool flipFaceFlux,
566 const bool flipFaceFlux,
578 const label masterPointID,
579 const label masterEdgeID,
580 const label masterFaceID,
581 const label masterCellID,
614 const bool syncParallel =
true,
615 const bool orderCells =
false,
616 const bool orderPoints =
false 625 const bool syncParallel =
true,
626 const bool orderCells =
false,
627 const bool orderPoints =
false
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const DynamicList< label > & faceNeighbour() const
const DynamicList< face > & faces() const
A face is a list of labels corresponding to mesh vertices.
polyTopoChange(const label nPatches, const bool strict=true)
Construct without mesh. Either specify nPatches or use.
autoPtr< mapPolyMesh > makeMesh(autoPtr< fvMesh > &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.
Cell-face mesh analysis engine.
const DynamicList< label > & region() const
void removePoint(const label, const label)
Remove/merge point.
void removeFace(const label, const label)
Remove/merge face.
void clear()
Clear all storage.
label addCell(const label masterPointID, const label masterEdgeID, const label masterFaceID, const label masterCellID, const label zoneID)
Add cell. Return new cell label.
bool cellRemoved(const label celli) const
Is cell removed?
ClassName("polyTopoChange")
Runtime type information.
void setNumPatches(const label nPatches)
Explicitly set the number of patches if construct-without-mesh.
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.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
const DynamicList< point > & points() const
Points. Shrunk after constructing mesh (or calling of compact())
label addPoint(const point &, const label masterPointID, const label zoneID, const bool inCell)
Add point. Return new point label.
A virtual base class for topological actions.
void setCapacity(const label nPoints, const label nFaces, const label nCells)
Explicitly pre-size the dynamic storage for expected mesh.
A packed storage unstructured matrix of objects of type <T> using an offset table for access...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void movePoints(const pointField &newPoints)
Move all points. Incompatible with other topology changes.
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.
Direct mesh changes based on v1.3 polyTopoChange syntax.
void modifyPoint(const label, const point &, const label newZoneID, const bool inCell)
Modify coordinate.
bool pointRemoved(const label pointi) const
Is point removed?
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.
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 addMesh(const polyMesh &, const labelList &patchMap, const labelList &pointZoneMap, const labelList &faceZoneMap, const labelList &cellZoneMap)
Add all points/faces/cells of mesh. Additional offset for patch.
void modifyCell(const label, const label zoneID)
Modify zone of cell.
bool faceRemoved(const label facei) const
Is face removed?
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const DynamicList< label > & faceOwner() const
void removeCell(const label, const label)
Remove/merge cell.
label setAction(const topoAction &action)
For compatibility with polyTopoChange: set topological action.