1 #ifndef DEM_SEARCH_UTILITIES_H
2 #define DEM_SEARCH_UTILITIES_H
71 template<
class TVariableType>
91 template<
class TVariableType>
110 template<
class TVariableType>
130 template<
class TVariableType>
134 KRATOS_ERROR <<
"This function uses FastGetSolutionStepValue(RADIUS) instead of the list of radii!" << std::endl;
136 if(rSearchNodes.
size() && rBinsNodes.
size())
138 std::size_t node_size = rSearchNodes.
size();
157 int i = it - rSearchNodes.
begin();
171 it->FastGetSolutionStepValue(rDistanceVar) = minDist;
184 virtual std::string
Info()
const
MeshType & LocalMesh()
Returns the reference to the mesh storing all local entities.
Definition: communicator.cpp:245
Definition: search_utilities.h:25
SpatialSearchPtrType mSpatialSearch
Definition: search_utilities.h:211
virtual ~DemSearchUtilities()
Destructor.
Definition: search_utilities.h:52
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: search_utilities.h:197
virtual std::string Info() const
Definition: search_utilities.h:184
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: search_utilities.h:191
SpatialSearch::NodesContainerType NodesArrayType
Definition: search_utilities.h:31
SpatialSearch::ElementsContainerType ElementsArrayType
Definition: search_utilities.h:30
SpatialSearch::Pointer SpatialSearchPtrType
Definition: search_utilities.h:28
VectorResultNodesContainerType mNodesResults
Definition: search_utilities.h:208
DemSearchUtilities(SpatialSearchPtrType pSpatialSearch)
Default constructor.
Definition: search_utilities.h:45
SpatialSearch::VectorResultNodesContainerType VectorResultNodesContainerType
Definition: search_utilities.h:37
SpatialSearch::VectorResultElementsContainerType VectorResultElementsContainerType
Definition: search_utilities.h:36
void SearchNodeNeigboursDistances(NodesArrayType &rSearchNodes, ModelPart &rBinsModelPart, const double &rSearchRadius, const TVariableType &rDistanceVar)
Definition: search_utilities.h:111
VectorDistanceType mResultsDistances
Definition: search_utilities.h:209
std::vector< unsigned int > mPartition
Definition: search_utilities.h:213
void SearchNodeNeigboursDistances(ModelPart &rSearchModelPart, ModelPart &rBinsModelPart, const double &rSearchRadius, const TVariableType &rDistanceVar)
Definition: search_utilities.h:72
std::vector< double > RadiusArrayType
Definition: search_utilities.h:39
RadiusArrayType mSearchRadii
Definition: search_utilities.h:206
KRATOS_CLASS_POINTER_DEFINITION(DemSearchUtilities)
void SearchNodeNeigboursDistances(NodesArrayType &rSearchNodes, NodesArrayType &rBinsNodes, const double &rSearchRadius, const TVariableType &rDistanceVar)
Definition: search_utilities.h:131
SpatialSearch::VectorDistanceType VectorDistanceType
Definition: search_utilities.h:35
SpatialSearch::NodesContainerType::ContainerType NodesContainerType
Definition: search_utilities.h:33
void SearchNodeNeigboursDistances(ModelPart &rSearchModelPart, NodesArrayType &rBinsNodes, const double &rSearchRadius, const TVariableType &rDistanceVar)
Definition: search_utilities.h:92
NodesContainerType & Nodes()
Definition: mesh.h:346
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
Communicator & GetCommunicator()
Definition: model_part.h:1821
A sorted associative container similar to an STL set, but uses a vector to store pointers to its data...
Definition: pointer_vector_set.h:72
boost::indirect_iterator< typename TContainerType::iterator > iterator
Definition: pointer_vector_set.h:95
size_type size() const
Returns the number of elements in the container.
Definition: pointer_vector_set.h:502
TContainerType ContainerType
Definition: pointer_vector_set.h:90
iterator begin()
Returns an iterator pointing to the beginning of the container.
Definition: pointer_vector_set.h:278
iterator end()
Returns an iterator pointing to the end of the container.
Definition: pointer_vector_set.h:314
std::vector< DistanceType > VectorDistanceType
Definition: spatial_search.h:97
std::vector< ResultNodesContainerType > VectorResultNodesContainerType
Definition: spatial_search.h:82
std::vector< ResultElementsContainerType > VectorResultElementsContainerType
Definition: spatial_search.h:87
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
#define KRATOS_ERROR
Definition: exception.h:161
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
int j
Definition: quadrature.py:648
integer i
Definition: TensorModule.f:17