66 template< SizeType TDim,
class TConfigureType = SpatialContainersConfigure<TDim> >
113 : mrModelPart(rModelPart)
122 : mrModelPart(rOther.mrModelPart)
149 auto paux =
typename BinsType::Pointer(
new BinsType(it_begin, it_end));
169 auto paux =
typename BinsType::Pointer(
new BinsType(it_begin, it_end, CellSize));
201 if (results_found > 0) {
238 bool FindPointOnMesh(
241 typename EntityType::Pointer&
pEntity,
250 if (results_found > 0) {
252 for (
IndexType i = 0; i < static_cast<IndexType>(results_found);
i++) {
257 array_1d<double, 3> point_local_coordinates;
283 bool FindPointOnMeshSimplified(
286 typename EntityType::Pointer&
pEntity,
338 virtual bool LocalIsInside(
342 const double Tolerance = std::numeric_limits<double>::epsilon()
345 return rGeometry.IsInside(rPointGlobalCoordinates, rResult,
Tolerance);
This class is designed to allow the fast location of MANY points on the top of a 3D mesh.
Definition: binbased_fast_point_locator.h:68
array_1d< double, TDim+1 > EntityType::Pointer ResultIteratorType const SizeType MaxNumberOfResults
Definition: binbased_fast_point_locator.h:194
ConfigureType::ResultIteratorType ResultIteratorType
Definition: binbased_fast_point_locator.h:82
BinsObjectDynamic< ConfigureType > BinsType
Definition: binbased_fast_point_locator.h:85
Node NodeType
The definition of the node.
Definition: binbased_fast_point_locator.h:90
array_1d< double, TDim+1 > & rNShapeFunction
Definition: binbased_fast_point_locator.h:191
TConfigureType ConfigureType
The configure type.
Definition: binbased_fast_point_locator.h:74
static void GetContainer(ModelPart &rModelPart, PointerVectorSet< Element, IndexedObject >::ContainerType &rContainerArray)
This operation is defined to the the corresponding container type.
Definition: binbased_fast_point_locator.h:386
& rCoordinates
Definition: binbased_fast_point_locator.h:190
std::size_t SizeType
The size definition.
Definition: binbased_fast_point_locator.h:96
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 ...
std::size_t IndexType
The index definition.
Definition: binbased_fast_point_locator.h:99
static void GetContainer(ModelPart &rModelPart, PointerVectorSet< Condition, IndexedObject >::ContainerType &rContainerArray)
This operation is defined to the the corresponding container type.
Definition: binbased_fast_point_locator.h:399
BinsObjectDynamic< ConfigureType >::CoordinateType BinsCoordinateType
Definition: binbased_fast_point_locator.h:86
void UpdateSearchDatabaseAssignedSize(const BinsCoordinateType CellSize)
Function to construct or update the search database.
Definition: binbased_fast_point_locator.h:159
ConfigureType::EntityType EntityType
Definition: binbased_fast_point_locator.h:78
ConfigureType::PointType PointType
The definition of the different containers.
Definition: binbased_fast_point_locator.h:77
void UpdateSearchDatabase()
Function to construct or update the search database.
Definition: binbased_fast_point_locator.h:139
BinBasedFastPointLocator(BinBasedFastPointLocator const &rOther)
Copy constructor.
Definition: binbased_fast_point_locator.h:121
ConfigureType::ResultContainerType ResultContainerType
Definition: binbased_fast_point_locator.h:81
BinsObjectDynamic< ConfigureType >::PointType BinsPointType
Definition: binbased_fast_point_locator.h:87
ConfigureType::ContainerType ContainerType
Definition: binbased_fast_point_locator.h:79
array_1d< double, TDim+1 > EntityType::Pointer ResultIteratorType const SizeType const double Tolerance
Definition: binbased_fast_point_locator.h:195
BinsType::Pointer mpBinsObjectDynamic
The model part containing the mesh for the search.
Definition: binbased_fast_point_locator.h:371
virtual ~BinBasedFastPointLocator()=default
Destructor.
array_1d< double, TDim+1 > EntityType::Pointer ResultIteratorType ItResultBegin
Definition: binbased_fast_point_locator.h:193
array_1d< double, TDim+1 > EntityType::Pointer & pEntity
Definition: binbased_fast_point_locator.h:192
KRATOS_CLASS_POINTER_DEFINITION(BinBasedFastPointLocator)
Pointer definition of BinBasedFastPointLocator.
Geometry< NodeType > GeometryType
The definition of the geometry.
Definition: binbased_fast_point_locator.h:93
ConfigureType::IteratorType IteratorType
Definition: binbased_fast_point_locator.h:80
BinBasedFastPointLocator(ModelPart &rModelPart)
This is the default constructor.
Definition: binbased_fast_point_locator.h:112
Short class definition.
Definition: bins_dynamic_objects.h:57
TreeNodeType::CoordinateType CoordinateType
Definition: bins_dynamic_objects.h:75
TConfigure::PointType PointType
Definition: bins_dynamic_objects.h:65
Geometry base class.
Definition: geometry.h:71
const Matrix & ShapeFunctionsValues() const
Definition: geometry.h:3393
PointType::CoordinatesArrayType CoordinatesArrayType
Definition: geometry.h:147
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
ConditionsContainerType::ContainerType & ConditionsArray(IndexType ThisIndex=0)
Definition: model_part.h:1401
ElementsContainerType::ContainerType & ElementsArray(IndexType ThisIndex=0)
Definition: model_part.h:1209
This class defines the node.
Definition: node.h:65
TContainerType ContainerType
Definition: pointer_vector_set.h:90
Short class definition.
Definition: array_1d.h:61
BOOST_UBLAS_INLINE const_iterator begin() const
Definition: array_1d.h:606
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
Kratos::ModelPart ModelPart
Definition: kratos_wrapper.h:31
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
REACTION_CHECK_STIFFNESS_FACTOR INNER_LOOP_ITERATION DISTANCE_THRESHOLD ACTIVE_CHECK_FACTOR AUXILIAR_COORDINATES NORMAL_GAP WEIGHTED_GAP WEIGHTED_SCALAR_RESIDUAL bool
Definition: contact_structural_mechanics_application_variables.h:93
Internals::Matrix< double, AMatrix::dynamic, 1 > Vector
Definition: amatrix_interface.h:472
std::size_t SizeType
The definition of the size type.
Definition: mortar_classes.h:43
T & noalias(T &TheMatrix)
Definition: amatrix_interface.h:484
tuple const
Definition: ode_solve.py:403
integer i
Definition: TensorModule.f:17
e
Definition: run_cpp_mpi_tests.py:31
Configure::ResultIteratorType ResultIteratorType
Definition: transfer_utility.h:252
Configure::IteratorType IteratorType
Definition: transfer_utility.h:249
Configure::PointType PointType
Definition: transfer_utility.h:245
Configure::ResultContainerType ResultContainerType
Definition: transfer_utility.h:250
Configure::ContainerType ContainerType
Definition: transfer_utility.h:247