44 <<
"Updating addressing and (optional) pointMesh/pointFields" 57 tetBasePtIsPtr_.clear();
62 if (globalMeshDataPtr_.valid())
64 globalMeshDataPtr_->updateMesh();
70 if (oldPointsPtr_.valid())
81 newMotionPoints.
map(oldMotionPoints, mpm.
pointMap());
94 if (oldCellCentresPtr_.valid())
97 pointField oldMotionCellCentres = oldCellCentresPtr_();
99 pointField& newMotionCellCentres = oldCellCentresPtr_();
105 newMotionCellCentres.
map(oldMotionCellCentres, mpm.
cellMap());
111 if (mpm.
cellMap()[newCelli] == -1)
113 newMotionCellCentres[newCelli] =
cellCentres()[newCelli];
118 meshObject::updateMesh<polyMesh>(*
this, mpm);
119 meshObject::updateMesh<pointMesh>(*
this, mpm);
125 const_cast<Time&
>(
time()).functionObjects().updateMesh(mpm);
#define forAll(list, i)
Loop across all elements in list.
void clearAddressing()
Clear addressing.
const labelList & cellMap() const
Old cell map.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
label size() const
Return number of elements in table.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual void updateMesh(const mapPolyMesh &mpm)
Update the mesh corresponding to given map.
const vectorField & cellCentres() const
void map(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 map from the given field
void updateMesh()
Correct polyBoundaryMesh after topology update.
const Time & time() const
Return time.
const labelList & pointMap() const
Old point map.
void setInstance(const fileName &)
Set the instance for mesh files.
void setSize(const label)
Reset size of List.
#define InfoInFunction
Report an information message using Foam::Info.