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 fvPatchList & patches
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define forAll(list, i)
Loop across all elements in list.
const labelListList & pointRegions() const
Per local point the regions it is in.
const faceList & faceRegions() const
Per face the region of its points.
void inplaceRenumber(const labelUList &oldToNew, ListType &)
Inplace renumber the values of a list.
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable
A face is a list of labels corresponding to mesh vertices.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
virtual const labelList & faceNeighbour() const
Return face neighbour.
void size(const label)
Override size to be inconsistent with allocated storage.
const boolList & flipMap() const
Return face flip map.
label whichFace(const label globalCellID) const
Helper function to re-direct to zone::localID(...)
const Map< label > & meshPointMap() const
Per point that is to be duplicated the local index.
label size() const
Return number of elements in table.
Takes mesh with 'baffles' (= boundary faces sharing points). Determines for selected points on bounda...
virtual const pointField & points() const
Return raw points.
duplicatePoints(const polyMesh &mesh)
Construct from mesh.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const DynamicList< point > & points() const
Points. Shrunk after constructing mesh (or calling of compact())
const Map< label > & meshFaceMap() const
Per face that uses a duplicated point the local index.
virtual const labelList & faceOwner() const
Return face owner.
const labelList & reversePointMap() const
Reverse point map.
label addPoint(const point &, const label masterPointID, const label zoneID, const bool inCell)
Add point. Return new point label.
virtual const faceList & faces() const
Return raw faces.
bool isInternalFace(const label faceIndex) const
Return true if given face label is internal to the mesh.
const Time & time() const
Return time.
defineTypeNameAndDebug(combustionModel, 0)
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element and return index,.
void topoChange(const polyTopoChangeMap &)
Force recalculation of locally stored data on topological change.
void setSize(const label)
Reset size of List.
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.
const meshFaceZones & faceZones() const
Return face zones.
Direct mesh changes based on v1.3 polyTopoChange syntax.
void setRefinement(const localPointRegion ®ionSide, polyTopoChange &)
Play commands into polyTopoChange to duplicate points. Gets.
Mesh consisting of general polyhedral cells.
A subset of mesh faces organised as a primitive patch.
fileName path() const
Return path.
label whichPatch(const label faceIndex) const
Return patch index for a given face label.