8 #if !defined(KRATOS_POINT_CONFIGURE)
9 #define KRATOS_POINT_CONFIGURE
47 template <std::
size_t TDimension>
96 r_high_point = r_low_point = *r_p_point;
103 r_high_point = r_low_point = *r_p_point;
105 for (std::size_t
i = 0;
i < 3; ++
i){
115 rCenter = *r_p_point;
131 Distance(r_p_point_1, r_p_point_2, distance);
133 bool intersect = (distance -
radius) <= 0;
145 bool intersect = (r_low_point[0] <= center[0] && r_low_point[1] <= center[1] && r_low_point[2] <= center[2] &&
146 r_high_point[0] >= center[0] && r_high_point[1] >= center[1] && r_high_point[2] >= center[2]);
159 bool intersect = (r_low_point[0] -
radius <= center[0] && r_low_point[1] -
radius <= center[1] && r_low_point[2] -
radius <= center[2] &&
160 r_high_point[0] +
radius >= center[0] && r_high_point[1] +
radius >= center[1] && r_high_point[2] +
radius >= center[2]);
173 distance = sqrt((center_1[0] - center_2[0]) * (center_1[0] - center_2[0]) +
174 (center_1[1] - center_2[1]) * (center_1[1] - center_2[1]) +
175 (center_1[2] - center_2[2]) * (center_1[2] - center_2[2]));
196 virtual std::string
Info()
const {
return " Spatial Containers Configure for Particles"; }
289 template <std::
size_t TDimension>
295 template <std::
size_t TDimension>
298 rOStream << std::endl;
Point class.
Definition: point.h:59
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
TContainerType ContainerType
Definition: pointer_vector_set.h:90
This class is used to search for elements, conditions and nodes in a given model part.
Definition: spatial_search.h:50
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
float radius
Definition: mesh_to_mdpa_converter.py:18
integer i
Definition: TensorModule.f:17