58 meshObject::clear<pointMesh, GeometricMeshObject>(*
this);
59 meshObject::clear<polyMesh, GeometricMeshObject>(*
this);
63 boundary_.clearGeom();
81 <<
"Updating geometric data with newPoints:"
82 << newPoints.size() <<
" newTetBasePtIs:"
85 if (points_.size() != 0 && points_.size() != newPoints.size())
88 <<
"Point motion detected but number of points "
89 << newPoints.size() <<
" in "
90 << newPoints.objectPath() <<
" does not correspond to "
91 <<
" current " << points_.size()
117 boundary_.clearGeom();
124 cellTreePtr_.clear();
127 points_.instance() = newPoints.instance();
128 points_.transfer(newPoints);
131 if (newTetBasePtIsPtr)
133 tetBasePtIsPtr_ = std::move(newTetBasePtIsPtr);
137 boundary_.calcGeometry();
147 meshObject::movePoints<polyMesh>(*
this);
148 meshObject::movePoints<pointMesh>(*
this);
155 <<
"Clearing topology isMeshUpdate:" << isMeshUpdate <<
endl;
182 meshObject::clear<pointMesh, TopologicalMeshObject>(*
this);
183 meshObject::clear<polyMesh, TopologicalMeshObject>(*
this);
190 globalMeshDataPtr_.clear();
197 pointZones_.clearAddressing();
198 faceZones_.clearAddressing();
199 cellZones_.clearAddressing();
202 tetBasePtIsPtr_.clear();
205 cellTreePtr_.clear();
216 neighbour_.setSize(0);
218 clearedPrimitives_ =
true;
233 tetBasePtIsPtr_.clear();
241 cellTreePtr_.clear();
A primitive field of type <T> with automated input and output.
void setSize(const label newLen)
Same as resize()
void clear()
Clear the PtrList. Delete allocated entries and set size to zero.
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)
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)
void clearAddressing(const bool isMeshUpdate=false)
Clear addressing.
void clearTetBasePtIs()
Clear tet base points.
void removeBoundary()
Remove boundary patches.
void clearOut()
Clear all geometry and addressing unnecessary for CFD.
void clearGeom()
Clear geometry.
void clearAddressing()
Clear topological data.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#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)
errorManipArg< error, int > exit(error &err, const int errNo=1)