76 label pointi = iter.key();
77 label localI = iter();
78 const labelList& regions = pointRegions[localI];
81 duplicates_[localI][0] = pointi;
82 for (
label i = 1; i < regions.
size(); i++)
84 duplicates_[localI][i] = meshMod.
addPoint
86 mesh_.points()[pointi],
111 label facei = iter.key();
112 label localI = iter();
115 const face& fRegion = faceRegions[localI];
116 const face&
f = mesh_.faces()[facei];
125 if (iter != meshPointMap.
end())
131 const labelList& regions = pointRegions[iter()];
132 const labelList& dupPoints = duplicates_[iter()];
137 newFace[fp] = dupPoints[index];
141 newFace[fp] = pointi;
145 if (mesh_.isInternalFace(facei))
151 mesh_.faceOwner()[facei],
152 mesh_.faceNeighbour()[facei],
163 mesh_.faceOwner()[facei],
176 OFstream str(mesh_.time().path()/
"duplicatedPoints.obj");
179 label localI = iter();
180 const labelList& dups = duplicates_[localI];
194 forAll(duplicates_, masterI)
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
label size() const
Return number of elements in table.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
void size(const label)
Override size to be inconsistent with allocated storage.
void setSize(const label)
Reset size of List.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
void setRefinement(const localPointRegion ®ionSide, polyTopoChange &)
Play commands into polyTopoChange to duplicate points. Gets.
void topoChange(const polyTopoChangeMap &)
Force recalculation of locally stored data on topological change.
duplicatePoints(const polyMesh &mesh)
Construct from mesh.
A face is a list of labels corresponding to mesh vertices.
Takes mesh with 'baffles' (= boundary faces sharing points). Determines for selected points on bounda...
const Map< label > & meshPointMap() const
Per point that is to be duplicated the local index.
const faceList & faceRegions() const
Per face the region of its points.
const labelListList & pointRegions() const
Per local point the regions it is in.
const Map< label > & meshFaceMap() const
Per face that uses a duplicated point the local index.
Mesh consisting of general polyhedral cells.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const labelList & reversePointMap() const
Reverse point map.
Direct mesh changes based on v1.3 polyTopoChange syntax.
const DynamicList< point > & points() const
Points. Shrunk after constructing mesh (or calling of compact())
label addPoint(const point &, const label masterPointID, const bool inCell)
Add point and return new point index.
void modifyFace(const face &f, const label facei, const label own, const label nei, const bool flipFaceFlux, const label patchID)
Modify vertices or cell of face.
const fvPatchList & patches
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
defineTypeNameAndDebug(combustionModel, 0)
void inplaceRenumber(const labelUList &oldToNew, ListType &)
Inplace renumber the values of a list.
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element and return index,.
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable