|
OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
The spatial localizer element interface associated to spatial localizer. More...
#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) |
| Checks if element contains specified coordinate. More... | |
| int | SpatialLocalizerI_BBoxContainsPoint (const FloatArray &coords) |
| Creates a bounding box of the nodes and checks if it includes the given coordinate. More... | |
| virtual void | SpatialLocalizerI_giveBBox (FloatArray &bb0, FloatArray &bb1) |
| Creates a bounding box of the nodes and checks if it includes the given coordinate. More... | |
| virtual double | SpatialLocalizerI_giveClosestPoint (FloatArray &lcoords, FloatArray &closest, const FloatArray &gcoords) |
| Gives the closest point on the element. More... | |
Public Member Functions inherited from oofem::Interface | |
| Interface () | |
| Constructor. More... | |
| 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.
| 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 oofem::Element::computeLocalCoordinates(), and 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(), element, oofem::Node::giveCoordinates(), oofem::Element::giveNode(), and oofem::Element::giveNumberOfNodes().
Referenced by oofem::OctreeSpatialLocalizer::initElementDataStructure(), and 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::FloatArray::distance(), element, oofem::Element::giveInterpolation(), oofem::FEInterpolation::global2local(), and oofem::FEInterpolation::local2global().
Referenced by oofem::DummySpatialLocalizer::giveElementClosestToPoint(), and oofem::OctreeSpatialLocalizer::giveElementClosestToPointWithinOctant().
|
private |
Definition at line 62 of file spatiallocalizer.h.
Referenced by SpatialLocalizerI_containsPoint(), SpatialLocalizerI_giveBBox(), and SpatialLocalizerI_giveClosestPoint().