49 Foam::duplicatePoints::duplicatePoints(
const polyMesh&
mesh)
78 const label pointi = iter.key();
79 const label localI = iter.val();
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 114 const label facei = iter.key();
115 const label localI = iter.val();
118 const face& fRegion = faceRegions[localI];
119 const face&
f = mesh_.
faces()[facei];
124 label pointi =
f[fp];
128 if (iter != meshPointMap.
end())
134 const labelList& regions = pointRegions[iter()];
135 const labelList& dupPoints = duplicates_[iter()];
138 label index = regions.
find(fRegion[fp]);
140 newFace[fp] = dupPoints[index];
144 newFace[fp] = pointi;
150 bool zoneFlip =
false;
153 const faceZone& fZone = mesh_.
faceZones()[zoneID];
154 zoneFlip = fZone.flipMap()[fZone.whichFace(facei)];
193 OFstream str(mesh_.
time().
path()/
"duplicatedPoints.obj");
196 const label localI = iter.val();
197 const labelList& dups = duplicates_[localI];
211 forAll(duplicates_, masterI)
void size(const label n)
Older name for setAddressableSize.
fileName path() const
Return path.
label find(const T &val, label pos=0) const
Find index of the first occurrence of the value.
virtual const labelList & faceNeighbour() const
Return face neighbour.
typename parent_type::const_iterator const_iterator
iterator end() noexcept
iterator to signal the end (for any HashTable)
bool isInternalFace(const label faceIndex) const noexcept
Return true if given face label is internal to the mesh.
Takes mesh with 'baffles' (= boundary faces sharing points). Determines for selected points on bounda...
virtual const pointField & points() const
Return raw points.
#define forAll(list, i)
Loop across all elements in list.
label size() const noexcept
The number of elements in table.
Determines the 'side' for every face and connected to a singly-connected (through edges) region of fa...
void setSize(const label n)
Alias for resize()
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
iterator find(const Key &key)
Find and return an iterator set at the hashed entry.
const Time & time() const noexcept
Return time registry.
const DynamicList< point > & points() const
Points. Shrunk after constructing mesh (or calling of compact())
virtual const labelList & faceOwner() const
Return face owner.
virtual const faceList & faces() const
Return raw faces.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO...
int debug
Static debugging option.
const faceZoneMesh & faceZones() const noexcept
Return face zone mesh.
defineTypeNameAndDebug(combustionModel, 0)
label whichZone(const label objectIndex) const
Given a global object index, return the zone it is in.
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 inplaceRenumber(const labelUList &oldToNew, IntListType &input)
Inplace renumber the values (not the indices) of a list.
Direct mesh changes based on v1.3 polyTopoChange syntax.
const polyBoundaryMesh & patches
void setRefinement(const localPointRegion ®ionSide, polyTopoChange &)
Play commands into polyTopoChange to duplicate points. Gets.
void updateMesh(const mapPolyMesh &)
Force recalculation of locally stored data on topological change.
Mesh consisting of general polyhedral cells.
label addPoint(const point &pt, const label masterPointID, const label zoneID, const bool inCell)
Add point. Return new point label.
List< label > labelList
A List of labels.
forAllConstIters(mixture.phases(), phase)