Go to the documentation of this file.
75 duplicates_.
setSize(meshPointMap.size());
79 const label pointi = iter.key();
80 const label localI = iter.val();
81 const labelList& regions = pointRegions[localI];
83 duplicates_[localI].
setSize(regions.size());
84 duplicates_[localI][0] = pointi;
85 for (
label i = 1; i < regions.size(); i++)
87 duplicates_[localI][i] = meshMod.
addPoint
89 mesh_.points()[pointi],
115 const label facei = iter.key();
116 const label localI = iter.val();
119 const face& fRegion = faceRegions[localI];
120 const face&
f = mesh_.faces()[facei];
129 if (iter != meshPointMap.end())
135 const labelList& regions = pointRegions[iter()];
136 const labelList& dupPoints = duplicates_[iter()];
139 label index = regions.find(fRegion[fp]);
141 newFace[fp] = dupPoints[index];
145 newFace[fp] = pointi;
151 bool zoneFlip =
false;
159 if (mesh_.isInternalFace(facei))
165 mesh_.faceOwner()[facei],
166 mesh_.faceNeighbour()[facei],
179 mesh_.faceOwner()[facei],
194 OFstream str(mesh_.time().path()/
"duplicatedPoints.obj");
197 const label localI = iter.val();
198 const labelList& dups = duplicates_[localI];
212 forAll(duplicates_, masterI)
int debug
Static debugging option.
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.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
const DynamicList< point > & points() const
Points. Shrunk after constructing mesh (or calling of compact())
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.
void inplaceRenumber(const labelUList &oldToNew, IntListType &input)
Inplace renumber the values (not the indices) of a list.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in 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.
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.
void setSize(const label newLen)
Same as resize()
label whichPatch(const label faceIndex) const
Return patch index for a given face label.
const labelIOList & zoneID
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.
Output to file stream, using an OSstream.
forAllConstIters(mixture.phases(), phase)
const labelList & reversePointMap() const
Reverse point map.
const polyBoundaryMesh & patches
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 setSize(const label newSize)
Alias for resize(const label)
const boolList & flipMap() const
Return face flip map.
defineTypeNameAndDebug(combustionModel, 0)