|
OOFEM 3.0
|
#include <spatiallocalizer.h>
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 | |
| Element * | element |
The spatial localizer element interface associated to spatial localizer.
Definition at line 59 of file spatiallocalizer.h.
|
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().
| int oofem::SpatialLocalizerInterface::SpatialLocalizerI_BBoxContainsPoint | ( | const FloatArray & | coords | ) |
Creates a bounding box of the nodes and checks if it includes the given coordinate.
| coords | Global coordinate. |
Definition at line 83 of file spatiallocalizer.C.
References oofem::FloatArray::at(), oofem::FloatArray::giveSize(), oofem::min(), and SpatialLocalizerI_giveBBox().
|
virtual |
Checks if element contains specified coordinate. Default implementation uses Element::computeLocalCoordinates.
| coords | Global coordinate. |
Reimplemented in oofem::Tr_Warp.
Definition at line 48 of file spatiallocalizer.C.
References element.
|
virtual |
Creates a bounding box of the nodes and checks if it includes the given coordinate.
| bb0 | Lower bounding box. |
| bb1 | Upper 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().
|
virtual |
Gives the closest point on the element. Default implementation uses the element interpolation.
| [out] | lcoords | Local coordinates of closest point within the element. |
| [out] | closest | Global coordinates of closest point within the element. |
| gcoords | Global coordinates. |
Definition at line 68 of file spatiallocalizer.C.
References oofem::distance(), element, oofem::FEInterpolation::global2local(), and oofem::FEInterpolation::local2global().
Referenced by oofem::OctreeSpatialLocalizer::giveElementClosestToPointWithinOctant().
|
private |
Definition at line 62 of file spatiallocalizer.h.
Referenced by SpatialLocalizerI_containsPoint(), SpatialLocalizerI_giveBBox(), SpatialLocalizerI_giveClosestPoint(), and SpatialLocalizerInterface().