50 <<
"Updating addressing and (optional) pointMesh/pointFields"
55 boundary_.topoChange();
61 tetBasePtIsPtr_.clear();
64 if (globalMeshDataPtr_.valid())
66 globalMeshDataPtr_->topoChange();
69 setInstance(time().
name());
72 if (oldPointsPtr_.valid())
80 newMotionPoints.
setSize(points_.size());
83 newMotionPoints.
map(oldMotionPoints, map.
pointMap());
96 if (oldCellCentresPtr_.valid())
99 pointField oldMotionCellCentres = oldCellCentresPtr_();
101 pointField& newMotionCellCentres = oldCellCentresPtr_();
104 newMotionCellCentres.
setSize(cellCentres().size());
107 newMotionCellCentres.
map(oldMotionCellCentres, map.
cellMap());
113 if (map.
cellMap()[newCelli] == -1)
115 newMotionCellCentres[newCelli] = cellCentres()[newCelli];
120 meshObjects::topoChange<polyMesh>(*
this, map);
121 meshObjects::topoChange<pointMesh>(*
this, map);
132 pointZones_.mapMesh(map);
133 faceZones_.mapMesh(map);
134 cellZones_.mapMesh(map);
136 meshObjects::mapMesh<polyMesh>(*
this, map);
137 meshObjects::mapMesh<pointMesh>(*
this, map);
144 pointZones_.distribute(map);
145 faceZones_.distribute(map);
146 cellZones_.distribute(map);
148 meshObjects::distribute<polyMesh>(*
this, map);
149 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 LagrangianState state)
Return a string representation of a Lagrangian state enumeration.