Go to the documentation of this file.
74 duplicates_.setSize(meshPointMap.size());
78 label pointI = iter.key();
79 label localI = iter();
80 const labelList& regions = pointRegions[localI];
83 duplicates_[localI][0] = pointI;
84 for (
label i = 1; i < regions.
size(); i++)
86 duplicates_[localI][i] = meshMod.
addPoint
88 mesh_.points()[pointI],
114 label faceI = iter.key();
115 label localI = iter();
118 const face& fRegion = faceRegions[localI];
119 const face&
f = mesh_.faces()[faceI];
128 if (iter != meshPointMap.end())
134 const labelList& regions = pointRegions[iter()];
135 const labelList& dupPoints = duplicates_[iter()];
140 newFace[fp] = dupPoints[index];
144 newFace[fp] = pointI;
149 label zoneID = mesh_.faceZones().whichZone(faceI);
150 bool zoneFlip =
false;
153 const faceZone& fZone = mesh_.faceZones()[zoneID];
158 if (mesh_.isInternalFace(faceI))
164 mesh_.faceOwner()[faceI],
165 mesh_.faceNeighbour()[faceI],
178 mesh_.faceOwner()[faceI],
193 OFstream str(mesh_.time().path()/
"duplicatedPoints.obj");
196 label localI = iter();
197 const labelList& dups = duplicates_[localI];
211 forAll(duplicates_, masterI)
Takes mesh with 'baffles' (= boundary faces sharing points). Determines for selected points on bounda...
void updateMesh(const mapPolyMesh &)
Force recalculation of locally stored data on topological change.
#define forAll(list, i)
Loop across all elements in list.
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurence of given element and return index,.
const DynamicList< point > & points() const
Points. Shrunk after constructing mesh (or calling of compact())
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.
label addPoint(const point &, const label masterPointID, const label zoneID, const bool inCell)
Add point. Return new point label.
Mesh consisting of general polyhedral cells.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
void inplaceRenumber(const labelUList &oldToNew, ListType &)
Inplace renumber the values of a list.
Determines the 'side' for every face and connected to a singly-connected (through edges) region of fa...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A subset of mesh faces organised as a primitive patch.
label whichFace(const label globalCellID) const
Helper function to re-direct to zone::localID(...)
void setRefinement(const localPointRegion ®ionSide, polyTopoChange &)
Play commands into polyTopoChange to duplicate points. Gets.
void setSize(const label)
Reset size of List.
const labelList & reversePointMap() const
Reverse point map.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A face is a list of labels corresponding to mesh vertices.
void size(const label)
Override size to be inconsistent with allocated storage.
const boolList & flipMap() const
Return face flip map.
defineTypeNameAndDebug(combustionModel, 0)
duplicatePoints(const duplicatePoints &)
Disallow default bitwise copy construct.