void Foam::polyPatch::operator=(const polyPatch& p) { clearAddressing(); patchIdentifier::operator=(p); primitivePatch::operator=(p); start_ = p.start_; }
void MixingPlaneInterpolation<MasterPatch, SlavePatch>::clearOut() { clearTransfomedPatches(); clearMixingPlanePatch(); clearAddressing(); clearTransforms(); }
void Foam::polyMesh::resetPrimitives ( const Xfer<pointField>& pts, const Xfer<faceList>& fcs, const Xfer<labelList>& own, const Xfer<labelList>& nei, const labelList& patchSizes, const labelList& patchStarts, const bool validBoundary ) { // Clear addressing. Keep geometric props for mapping. clearAddressing(); // Take over new primitive data. // Optimized to avoid overwriting data at all if (&pts) { allPoints_.transfer(pts()); // Recalculate bounds with all points. HJ, 17/Oct/2008 // ... if points have change. HJ, 19/Aug/2010 bounds_ = boundBox(allPoints_, validBoundary); } if (&fcs) { allFaces_.transfer(fcs()); // Faces will be reset in initMesh(), using size of owner list } if (&own) { owner_.transfer(own()); } if (&nei) { neighbour_.transfer(nei()); } // Reset patch sizes and starts forAll (boundary_, patchI) { boundary_[patchI] = polyPatch ( boundary_[patchI].name(), patchSizes[patchI], patchStarts[patchI], patchI, boundary_ ); }
void Foam::fvMesh::clearOut() { clearGeom(); surfaceInterpolation::clearOut(); clearAddressing(); // Clear mesh motion flux deleteDemandDrivenData(phiPtr_); polyMesh::clearOut(); }
void Foam::polyMesh::resetPrimitives ( const Xfer<pointField>& points, const Xfer<faceList>& faces, const Xfer<labelList>& owner, const Xfer<labelList>& neighbour, const labelList& patchSizes, const labelList& patchStarts, const bool validBoundary ) { // Clear addressing. Keep geometric props and updateable props for mapping. clearAddressing(true); // Take over new primitive data. // Optimized to avoid overwriting data at all if (notNull(points)) { points_.transfer(points()); bounds_ = boundBox(points_, validBoundary); } if (notNull(faces)) { faces_.transfer(faces()); } if (notNull(owner)) { owner_.transfer(owner()); } if (notNull(neighbour)) { neighbour_.transfer(neighbour()); } // Reset patch sizes and starts forAll(boundary_, patchI) { boundary_[patchI] = polyPatch ( boundary_[patchI], boundary_, patchI, patchSizes[patchI], patchStarts[patchI] ); }
void Foam::fvMesh::syncUpdateMesh() { // Update polyMesh. This needs to keep volume existent! polyMesh::syncUpdateMesh(); // Not sure how much clean-up is needed here. HJ, 27/Nov/2009 surfaceInterpolation::clearOut(); clearGeomNotOldVol(); clearAddressing(); // handleMorph() should also clear out the surfaceInterpolation. // This is a temporary solution surfaceInterpolation::movePoints(); // Function object update moved to polyMesh // HJ, 29/Aug/2010 }
void Foam::fvMesh::updateMesh(const mapPolyMesh& mpm) { // Update polyMesh. This needs to keep volume existent! polyMesh::updateMesh(mpm); surfaceInterpolation::clearOut(); clearGeomNotOldVol(); // Map all fields mapFields(mpm); // Map old-volumes mapOldVolumes(mpm); clearAddressing(); // Mesh morphing should also clear out the surfaceInterpolation. // This is a temporary solution surfaceInterpolation::movePoints(); // Function object update moved to polyMesh // HJ, 29/Aug/2010 }
Foam::layerAdditionRemoval::~layerAdditionRemoval() { clearAddressing(); }
void Foam::polyPatch::updateMesh(PstreamBuffers&) { primitivePatch::clearGeom(); clearAddressing(); }
void Foam::surfMesh::clearOut() { clearGeom(); clearAddressing(); }
Foam::polyPatch::~polyPatch() { clearAddressing(); }
void Foam::primitiveMesh::clearOut() { clearGeom(); clearAddressing(); }
void Foam::polyPatch::updateMesh(PstreamBuffers&) { clearAddressing(); primitivePatch::clearOut(); }
void Foam::polyPatch::updateMesh() { clearAddressing(); }
void Foam::cellZone::operator=(const cellZone& zn) { clearAddressing(); labelList::operator=(zn); }
void Foam::polyPatch::updateMesh(PstreamBuffers&) { clearAddressing(); }
void Foam::polyMesh::clearOut() { clearGeom(); clearAddressing(); }
void Foam::cellZone::operator=(const Xfer<labelList>& addr) { clearAddressing(); labelList::operator=(addr); }