Go to the documentation of this file.
45 <<
"Updating addressing and (optional) pointMesh/pointFields" <<
endl;
57 tetBasePtIsPtr_.clear();
62 if (globalMeshDataPtr_)
64 globalMeshDataPtr_->updateMesh();
78 newMotionPoints.resize(points_.size());
83 newMotionPoints.
map(oldMotionPoints, mpm.
pointMap());
107 newMotionPoints[
newPointi] = oldMotionPoints[oldPointi];
123 if (oldCellCentresPtr_)
126 pointField oldMotionCellCentres(*oldCellCentresPtr_);
128 pointField& newMotionCellCentres = *oldCellCentresPtr_;
134 newMotionCellCentres.
map(oldMotionCellCentres, mpm.
cellMap());
140 if (mpm.
cellMap()[newCelli] == -1)
142 newMotionCellCentres[newCelli] =
cellCentres()[newCelli];
147 meshObject::updateMesh<polyMesh>(*
this, mpm);
148 meshObject::updateMesh<pointMesh>(*
this, mpm);
154 const_cast<Time&
>(
time()).functionObjects().updateMesh(mpm);
label size() const noexcept
The number of elements in table.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static constexpr const zero Zero
Global zero (0)
Ostream & endl(Ostream &os)
Add newline and flush stream.
#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
#define DebugInFunction
Report an information message using Foam::Info.
virtual void updateMesh(const mapPolyMesh &mpm)
Update the mesh corresponding to given map.
void updateMesh()
Correct polyBoundaryMesh after topology update.
const vectorField & cellCentres() const
const labelList & reversePointMap() const
Reverse point map.
const labelList & pointMap() const
Old point map.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
bool hasMotionPoints() const
Has valid preMotionPoints?
void clearAddressing()
Clear addressing.
const Time & time() const noexcept
Return time registry.
void setInstance(const fileName &instance, const IOobject::writeOption wOpt=IOobject::AUTO_WRITE)
Set the instance for mesh files.
const labelList & cellMap() const
Old cell map.