61 bb0.
beMinOf(bb0, * coordinates);
62 bb1.
beMaxOf(bb1, * coordinates);
89 for (
int j = 1; j <= size; j++ ) {
90 if ( coords.
at(j) < coordMin.
at(j) || coords.
at(j) > coordMax.
at(j) ) {
111 this->giveAllNodesWithinBox(nodesWithinBox, coords, radius);
113 for (
int node: nodesWithinBox ) {
115 for (
int i = 1; i <= dofmanConnectivity->
giveSize(); i++ ) {
double & at(int i)
Coefficient access function.
bool insertSortedOnce(int value, int allocChunk=0)
Inserts given value into a receiver, which is assumed to be sorted.
virtual void giveAllElementsWithNodesWithinBox(elementContainerType &elemSet, const FloatArray &coords, const double radius)
Returns container (set) of all domain elements having node within given box.
Class implementing an array of integers.
int & at(int i)
Coefficient access function.
virtual FEInterpolation * giveInterpolation() const
void beMaxOf(const FloatArray &a, const FloatArray &b)
Sets receiver to maximum of a or b's respective elements.
virtual int giveNumberOfNodes() const
Returns number of nodes of receiver.
std::list< int > nodeContainerType
Typedefs to introduce the container type for nodal numbers, returned by some services.
double distance(const FloatArray &x) const
Computes the distance between position represented by receiver and position given as parameter...
Class representing a general abstraction for finite element interpolation class.
virtual double SpatialLocalizerI_giveClosestPoint(FloatArray &lcoords, FloatArray &closest, const FloatArray &gcoords)
Gives the closest point on the element.
void beMinOf(const FloatArray &a, const FloatArray &b)
Sets receiver to be minimum of a or b's respective elements.
void clear()
Clears the array (zero size).
Class representing connectivity table.
Wrapper around element definition to provide FEICellGeometry interface.
virtual int global2local(FloatArray &answer, const FloatArray &gcoords, const FEICellGeometry &cellgeo)=0
Evaluates local coordinates from given global ones.
virtual void SpatialLocalizerI_giveBBox(FloatArray &bb0, FloatArray &bb1)
Creates a bounding box of the nodes and checks if it includes the given coordinate.
virtual int SpatialLocalizerI_containsPoint(const FloatArray &coords)
Checks if element contains specified coordinate.
Class representing vector of real numbers.
const IntArray * giveDofManConnectivityArray(int dofman)
virtual bool computeLocalCoordinates(FloatArray &answer, const FloatArray &gcoords)
Computes the element local coordinates from given global coordinates.
virtual FloatArray * giveCoordinates()
int min(int i, int j)
Returns smaller value from two given decimals.
int giveSize() const
Returns the size of receiver.
the oofem namespace is to define a context or scope in which all oofem names are defined.
Node * giveNode(int i) const
Returns reference to the i-th node of element.
int SpatialLocalizerI_BBoxContainsPoint(const FloatArray &coords)
Creates a bounding box of the nodes and checks if it includes the given coordinate.
virtual void local2global(FloatArray &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo)=0
Evaluates global coordinates from given local ones.