Go to the documentation of this file.
45 <<
"Updating addressing and (optional) pointMesh/pointFields" <<
endl;
57 tetBasePtIsPtr_.clear();
62 if (globalMeshDataPtr_.valid())
64 globalMeshDataPtr_->updateMesh();
70 if (oldPointsPtr_.valid())
78 newMotionPoints.setSize(points_.size());
83 newMotionPoints.
map(oldMotionPoints, mpm.
pointMap());
107 newMotionPoints[
newPointi] = oldMotionPoints[oldPointi];
122 meshObject::updateMesh<polyMesh>(*
this, mpm);
123 meshObject::updateMesh<pointMesh>(*
this, mpm);
129 const_cast<Time&
>(
time()).functionObjects().updateMesh(mpm);
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static constexpr const zero Zero
Global zero (0)
const Time & time() const
Return time.
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 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.
void setInstance(const fileName &instance, const IOobject::writeOption wOpt=IOobject::AUTO_WRITE)
Set the instance for mesh files.