56 meshObject::clear<pointMesh, GeometricMeshObject>(*this);
57 meshObject::clear<polyMesh, GeometricMeshObject>(*this);
61 boundary_.clearGeom();
68 cellTreePtr_.reset(
nullptr);
79 <<
"Updating geometric data with newPoints:" 80 << newPoints.size() <<
" newTetBasePtIs:" 81 << bool(newTetBasePtIsPtr) <<
endl;
83 if (points_.size() != 0 && points_.size() != newPoints.size())
86 <<
"Point motion detected but number of points " 87 << newPoints.size() <<
" in " 88 << newPoints.objectPath() <<
" does not correspond to " 89 <<
" current " << points_.size()
97 TopologicalMeshObject,
106 TopologicalMeshObject,
115 boundary_.clearGeom();
122 cellTreePtr_.reset(
nullptr);
125 points_.instance() = newPoints.instance();
126 points_.transfer(newPoints);
129 if (newTetBasePtIsPtr)
131 tetBasePtIsPtr_ = std::move(newTetBasePtIsPtr);
135 boundary_.calcGeometry();
138 bounds_ = boundBox(points_);
145 meshObject::movePoints<polyMesh>(*this);
146 meshObject::movePoints<pointMesh>(*this);
153 <<
"isMeshUpdate:" << isMeshUpdate <<
endl;
180 meshObject::clear<pointMesh, TopologicalMeshObject>(*this);
181 meshObject::clear<polyMesh, TopologicalMeshObject>(*this);
188 globalMeshDataPtr_.reset(
nullptr);
195 pointZones_.clearAddressing();
196 faceZones_.clearAddressing();
197 cellZones_.clearAddressing();
200 tetBasePtIsPtr_.reset(
nullptr);
203 cellTreePtr_.reset(
nullptr);
216 clearedPrimitives_ =
true;
223 clearAddressing(isMeshUpdate);
231 tetBasePtIsPtr_.reset(
nullptr);
239 cellTreePtr_.reset(
nullptr);
void clearAddressing()
Clear topological data.
void updateGeomPoints(pointIOField &&newPoints, autoPtr< labelIOList > &newTetBasePtIsPtr)
Update geometry points; keep topology. Optionally with new face decomposition.
errorManipArg< error, int > exit(error &err, const int errNo=1)
static void clearUpto(objectRegistry &obr)
Clear all meshObject derived from FromType up to (but not including) ToType.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Mesh representing a set of points created from polyMesh.
void clearGeom()
Clear geometry.
void clearPrimitives()
Clear primitive data (points, faces and cells)
void clearOut()
Clear all geometry and addressing unnecessary for CFD.
#define DebugInFunction
Report an information message using Foam::Info.
void clearGeom()
Clear geometry.
void removeBoundary()
Remove boundary patches.
void clear()
Clear the patch list and all demand-driven data.
void clearTetBasePtIs()
Clear tet base points.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Mesh consisting of general polyhedral cells.
A primitive field of type <T> with automated input and output.
void clearCellTree()
Clear cell tree data.
static constexpr const zero Zero
Global zero (0)