KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
Configuration file for nodes. More...
#include <node_configure_for_node_search.h>
Public Types | |
Type Definitions | |
typedef SpatialSearch | SearchType |
typedef SearchType::PointType | PointType |
typedef SearchType::NodesContainerType::ContainerType | ContainerType |
typedef SearchType::NodesContainerType | NodesContainerType |
typedef SearchType::NodeType | NodeType |
typedef ContainerType::value_type | PointerType |
typedef ContainerType::iterator | IteratorType |
typedef SearchType::NodesContainerType::ContainerType | ResultContainerType |
typedef ResultContainerType::iterator | ResultIteratorType |
typedef std::vector< double >::iterator | DistanceIteratorType |
Public Member Functions | |
KRATOS_CLASS_POINTER_DEFINITION (NodeConfigureForNodeSearch) | |
Pointer definition of NodeConfigureForNodeSearch. More... | |
Life Cycle | |
NodeConfigureForNodeSearch () | |
Default constructor. More... | |
virtual | ~NodeConfigureForNodeSearch () |
Default destructor. More... | |
Static Public Attributes | |
static constexpr auto | Epsilon = std::numeric_limits<double>::epsilon() |
Compile time definitions. More... | |
static constexpr auto | Dimension = 3 |
Operations | |
virtual std::string | Info () const |
Turn back information as a string. More... | |
virtual void | PrintInfo (std::ostream &rOStream) const |
Print information about this object. More... | |
virtual void | PrintData (std::ostream &rOStream) const |
Print object's data. More... | |
static void | CalculateBoundingBox (const PointerType &rObject, PointType &rLowPoint, PointType &rHighPoint) |
Calculates the bounding box for the given object. More... | |
static void | CalculateBoundingBox (const PointerType &rObject, PointType &rLowPoint, PointType &rHighPoint, const double Radius) |
Calculates the bounding box for the given object extended with a Radius. More... | |
static void | CalculateCenter (const PointerType &rObject, PointType &rCenter) |
Calculates the Center of the object. More... | |
static bool | Intersection (const PointerType &rObj_1, const PointerType &rObj_2, const double Radius) |
Tests the intersection of two objects extended with a given radius. More... | |
static bool | IntersectionBox (const PointerType &rObject, const PointType &rLowPoint, const PointType &rHighPoint) |
Tests the intersection of one object with a boundingbox described by 'rLowPoint' and 'rHighPoint'. More... | |
static bool | IntersectionBox (const PointerType &rObject, const PointType &rLowPoint, const PointType &rHighPoint, const double Radius) |
Tests the intersection of one object with a boundingbox described by 'rLowPoint' and 'rHighPoint'. More... | |
static void | Distance (const PointerType &rObj_1, const PointerType &rObj_2, double &distance) |
Calculates the distance between two objects. More... | |
Configuration file for nodes.
This class provides a configuration file for nodes to perform a node search depending on the euclidean distance between two nodes.
typedef SearchType::NodesContainerType::ContainerType Kratos::NodeConfigureForNodeSearch::ContainerType |
typedef std::vector<double>::iterator Kratos::NodeConfigureForNodeSearch::DistanceIteratorType |
typedef ContainerType::iterator Kratos::NodeConfigureForNodeSearch::IteratorType |
typedef ContainerType::value_type Kratos::NodeConfigureForNodeSearch::PointerType |
typedef SearchType::NodesContainerType::ContainerType Kratos::NodeConfigureForNodeSearch::ResultContainerType |
typedef ResultContainerType::iterator Kratos::NodeConfigureForNodeSearch::ResultIteratorType |
|
inline |
Default constructor.
|
inlinevirtual |
Default destructor.
|
inlinestatic |
Calculates the bounding box for the given object.
For this configuation file, the bounding box is equal to the point given in 'rObject'.
rObject | Point for which the bounding box will be calculated. |
rLowPoint | Lower point of the boundingbox. |
rHighPoint | Higher point of the boundingbox. |
|
inlinestatic |
Calculates the bounding box for the given object extended with a Radius.
For this configuation file, the bounding box is equal to the point given in 'rObject' + - a radius.
rObject | Point for which the bounding box will be calculated. |
rLowPoint | Lower point of the boundingbox. |
rHighPoint | Higher point of the boundingbox. |
Radius | The extension radius to be applied to the boundingbox. |
|
inlinestatic |
Calculates the Center of the object.
rObject | Point for which the bounding box will be calculated. |
rCenter | The center point of the object. |
|
inlinestatic |
Calculates the distance between two objects.
rObj_1 | First point. |
rObj_2 | Second point |
distance | The euclidean distance between 'rObj_1' and 'rObj_2'. |
|
inlinevirtual |
Turn back information as a string.
|
inlinestatic |
Tests the intersection of two objects extended with a given radius.
For this configuation file, tests if euclidean distance between the two nodes is smaller than the provided 'Radius' within an Epsilon tolerance range.
rObj_1 | First point of the test. |
rObj_2 | Second point of the test. |
Radius | The extension radius to be applied in the intersection. |
|
inlinestatic |
Tests the intersection of one object with a boundingbox described by 'rLowPoint' and 'rHighPoint'.
For this configuation file, tests if one point is inside the boundingbox described by 'rLowPoint' and 'rHighPoint' within an Epsilon tolerance range.
rObject | Point of the tests. |
rLowPoint | Lower point of the boundingbox. |
rHighPoint | Higher point of the boundingbox. |
|
inlinestatic |
Tests the intersection of one object with a boundingbox described by 'rLowPoint' and 'rHighPoint'.
For this configuation file, tests if one point extended by radius is inside the boundingbox described by 'rLowPoint' and 'rHighPoint' within an Epsilon tolerance range.
rObject | Point of the tests. |
rLowPoint | Lower point of the boundingbox. |
rHighPoint | Higher point of the boundingbox. |
Radius | The extension radius to be applied in the intersection. |
Kratos::NodeConfigureForNodeSearch::KRATOS_CLASS_POINTER_DEFINITION | ( | NodeConfigureForNodeSearch | ) |
Pointer definition of NodeConfigureForNodeSearch.
|
inlinevirtual |
Print object's data.
|
inlinevirtual |
Print information about this object.
|
staticconstexpr |
|
staticconstexpr |
Compile time definitions.
Epsilon | Error tolerance for comparison operations with doubles |
Dimension | Dimension of the problem. Fixed to 3. |