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 114 label faceI = iter.key();
115 label localI = iter();
118 const face& fRegion = faceRegions[localI];
124 label pointI = f[fp];
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;
150 bool zoneFlip =
false;
196 label localI = iter();
197 const labelList& dups = duplicates_[localI];
211 forAll(duplicates_, masterI)
const boolList & flipMap() const
Return face flip map.
const faceZoneMesh & faceZones() const
Return face zone mesh.
void updateMesh(const mapPolyMesh &)
Force recalculation of locally stored data on topological change.
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurence of given element and return index,.
fileName path() const
Return path.
label whichZone(const label objectIndex) const
Given a global object index, return the zone it is in.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const labelList & reversePointMap() const
Reverse point map.
const faceList & faceRegions() const
Per face the region of its points.
A subset of mesh faces organised as a primitive patch.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void size(const label)
Override size to be inconsistent with allocated storage.
const DynamicList< point > & points() const
Points. Shrunk after constructing mesh (or calling of compact())
label whichFace(const label globalCellID) const
Helper function to re-direct to zone::localID(...)
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
A face is a list of labels corresponding to mesh vertices.
const labelListList & pointRegions() const
Per local point the regions it is in.
void setRefinement(const localPointRegion ®ionSide, polyTopoChange &)
Play commands into polyTopoChange to duplicate points. Gets.
void setSize(const label)
Reset size of List.
virtual const pointField & points() const
Return raw points.
label addPoint(const point &, const label masterPointID, const label zoneID, const bool inCell)
Add point. Return new point label.
label whichPatch(const label faceIndex) const
Return patch index for a given face label.
label size() const
Return number of elements in table.
virtual const labelList & faceOwner() const
Return face owner.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
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.
Mesh consisting of general polyhedral cells.
const Map< label > & meshPointMap() const
Per point that is to be duplicated the local index.
Direct mesh changes based on v1.3 polyTopoChange syntax.
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable
const Time & time() const
Return time.
Takes mesh with 'baffles' (= boundary faces sharing points). Determines for selected points on bounda...
const Map< label > & meshFaceMap() const
Per face that uses a duplicated point the local index.
virtual const faceList & faces() const
Return raw faces.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
virtual const labelList & faceNeighbour() const
Return face neighbour.
void writeOBJ(Ostream &os, const point &pt)
Write obj representation of point.
void inplaceRenumber(const labelUList &oldToNew, ListType &)
Inplace renumber the values of a list.
defineTypeNameAndDebug(combustionModel, 0)
bool isInternalFace(const label faceIndex) const
Return true if given face label is internal to the mesh.