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();
153 <<
"isMeshUpdate:" << isMeshUpdate <<
endl;
188 globalMeshDataPtr_.reset(
nullptr);
195 pointZones_.clearAddressing();
196 faceZones_.clearAddressing();
197 cellZones_.clearAddressing();
200 tetBasePtIsPtr_.reset(
nullptr);
203 cellTreePtr_.reset(
nullptr);
216 clearedPrimitives_ =
true;
231 tetBasePtIsPtr_.reset(
nullptr);
239 cellTreePtr_.reset(
nullptr);
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A bounding box defined in terms of min/max extrema points.
static void clearUpto(objectRegistry &obr)
Clear all meshObject derived from FromType up to (but not including) ToType.
static void clear(objectRegistry &obr)
Clear/remove all meshObject of MeshObjectType via objectRegistry::checkOut().
static void movePoints(objectRegistry &obr)
Update for mesh motion.
Mesh representing a set of points created from polyMesh.
Mesh consisting of general polyhedral cells.
void clearCellTree()
Clear cell tree data.
void clearGeom()
Clear geometry.
void clearPrimitives()
Clear primitive data (points, faces and cells).
void updateGeomPoints(pointIOField &&newPoints, autoPtr< labelIOList > &newTetBasePtIsPtr)
Update geometry points; keep topology. Optionally with new face decomposition.
void clearAddressing(const bool isMeshUpdate=false)
Clear addressing.
void resetMotion() const
Reset motion.
void clearTetBasePtIs()
Clear tet base points.
void removeBoundary()
Remove boundary patches.
void clearGeom()
Clear geometry.
void clearAddressing()
Clear topological data.
void clearOut()
Clear all geometry and addressing unnecessary for CFD.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define DebugInFunction
Report an information message using Foam::Info.
vectorIOField pointIOField
pointIOField is a vectorIOField.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static constexpr const zero Zero
Global zero (0).
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
errorManipArg< error, int > exit(error &err, const int errNo=1)