133 #ifndef addPatchCellLayer_H 134 #define addPatchCellLayer_H 148 class polyTopoChange;
165 const bool addToMesh_;
198 static void addVertex(
const label,
face&, label& fp);
200 bool sameEdgeNeighbour
205 const label thisGlobalFaceI,
206 const label nbrGlobalFaceI,
215 const label patchFaceI,
216 const label globalFaceI
227 const label newPatchID,
228 const label newZoneI,
230 const label inflateFaceI,
232 const label ownFaceI,
233 const label nbrFaceI,
234 const label meshEdgeI,
236 const label numEdgeFaces,
242 static void setFaceProps
252 static void setFaceProps
267 static void markPatchEdges
275 bitSet& isPatchBoundaryEdge
282 static void globalEdgeInfo
284 const bool zoneFromAnyFace,
317 const bool addToMesh=
true,
318 const bool extrude=
true 396 const bool zoneFromAnyFace,
481 overallDisplacement / nLayers,
514 const bitSet& isDupPatchPoint,
const labelListList & addedPoints() const
Added points per patch point.
A face is a list of labels corresponding to mesh vertices.
const bitSet isBlockedFace(intersectedFaces())
static void findDuplicatedPoints(const polyMesh &mesh, const indirectPrimitivePatch &pp, const bitSet &ppFlip, const bitSet &isBlockedFace, const bitSet &isDupPatchPoint, const bool extrude, faceList &isDupMeshPoint)
Helper: given patch and points on patch that are extruded.
ClassName("addPatchCellLayer")
Runtime type information.
const labelListList & layerFaces() const
Layer faces per patch face. See above.
static void calcExtrudeInfo(const bool zoneFromAnyFace, const polyMesh &, const globalIndex &globalFaces, const labelListList &globalEdgeFaces, const indirectPrimitivePatch &pp, labelList &edgePatchID, label &nPatches, Map< label > &nbrProcToPatch, Map< label > &patchToNbrProc, labelList &edgeZoneID, boolList &edgeFlip, labelList &inflateFaceID)
Determine extrude information per patch edge:
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A list of faces which address into the list of points.
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
static labelListList globalEdgeFaces(const polyMesh &, const globalIndex &globalFaces, const indirectPrimitivePatch &pp, const bitSet &orientation)
Per patch edge the pp faces (in global indices) using it.
Adds layers of cells to outside (or inside) of polyMesh. Can optionally create stand-alone extruded m...
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void setRefinement(const globalIndex &globalFaces, const labelListList &globalEdgeFaces, const scalarField &expansionRatio, const indirectPrimitivePatch &pp, const bitSet &flip, const labelList &sidePatchID, const labelList &sideZoneID, const boolList &sideFlip, const labelList &inflateFaceID, const labelList &exposedPatchID, const labelList &nFaceLayers, const labelList &nPointLayers, const vectorField &firstLayerDisp, polyTopoChange &meshMod)
Play commands into polyTopoChange to create layers on top.
void updateMesh(const mapPolyMesh &, const labelList &faceMap, const labelList &pointMap)
Update any locally stored mesh information. Gets additional.
Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to c...
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
Direct mesh changes based on v1.3 polyTopoChange syntax.
labelListList addedCells() const
Added cells given current mesh & layerfaces.
Mesh consisting of general polyhedral cells.
List< label > labelList
A List of labels.
List< bool > boolList
A List of bools.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())