OOFEM 3.0
Loading...
Searching...
No Matches
oofem::UnstructuredGridField::CellContainingPointFunctor Class Reference

#include <unstructuredgridfield.h>

Inheritance diagram for oofem::UnstructuredGridField::CellContainingPointFunctor:
Collaboration diagram for oofem::UnstructuredGridField::CellContainingPointFunctor:

Public Member Functions

 CellContainingPointFunctor (const FloatArray &pos)
 ~CellContainingPointFunctor ()
bool evaluate (Cell &c) override
void giveStartingPosition (FloatArray &answer) override
void giveResult (std::list< Cell > &answer) override
bool isBBXStage1Defined (BoundingBox &BBXStage1) override
bool isBBXStage2Defined (BoundingBox &BBXStage2) override
Public Member Functions inherited from oofem::SL_Evaluation_Functor< Cell >
virtual bool evaluate (Cell &obj)=0
 Evaluates wether the search condition is accomplished or not.
virtual void giveResult (std ::list< Cell > &answer)=0
 Gives a container with found objects.

Protected Attributes

FloatArray position
std::list< Cellcells

Detailed Description

Definition at line 240 of file unstructuredgridfield.h.

Constructor & Destructor Documentation

◆ CellContainingPointFunctor()

oofem::UnstructuredGridField::CellContainingPointFunctor::CellContainingPointFunctor ( const FloatArray & pos)
inline

Constructor

Parameters
posStarting position of the search
dDomain containing nodes the triangles are defined by

Definition at line 251 of file unstructuredgridfield.h.

References position.

◆ ~CellContainingPointFunctor()

oofem::UnstructuredGridField::CellContainingPointFunctor::~CellContainingPointFunctor ( )
inline

Definition at line 252 of file unstructuredgridfield.h.

Member Function Documentation

◆ evaluate()

bool oofem::UnstructuredGridField::CellContainingPointFunctor::evaluate ( Cell & c)
inlineoverride

Evaluates a triangle upon its circumscribed cricle.

Parameters
DTptrDelaunay triangle. nodeNr Number of the node in the domain list
Returns
true if the circumscribed circle of the Delaunay triangle contains the point, false otherwise

Definition at line 259 of file unstructuredgridfield.h.

References cells, oofem::UnstructuredGridField::Cell::containsPoint(), and position.

◆ giveResult()

void oofem::UnstructuredGridField::CellContainingPointFunctor::giveResult ( std::list< Cell > & answer)
inlineoverride

Gives the triangles containing the node

Parameters
answerList containing Delaunay triangles

Definition at line 282 of file unstructuredgridfield.h.

References cells.

◆ giveStartingPosition()

void oofem::UnstructuredGridField::CellContainingPointFunctor::giveStartingPosition ( FloatArray & answer)
inlineoverridevirtual

Gives the starting position of the search

Parameters
positionstartingPosition

Implements oofem::SL_Evaluation_Functor< Cell >.

Definition at line 273 of file unstructuredgridfield.h.

References position.

◆ isBBXStage1Defined()

bool oofem::UnstructuredGridField::CellContainingPointFunctor::isBBXStage1Defined ( BoundingBox & BBXStage1)
inlineoverridevirtual

Stage1 means, we are looking for objects in a distance given by some boundingBox (e.g. IPs around some given coordinates)

Implements oofem::SL_Evaluation_Functor< Cell >.

Definition at line 285 of file unstructuredgridfield.h.

◆ isBBXStage2Defined()

bool oofem::UnstructuredGridField::CellContainingPointFunctor::isBBXStage2Defined ( BoundingBox & BBXStage2)
inlineoverridevirtual

Stage2BBX is given by results of a prior search. e.g. We found a closest point to another point in an octant, BBX is defined by the distance from each other and the found closest point. Now we have to check surrounding octants whithin this bounding, which may contain points closer to starting point.

Implements oofem::SL_Evaluation_Functor< Cell >.

Definition at line 286 of file unstructuredgridfield.h.

Member Data Documentation

◆ cells

std::list< Cell > oofem::UnstructuredGridField::CellContainingPointFunctor::cells
protected

Definition at line 244 of file unstructuredgridfield.h.

Referenced by evaluate(), and giveResult().

◆ position

FloatArray oofem::UnstructuredGridField::CellContainingPointFunctor::position
protected

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

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