48 static constexpr
auto Epsilon = std::numeric_limits<double>::epsilon();
49 static constexpr
auto Dimension = 3;
90 rHighPoint = rLowPoint = *rObject;
102 auto radiusExtension =
PointType(Radius, Radius, Radius);
104 rLowPoint =
PointType{*rObject - radiusExtension};
105 rHighPoint =
PointType{*rObject + radiusExtension};
128 Distance(rObj_1, rObj_2, distance);
130 if( distance > Epsilon + Radius){
147 for(std::size_t
i = 0;
i < Dimension;
i++) {
148 if( (*rObject)[
i] < rLowPoint[
i] - Epsilon || (*rObject)[
i] > rHighPoint[
i] + Epsilon) {
167 for(std::size_t
i = 0;
i < Dimension;
i++) {
168 if( ((*rObject)[
i] + Radius) < rLowPoint[
i] - Epsilon || ((*rObject)[
i] - Radius) > rHighPoint[
i] + Epsilon) {
183 double pwdDistance = 0.0f;
185 for(std::size_t
i = 0;
i < Dimension;
i++) {
186 pwdDistance += std::pow((*rObj_1)[
i] - (*rObj_2)[
i], 2);
189 distance = std::sqrt(pwdDistance);
193 virtual std::string
Info()
const {
return " Spatial Containers Configure for Nodes to perform a Node Search"; }
231 rOStream << std::endl;
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
This class defines the node.
Definition: node.h:65
Point class.
Definition: point.h:59
This class is used to search for elements, conditions and nodes in a given model part.
Definition: spatial_search.h:50
ModelPart::NodesContainerType NodesContainerType
Nodes classes.
Definition: spatial_search.h:80
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
Point PointType
Geometric definitions.
Definition: mortar_classes.h:36
integer i
Definition: TensorModule.f:17
Configure::ContainerType ContainerType
Definition: transfer_utility.h:247