42 <<
"Updating addressing and (optional) pointMesh/pointFields" <<
endl;
54 tetBasePtIsPtr_.reset(
nullptr);
57 cellTreePtr_.reset(
nullptr);
60 if (globalMeshDataPtr_)
62 globalMeshDataPtr_->updateMesh();
81 newMotionPoints.
map(oldMotionPoints, mpm.
pointMap());
105 newMotionPoints[
newPointi] = oldMotionPoints[oldPointi];
121 if (oldCellCentresPtr_)
124 pointField oldMotionCellCentres(*oldCellCentresPtr_);
126 pointField& newMotionCellCentres = *oldCellCentresPtr_;
132 newMotionCellCentres.
map(oldMotionCellCentres, mpm.
cellMap());
138 if (mpm.
cellMap()[newCelli] == -1)
140 newMotionCellCentres[newCelli] =
cellCentres()[newCelli];
145 meshObject::updateMesh<polyMesh>(*
this, mpm);
146 meshObject::updateMesh<pointMesh>(*
this, mpm);
152 const_cast<Time&
>(
time()).functionObjects().updateMesh(mpm);
void size(const label n)
Older name for setAddressableSize.
void clearAddressing()
Clear addressing.
void resize(const label len)
Adjust allocated size of list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
#define forAll(list, i)
Loop across all elements in list.
label size() const noexcept
The number of elements in table.
const labelList & cellMap() const noexcept
Old cell map.
virtual void updateMesh(const mapPolyMesh &mpm)
Update the mesh corresponding to given map.
const Time & time() const noexcept
Return time registry.
#define DebugInFunction
Report an information message using Foam::Info.
const labelList & pointMap() const noexcept
Old point map.
const labelList & reversePointMap() const noexcept
Reverse point 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.
bool hasMotionPoints() const noexcept
Has valid preMotionPoints?
void setInstance(const fileName &instance, const IOobjectOption::writeOption wOpt=IOobject::AUTO_WRITE)
Set the instance for mesh files.
static constexpr const zero Zero
Global zero (0)