45 <<
"Updating addressing and (optional) pointMesh/pointFields" <<
endl;
57 tetBasePtIsPtr_.clear();
62 if (globalMeshDataPtr_)
64 globalMeshDataPtr_->updateMesh();
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);
void map(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 map from the given field
label size() const noexcept
The number of elements in table.
void resize(const label len)
Adjust allocated size of list.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
void size(const label n)
Older name for setAddressableSize.
void clearAddressing()
Clear addressing.
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.
const labelList & reversePointMap() const
Reverse point map.
bool hasMotionPoints() const
Has valid preMotionPoints?
void updateMesh()
Update for new mesh topology.
const Time & time() const noexcept
Return time registry.
void updateMesh()
Correct polyBoundaryMesh after topology update.
void setInstance(const fileName &instance, const IOobject::writeOption wOpt=IOobject::AUTO_WRITE)
Set the instance for mesh files.
const vectorField & cellCentres() const
#define DebugInFunction
Report an information message using Foam::Info.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static constexpr const zero Zero
Global zero (0)
#define forAll(list, i)
Loop across all elements in list.