48 boundary_.topoChange();
54 tetBasePtIsPtr_.clear();
57 if (globalMeshDataPtr_.valid())
59 globalMeshDataPtr_->topoChange();
65 if (oldPointsPtr_.valid())
73 newMotionPoints.
setSize(points_.size());
76 newMotionPoints.
map(oldMotionPoints, map.
pointMap());
89 if (oldCellCentresPtr_.valid())
92 pointField oldMotionCellCentres = oldCellCentresPtr_();
94 pointField& newMotionCellCentres = oldCellCentresPtr_();
97 newMotionCellCentres.
setSize(cellCentres().size());
100 newMotionCellCentres.
map(oldMotionCellCentres, map.
cellMap());
106 if (map.
cellMap()[newCelli] == -1)
108 newMotionCellCentres[newCelli] = cellCentres()[newCelli];
113 meshObjects::topoChange<polyMesh>(*
this, map);
124 pointZones_.mapMesh(map);
125 faceZones_.mapMesh(map);
126 cellZones_.mapMesh(map);
128 meshObjects::mapMesh<polyMesh>(*
this, map);
135 pointZones_.distribute(map);
136 faceZones_.distribute(map);
137 cellZones_.distribute(map);
139 meshObjects::distribute<polyMesh>(*
this, map);
#define forAll(list, i)
Loop across all elements in list.
void map(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 map from the given field
void setSize(const label)
Reset size of List.
virtual void topoChange(const polyTopoChangeMap &map)
Update topology using the given map.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
void topoChangeZones(const polyTopoChangeMap &)
Update zones using the given map.
virtual void distribute(const polyDistributionMap &map)
Redistribute or update using the given distribution map.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const labelList & cellMap() const
Old cell map.
const labelList & pointMap() const
Old point map.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.