Go to the documentation of this file.
38 #ifndef polyMeshAdder_H
39 #define polyMeshAdder_H
100 const label nAllPatches,
103 const label nInternalFaces,
115 const label nInternalFaces,
127 const face& masterFace,
140 const label nAllPatches,
151 label& nInternalFaces,
163 const label nAllPoints,
195 const label nAllCells,
209 const label nAllPoints,
211 const label nAllCells,
270 const bool validBoundary =
true
284 const scalar mergeTol
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
static labelList getPatchSizes(const polyBoundaryMesh &)
Get sizes of patches.
static labelList getFaceOrder(const cellList &cells, const label nInternalFaces, const labelList &owner, const labelList &neighbour)
Determine order for internalFaces to be upper-triangular.
A class for handling words, derived from string.
Adds two meshes without using any polyMesh morphing.
static void mergeCellZones(const label nAllCells, const cellZoneMesh &cz0, const cellZoneMesh &cz1, const labelList &from1ToAllCells, DynamicList< word > &zoneNames, labelList &from1ToAll, List< DynamicList< label > > &czCells)
Merge cell zones.
static void addZones(const DynamicList< word > &pointZoneNames, const List< DynamicList< label > > &pzPoints, const DynamicList< word > &faceZoneNames, const List< DynamicList< label > > &fzFaces, const List< DynamicList< bool > > &fzFlips, const DynamicList< word > &cellZoneNames, const List< DynamicList< label > > &czCells, polyMesh &mesh)
Create new zones and add to new mesh.
Direct mesh changes based on v1.3 polyTopoChange syntax.
static labelList getPatchStarts(const polyBoundaryMesh &)
Get starts of patches.
static void mergePrimitives(const polyMesh &mesh0, const polyMesh &mesh1, const faceCoupleInfo &coupleInfo, const label nAllPatches, const labelList &fromAllTo1Patches, const labelList &from1ToAllPatches, pointField &allPoints, labelList &from0ToAllPoints, labelList &from1ToAllPoints, faceList &allFaces, labelList &allOwner, labelList &allNeighbour, label &nInternalFaces, labelList &nFacesPerPatch, label &nCells, labelList &from0ToAllFaces, labelList &from1ToAllFaces, labelList &from1ToAllCells)
Merges primitives of two meshes.
static label zoneIndex(const word &, DynamicList< word > &)
Index of zone in all zones.
Mesh consisting of general polyhedral cells.
static label patchIndex(const polyPatch &, DynamicList< word > &allPatchNames, DynamicList< word > &allPatchTypes)
Index of patch in allPatches. Add if nonexisting.
static void mergePatchNames(const polyBoundaryMesh &patches0, const polyBoundaryMesh &patches1, DynamicList< word > &allPatchNames, DynamicList< word > &allPatchTypes, labelList &from1ToAllPatches, labelList &fromAllTo1Patches)
static void mergeFaceZones(const labelList &allOwner, const polyMesh &mesh0, const polyMesh &mesh1, const labelList &from0ToAllFaces, const labelList &from1ToAllFaces, const labelList &from1ToAllCells, DynamicList< word > &zoneNames, labelList &from1ToAll, List< DynamicList< label > > &fzFaces, List< DynamicList< bool > > &fzFlips)
Merge face zones.
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.
A patch is a list of labels that address the faces in the global face list.
static void mergePointZones(const label nAllPoints, const pointZoneMesh &pz0, const pointZoneMesh &pz1, const labelList &from0ToAllPoints, const labelList &from1ToAllPoints, DynamicList< word > &zoneNames, labelList &from1ToAll, List< DynamicList< label > > &pzPoints)
Merge point zones.
static void insertVertices(const edgeLookup &cutEdgeToPoints, const Map< label > &meshToMaster, const labelList &masterToCutPoints, const face &masterFace, DynamicList< label > &workFace, face &f)
Extends face f with split points. cutEdgeToPoints gives for every.
static Map< label > findSharedPoints(const polyMesh &, const scalar mergeTol)
Find topologically and geometrically shared points.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static List< polyPatch * > combinePatches(const polyMesh &mesh0, const polyMesh &mesh1, const polyBoundaryMesh &allBoundaryMesh, const label nAllPatches, const labelList &fromAllTo1Patches, const label nInternalFaces, const labelList &nFaces, labelList &from0ToAllPatches, labelList &from1ToAllPatches)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static autoPtr< polyMesh > add(const IOobject &io, const polyMesh &mesh0, const polyMesh &mesh1, const faceCoupleInfo &coupleInfo, autoPtr< mapAddedPolyMesh > &mapPtr)
Add two polyMeshes. Returns new polyMesh and map construct.
Container for information needed to couple to meshes. When constructed from two meshes and a geometri...
A face is a list of labels corresponding to mesh vertices.
static void mergeZones(const label nAllPoints, const labelList &allOwner, const label nAllCells, const polyMesh &mesh0, const polyMesh &mesh1, const labelList &from0ToAllPoints, const labelList &from0ToAllFaces, const labelList &from1ToAllPoints, const labelList &from1ToAllFaces, const labelList &from1ToAllCells, DynamicList< word > &pointZoneNames, List< DynamicList< label > > &pzPoints, DynamicList< word > &faceZoneNames, List< DynamicList< label > > &fzFaces, List< DynamicList< bool > > &fzFlips, DynamicList< word > &cellZoneNames, List< DynamicList< label > > &czCells)
Merge point/face/cell zone information.
static void mergePoints(const polyMesh &, const Map< label > &pointToMaster, polyTopoChange &meshMod)
Helper: Merge points.