Пример #1
0
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_
        );
    }
Пример #4
0
void Foam::fvMesh::clearOut()
{
    clearGeom();
    surfaceInterpolation::clearOut();

    clearAddressing();

    // Clear mesh motion flux
    deleteDemandDrivenData(phiPtr_);

    polyMesh::clearOut();
}
Пример #5
0
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]
        );
    }
Пример #6
0
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
}
Пример #7
0
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();
}
Пример #9
0
void Foam::polyPatch::updateMesh(PstreamBuffers&)
{
    primitivePatch::clearGeom();
    clearAddressing();
}
Пример #10
0
void Foam::surfMesh::clearOut()
{
    clearGeom();
    clearAddressing();
}
Пример #11
0
Foam::polyPatch::~polyPatch()
{
    clearAddressing();
}
Пример #12
0
void Foam::primitiveMesh::clearOut()
{
    clearGeom();
    clearAddressing();
}
Пример #13
0
void Foam::polyPatch::updateMesh(PstreamBuffers&)
{
    clearAddressing();
    primitivePatch::clearOut();
}
Пример #14
0
void Foam::polyPatch::updateMesh()
{
    clearAddressing();
}
Пример #15
0
void Foam::cellZone::operator=(const cellZone& zn)
{
    clearAddressing();
    labelList::operator=(zn);
}
Пример #16
0
void Foam::polyPatch::updateMesh(PstreamBuffers&)
{
    clearAddressing();
}
Пример #17
0
void Foam::polyMesh::clearOut()
{
    clearGeom();
    clearAddressing();
}
Пример #18
0
void Foam::cellZone::operator=(const Xfer<labelList>& addr)
{
    clearAddressing();
    labelList::operator=(addr);
}