OOFEM 3.0
Loading...
Searching...
No Matches
oofem::SpatialLocalizerInterface Class Reference

#include <spatiallocalizer.h>

Inheritance diagram for oofem::SpatialLocalizerInterface:
Collaboration diagram for oofem::SpatialLocalizerInterface:

Public Member Functions

 SpatialLocalizerInterface (Element *element)
The element interface required by SpatialLocalizerInterface
virtual int SpatialLocalizerI_containsPoint (const FloatArray &coords)
int SpatialLocalizerI_BBoxContainsPoint (const FloatArray &coords)
virtual void SpatialLocalizerI_giveBBox (FloatArray &bb0, FloatArray &bb1)
virtual double SpatialLocalizerI_giveClosestPoint (FloatArray &lcoords, FloatArray &closest, const FloatArray &gcoords)
Public Member Functions inherited from oofem::Interface
 Interface ()
 Constructor.
virtual ~Interface ()
virtual const char * giveClassName () const =0

Private Attributes

Elementelement

Detailed Description

The spatial localizer element interface associated to spatial localizer.

Definition at line 59 of file spatiallocalizer.h.

Constructor & Destructor Documentation

◆ SpatialLocalizerInterface()

oofem::SpatialLocalizerInterface::SpatialLocalizerInterface ( Element * element)
inline

Definition at line 65 of file spatiallocalizer.h.

References element, and oofem::Interface::Interface().

Referenced by oofem::Axisymm3d::Axisymm3d(), oofem::Brick1_ht::Brick1_ht(), oofem::Axisymm3d::giveInterface(), oofem::Brick1_ht::giveInterface(), oofem::Hexa21Stokes::giveInterface(), oofem::L4Axisymm::giveInterface(), oofem::Line1_ht::giveInterface(), oofem::Line2BoundaryElement::giveInterface(), oofem::LSpace::giveInterface(), oofem::LTRSpace::giveInterface(), oofem::LTRSpaceBoundary::giveInterface(), oofem::LWedge::giveInterface(), oofem::MITC4Shell::giveInterface(), oofem::PlaneStress2d::giveInterface(), oofem::QBrick1_ht::giveInterface(), oofem::QPlaneStress2d::giveInterface(), oofem::QQuad1_ht::giveInterface(), oofem::QSpace::giveInterface(), oofem::QTrPlaneStrain::giveInterface(), oofem::QTrPlaneStress2d::giveInterface(), oofem::Quad1_ht::giveInterface(), oofem::Quad1PlaneStrain::giveInterface(), oofem::QWedge::giveInterface(), oofem::QWedge_ht::giveInterface(), oofem::Tet1BubbleStokes::giveInterface(), oofem::tet21ghostsolid::giveInterface(), oofem::Tet21Stokes::giveInterface(), oofem::Tetrah1_ht::giveInterface(), oofem::TR1_2D_CBS::giveInterface(), oofem::TR1_2D_SUPG::giveInterface(), oofem::Tr1_ht::giveInterface(), oofem::Tr1BubbleStokes::giveInterface(), oofem::Tr21Stokes::giveInterface(), oofem::TR_SHELL01::giveInterface(), oofem::TR_SHELL02::giveInterface(), oofem::Tr_Warp::giveInterface(), oofem::TrPlaneStrain::giveInterface(), oofem::TrPlaneStress2d::giveInterface(), oofem::Truss1d::giveInterface(), oofem::Wedge_ht::giveInterface(), oofem::Hexa21Stokes::Hexa21Stokes(), oofem::L4Axisymm::L4Axisymm(), oofem::Line1_ht::Line1_ht(), oofem::Line2BoundaryElement::Line2BoundaryElement(), oofem::LSpace::LSpace(), oofem::LTRSpace::LTRSpace(), oofem::LTRSpaceBoundary::LTRSpaceBoundary(), oofem::LWedge::LWedge(), oofem::MITC4Shell::MITC4Shell(), oofem::PlaneStress2d::PlaneStress2d(), oofem::QBrick1_ht::QBrick1_ht(), oofem::QPlaneStress2d::QPlaneStress2d(), oofem::QQuad1_ht::QQuad1_ht(), oofem::QSpace::QSpace(), oofem::QTrPlaneStrain::QTrPlaneStrain(), oofem::QTrPlaneStress2d::QTrPlaneStress2d(), oofem::Quad1_ht::Quad1_ht(), oofem::Quad1PlaneStrain::Quad1PlaneStrain(), oofem::QWedge::QWedge(), oofem::QWedge_ht::QWedge_ht(), oofem::Tet1BubbleStokes::Tet1BubbleStokes(), oofem::tet21ghostsolid::tet21ghostsolid(), oofem::Tet21Stokes::Tet21Stokes(), oofem::Tetrah1_ht::Tetrah1_ht(), oofem::TR1_2D_CBS::TR1_2D_CBS(), oofem::TR1_2D_SUPG::TR1_2D_SUPG(), oofem::Tr1_ht::Tr1_ht(), oofem::Tr1BubbleStokes::Tr1BubbleStokes(), oofem::Tr21Stokes::Tr21Stokes(), oofem::TR_SHELL01::TR_SHELL01(), oofem::TR_SHELL02::TR_SHELL02(), oofem::TR_SHELL11::TR_SHELL11(), oofem::Tr_Warp::Tr_Warp(), oofem::TrPlaneStrain::TrPlaneStrain(), oofem::TrPlaneStress2d::TrPlaneStress2d(), oofem::Truss1d::Truss1d(), and oofem::Wedge_ht::Wedge_ht().

Member Function Documentation

◆ SpatialLocalizerI_BBoxContainsPoint()

int oofem::SpatialLocalizerInterface::SpatialLocalizerI_BBoxContainsPoint ( const FloatArray & coords)

Creates a bounding box of the nodes and checks if it includes the given coordinate.

Parameters
coordsGlobal coordinate.
Returns
Nonzero if given element bounding box contains given point.

Definition at line 83 of file spatiallocalizer.C.

References oofem::FloatArray::at(), oofem::FloatArray::giveSize(), oofem::min(), and SpatialLocalizerI_giveBBox().

◆ SpatialLocalizerI_containsPoint()

int oofem::SpatialLocalizerInterface::SpatialLocalizerI_containsPoint ( const FloatArray & coords)
virtual

Checks if element contains specified coordinate. Default implementation uses Element::computeLocalCoordinates.

Parameters
coordsGlobal coordinate.
Returns
Nonzero if given element contains given point.

Reimplemented in oofem::Tr_Warp.

Definition at line 48 of file spatiallocalizer.C.

References element.

◆ SpatialLocalizerI_giveBBox()

void oofem::SpatialLocalizerInterface::SpatialLocalizerI_giveBBox ( FloatArray & bb0,
FloatArray & bb1 )
virtual

Creates a bounding box of the nodes and checks if it includes the given coordinate.

Parameters
bb0Lower bounding box.
bb1Upper bounding box.

Reimplemented in oofem::TR_SHELL01, and oofem::TR_SHELL02.

Definition at line 55 of file spatiallocalizer.C.

References oofem::FloatArray::beMaxOf(), oofem::FloatArray::beMinOf(), and element.

Referenced by SpatialLocalizerI_BBoxContainsPoint().

◆ SpatialLocalizerI_giveClosestPoint()

double oofem::SpatialLocalizerInterface::SpatialLocalizerI_giveClosestPoint ( FloatArray & lcoords,
FloatArray & closest,
const FloatArray & gcoords )
virtual

Gives the closest point on the element. Default implementation uses the element interpolation.

Parameters
[out]lcoordsLocal coordinates of closest point within the element.
[out]closestGlobal coordinates of closest point within the element.
gcoordsGlobal coordinates.
Returns
Distance between answer and gcoords. Zero if gcoords is within the element, negative if point could not be found.

Definition at line 68 of file spatiallocalizer.C.

References oofem::distance(), element, oofem::FEInterpolation::global2local(), and oofem::FEInterpolation::local2global().

Referenced by oofem::OctreeSpatialLocalizer::giveElementClosestToPointWithinOctant().

Member Data Documentation

◆ element

Element* oofem::SpatialLocalizerInterface::element
private

The documentation for this class was generated from the following files:

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011