13 #if !defined(KRATOS_BRUTE_FORCE_POINT_LOCATOR_H_INCLUDED)
14 #define KRATOS_BRUTE_FORCE_POINT_LOCATOR_H_INCLUDED
72 int FindNode(
const Point& rThePoint,
74 const double DistanceThreshold = 1
e-6 )
const;
84 int FindElement(
const Point& rThePoint,
85 Vector& rShapeFunctionValues,
87 const double LocalCoordTol = 1
e-6)
const;
97 int FindCondition(
const Point& rThePoint,
98 Vector& rShapeFunctionValues,
100 const double LocalCoordTol = 1
e-6)
const;
107 virtual std::string
Info()
const
109 std::stringstream buffer;
110 buffer <<
"BruteForcePointLocator" ;
115 virtual void PrintInfo(std::ostream& rOStream)
const {rOStream <<
"BruteForcePointLocator";}
142 template<
typename TObjectType>
143 void FindObject(
const TObjectType& rObjects,
const std::string& rObjectType,
144 const Point& rThePoint,
int& rObjectId,
Vector& rShapeFunctionValues,
153 void CheckResults(
const std::string& rObjectType,
154 const Point& rThePoint,
155 const int LocalObjectFound)
const;
165 bool NodeIsCloseEnough(
const Node& rNode,
166 const Point& rThePoint,
168 const double DistanceThreshold)
const;
183 rOStream << std::endl;
Utility class to find an entity of a mesh based on a location.
Definition: brute_force_point_locator.h:43
KRATOS_CLASS_POINTER_DEFINITION(BruteForcePointLocator)
Pointer definition of BruteForcePointLocator.
virtual ~BruteForcePointLocator()=default
Destructor.
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: brute_force_point_locator.h:118
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: brute_force_point_locator.h:115
virtual std::string Info() const
Turn back information as a string.
Definition: brute_force_point_locator.h:107
BruteForcePointLocator(ModelPart &rModelPart)
Default constructor.
Definition: brute_force_point_locator.h:56
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
This class defines the node.
Definition: node.h:65
Point class.
Definition: point.h:59
Configuration
Enum for Initial and Current configurations.
Definition: global_variables.h:38
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
e
Definition: run_cpp_mpi_tests.py:31