52 <<
"Updating addressing and (optional) pointMesh/pointFields"
57 boundary_.topoChange();
63 tetBasePtIsPtr_.clear();
69 if (globalMeshDataPtr_.valid())
71 globalMeshDataPtr_->topoChange();
74 setInstance(time().
name());
77 if (oldPointsPtr_.valid())
85 newMotionPoints.
setSize(points_.size());
88 newMotionPoints.
map(oldMotionPoints, map.
pointMap());
101 if (oldCellCentresPtr_.valid())
104 pointField oldMotionCellCentres = oldCellCentresPtr_();
106 pointField& newMotionCellCentres = oldCellCentresPtr_();
109 newMotionCellCentres.
setSize(cellCentres().size());
112 newMotionCellCentres.
map(oldMotionCellCentres, map.
cellMap());
118 if (map.
cellMap()[newCelli] == -1)
120 newMotionCellCentres[newCelli] = cellCentres()[newCelli];
125 meshObjects::topoChange<polyMesh>(*
this, map);
126 meshObjects::topoChange<pointMesh>(*
this, map);
137 pointZones_.mapMesh(map);
138 faceZones_.mapMesh(map);
139 cellZones_.mapMesh(map);
141 meshObjects::mapMesh<polyMesh>(*
this, map);
142 meshObjects::mapMesh<pointMesh>(*
this, map);
149 pointZones_.distribute(map);
150 faceZones_.distribute(map);
151 cellZones_.distribute(map);
153 meshObjects::distribute<polyMesh>(*
this, map);
154 meshObjects::distribute<pointMesh>(*
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.
#define InfoInFunction
Report an information message using Foam::Info.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.