Go to the documentation of this file.
43 Info<<
"void polyMesh::updateMesh(const mapPolyMesh&) : "
44 <<
"updating addressing and (optional) pointMesh/pointFields"
78 newMotionPoints.setSize(
points_.size());
83 newMotionPoints.
map(oldMotionPoints, mpm.
pointMap());
91 newMotionPoints[newPointI] =
points_[newPointI];
100 forAll(pointMap, newPointI)
102 label oldPointI = pointMap[newPointI];
105 if (revPointMap[oldPointI] == newPointI)
107 newMotionPoints[newPointI] = oldMotionPoints[oldPointI];
111 newMotionPoints[newPointI] =
points_[newPointI];
116 newMotionPoints[newPointI] =
points_[newPointI];
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.
#define forAll(list, i)
Loop across all elements in list.
const Time & time() const
Return time.
faceZoneMesh faceZones_
Face zones.
autoPtr< indexedOctree< treeDataCell > > cellTreePtr_
Search tree to allow spatial cell searching.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Vector< label > geometricD_
Vector of non-constrained directions in mesh.
autoPtr< globalMeshData > globalMeshDataPtr_
Parallel info.
void map(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 map from the given field
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
virtual void updateMesh(const mapPolyMesh &mpm)
Update the mesh corresponding to given map.
polyBoundaryMesh boundary_
Boundary mesh.
pointZoneMesh pointZones_
Point zones.
pointIOField points_
Points.
autoPtr< pointField > oldPointsPtr_
Old points (for the last mesh motion)
void updateMesh()
Correct polyBoundaryMesh after topology update.
void setInstance(const fileName &)
Set the instance for mesh files.
autoPtr< labelList > tetBasePtIsPtr_
Base point for face decomposition into tets.
const labelList & reversePointMap() const
Reverse point map.
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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?
Vector< label > solutionD_
Vector of valid directions in mesh.
cellZoneMesh cellZones_
Cell zones.
void clearAddressing()
Clear addressing.