KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
List of all members
Kratos::BinBasedFastPointLocatorConditions< TDim > Class Template Reference

This class is designed to allow the fast location of MANY points on the top of a 3D mesh. (for conditions) More...

#include <binbased_fast_point_locator_conditions.h>

Inheritance diagram for Kratos::BinBasedFastPointLocatorConditions< TDim >:
Collaboration diagram for Kratos::BinBasedFastPointLocatorConditions< TDim >:

Public Member Functions

Life Cycle
 BinBasedFastPointLocatorConditions (ModelPart &rModelPart)
 This is the default constructor. More...
 
 ~BinBasedFastPointLocatorConditions () override=default
 Destructor. More...
 
- Public Member Functions inherited from Kratos::BinBasedFastPointLocator< TDim, SpatialContainersConfigure< TDim, Condition > >
 BinBasedFastPointLocator (ModelPart &rModelPart)
 This is the default constructor. More...
 
 BinBasedFastPointLocator (BinBasedFastPointLocator const &rOther)
 Copy constructor. More...
 
virtual ~BinBasedFastPointLocator ()=default
 Destructor. More...
 
 KRATOS_CLASS_POINTER_DEFINITION (BinBasedFastPointLocator)
 Pointer definition of BinBasedFastPointLocator. More...
 
void UpdateSearchDatabase ()
 Function to construct or update the search database. More...
 
void UpdateSearchDatabaseAssignedSize (const BinsCoordinateType CellSize)
 Function to construct or update the search database. More...
 
 KRATOS_DEPRECATED_MESSAGE ("This is legacy version (using array instead of vector for shape function)") bool FindPointOnMesh(const array_1d< double
 This function should find the element into which a given node is located and return a pointer to the element and the vector containing the shape functions that define the postion within the element. More...
 

Type Definitions

typedef BinBasedFastPointLocator< TDim, SpatialContainersConfigure< TDim, Condition > > BaseType
 The base type definition. More...
 
 KRATOS_CLASS_POINTER_DEFINITION (BinBasedFastPointLocatorConditions)
 Pointer definition of BinBasedFastPointLocatorConditions. More...
 

Additional Inherited Members

- Public Types inherited from Kratos::BinBasedFastPointLocator< TDim, SpatialContainersConfigure< TDim, Condition > >
typedef SpatialContainersConfigure< TDim, ConditionConfigureType
 The configure type. More...
 
typedef ConfigureType::PointType PointType
 The definition of the different containers. More...
 
typedef ConfigureType::EntityType EntityType
 
typedef ConfigureType::ContainerType ContainerType
 
typedef ConfigureType::IteratorType IteratorType
 
typedef ConfigureType::ResultContainerType ResultContainerType
 
typedef ConfigureType::ResultIteratorType ResultIteratorType
 
typedef BinsObjectDynamic< ConfigureTypeBinsType
 
typedef BinsObjectDynamic< ConfigureType >::CoordinateType BinsCoordinateType
 
typedef BinsObjectDynamic< ConfigureType >::PointType BinsPointType
 
typedef Node NodeType
 The definition of the node. More...
 
typedef Geometry< NodeTypeGeometryType
 The definition of the geometry. More...
 
typedef std::size_t SizeType
 The size definition. More...
 
typedef std::size_t IndexType
 The index definition. More...
 
- Static Public Member Functions inherited from Kratos::BinBasedFastPointLocator< TDim, SpatialContainersConfigure< TDim, Condition > >
static void GetContainer (ModelPart &rModelPart, PointerVectorSet< Element, IndexedObject >::ContainerType &rContainerArray)
 This operation is defined to the the corresponding container type. More...
 
static void GetContainer (ModelPart &rModelPart, PointerVectorSet< Condition, IndexedObject >::ContainerType &rContainerArray)
 This operation is defined to the the corresponding container type. More...
 
- Public Attributes inherited from Kratos::BinBasedFastPointLocator< TDim, SpatialContainersConfigure< TDim, Condition > >
array_1d< double, TDim+1 > EntityType::Pointer ResultIteratorType const SizeType const double Tolerance
 
BinsType::Pointer mpBinsObjectDynamic
 The model part containing the mesh for the search. More...
 
rCoordinates
 
array_1d< double, TDim+1 > & rNShapeFunction
 
array_1d< double, TDim+1 > EntityType::Pointer & pEntity
 
array_1d< double, TDim+1 > EntityType::Pointer ResultIteratorType ItResultBegin
 
array_1d< double, TDim+1 > EntityType::Pointer ResultIteratorType const SizeType MaxNumberOfResults
 

Detailed Description

template<SizeType TDim>
class Kratos::BinBasedFastPointLocatorConditions< TDim >

This class is designed to allow the fast location of MANY points on the top of a 3D mesh. (for conditions)

The utility relies on the creation of a Bin of objects that allows finding quikly a reduced number of condition candidates for the location of a point. The basic idea is to allow finding the condition in which a given spatial position sits The user should call the function "UpdateSearchDatabase" to mount the bin and subsequently locate the points as needed

Author
Vicente Mataix Ferrandiz
Note
The location function is threadsafe, and can be used in OpenMP loops
Template Parameters
TDimIf we work in a 2D or 3D space

Member Typedef Documentation

◆ BaseType

The base type definition.

Constructor & Destructor Documentation

◆ BinBasedFastPointLocatorConditions()

template<SizeType TDim>
Kratos::BinBasedFastPointLocatorConditions< TDim >::BinBasedFastPointLocatorConditions ( ModelPart rModelPart)
inline

This is the default constructor.

Parameters
rModelPartThe model part of the mesh used in the search

◆ ~BinBasedFastPointLocatorConditions()

template<SizeType TDim>
Kratos::BinBasedFastPointLocatorConditions< TDim >::~BinBasedFastPointLocatorConditions ( )
overridedefault

Destructor.

Member Function Documentation

◆ KRATOS_CLASS_POINTER_DEFINITION()

template<SizeType TDim>
Kratos::BinBasedFastPointLocatorConditions< TDim >::KRATOS_CLASS_POINTER_DEFINITION ( BinBasedFastPointLocatorConditions< TDim >  )

Pointer definition of BinBasedFastPointLocatorConditions.


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