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.h>
Public Member Functions | |
KRATOS_CLASS_POINTER_DEFINITION (NodeConfigure) | |
Pointer definition of NodeConfigure. More... | |
KRATOS_CLASS_POINTER_DEFINITION (NodeConfigure) | |
Pointer definition of SpatialContainersConfigure. More... | |
NodeConfigure () | |
virtual | ~NodeConfigure () |
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... | |
Life Cycle | |
NodeConfigure () | |
Default consturctor. More... | |
virtual | ~NodeConfigure () |
Default destructor. More... | |
Input and output | |
virtual std::string | Info () const |
Turns back information as a string. More... | |
virtual std::string | Data () const |
Turns back data as a string. More... | |
virtual void | PrintInfo (std::ostream &rOStream) const |
Prints object's information. More... | |
virtual void | PrintData (std::ostream &rOStream) const |
Prints object's data. More... | |
Static Public Member Functions | |
static void | SetDomain (const double domain_min_x, const double domain_min_y, const double domain_min_z, const double domain_max_x, const double domain_max_y, const double domain_max_z) |
static void | SetPeriods (double domain_period_x, double domain_period_y, double domain_period_z) |
static double * | GetMinPoint () |
static double * | GetMaxPoint () |
static void | GetPeriods (double periods[3]) |
static bool | GetDomainPeriodicity () |
static void | TransformToClosestPeriodicCoordinates (const double target[3], double base_coordinates[3]) |
static void | TransformToClosestPeriodicCoordinates (const array_1d< double, 3 > &target, array_1d< double, 3 > &base_coordinates) |
static void | TransformToClosestPeriodicCoordinates (const double target[3], double base_coordinates[3], const double periods[3]) |
static void | TransformToClosestPeriodicCoordinates (const array_1d< double, 3 > &target, array_1d< double, 3 > &base_coordinates, const double periods[3]) |
static void | GetBoxCenter (double box_center[3], const double min_point[3], const double max_point[3]) |
static void | CalculateBoundingBox (const PointerType &rObject, PointType &rLowPoint, PointType &rHighPoint) |
static void | CalculateBoundingBox (const PointerType &rObject, PointType &rLowPoint, PointType &rHighPoint, const double &Radius) |
static void | CalculateCenter (const PointerType &rObject, PointType &rCenter) |
static bool | Intersection (const PointerType &rObj_1, const PointerType &rObj_2) |
static bool | Intersection (const PointerType &rObj_1, const PointerType &rObj_2, const double &Radius) |
static bool | IntersectionBox (const PointerType &rObject, const PointType &rLowPoint, const PointType &rHighPoint) |
static bool | IntersectionBox (const PointerType &rObject, const PointType &rLowPoint, const PointType &rHighPoint, const double Radius) |
static void | Distance (const PointerType &rObj_1, const PointerType &rObj_2, double &distance) |
static void | SquaredDistance (const PointerType &rObj_1, const PointerType &rObj_2, double &squared_distance) |
Operations | |
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 &rCentralPoint) |
Calculates the Center of the object. More... | |
static bool | Intersection (const PointerType &rObj_1, const PointerType &rObj_2) |
Tests the intersection of two objects. More... | |
static bool | Intersection (const PointerType &rObj_1, const PointerType &rObj_2, 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 descrived 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 descrived by 'rLowPoint' and 'rHighPoint'. More... | |
static void | Distance (const PointerType &rObj_1, const PointerType &rObj_2, double &distance) |
Calculates the distance betwen two objects. More... | |
static double | GetObjectRadius (const PointerType &rObject, const double Radius) |
Returns a radius associated to the object. More... | |
Static Public Attributes | |
static constexpr auto | Epsilon = std::numeric_limits<double>::epsilon() |
Compile time definitions. More... | |
static constexpr auto | Dimension = 3 |
static double | mDomainPeriods [3] = {-1.0, -1.0, -1.0} |
static double | mDomainMin [3] = {0.0, 0.0, 0.0} |
static double | mDomainMax [3] = {-1.0, -1.0, -1.0} |
static bool | mDomainIsPeriodic = false |
Configuration file for Nodes.
This class provides a configuration file to calculate a 'Bins' using nodes.
typedef ContactPair<PointerType> Kratos::NodeConfigure< TDimension >::ContactPairType |
typedef SearchType::NodesContainerType::ContainerType Kratos::NodeConfigure< TDimension >::ContainerType |
typedef ObjectContainerType::ContainerType Kratos::NodeConfigure< TDimension >::ContainerType |
typedef Tvector<CoordinateType,Dimension> Kratos::NodeConfigure< TDimension >::CoordinateArray |
typedef double Kratos::NodeConfigure< TDimension >::CoordinateType |
typedef std::vector<double>::iterator Kratos::NodeConfigure< TDimension >::DistanceIteratorType |
typedef std::vector<double>::iterator Kratos::NodeConfigure< TDimension >::DistanceIteratorType |
typedef ContainerType::iterator Kratos::NodeConfigure< TDimension >::IteratorType |
typedef ContainerType::iterator Kratos::NodeConfigure< TDimension >::IteratorType |
typedef SearchType::NodesContainerType Kratos::NodeConfigure< TDimension >::NodesContainerType |
typedef SearchType::NodeType Kratos::NodeConfigure< TDimension >::NodeType |
typedef PointerVectorSet<ObjectType,IndexedObject> Kratos::NodeConfigure< TDimension >::ObjectContainerType |
Additional types needed by the bins.
PointContainerType | Point Container. |
ContainerType | Base container Type. |
ResultContainerType | Result Container. For this configure should be the same as ContainerType. |
ContactPairType | Contact pair for points. |
IteratorType | Iterator of points. |
ResultIteratorType | Iterator of results. For this configure should be the same as PointIteratorType. |
DistanceIteratorType | Iterato of distances (doubles) |
typedef Node Kratos::NodeConfigure< TDimension >::ObjectType |
typedef ContainerType::value_type Kratos::NodeConfigure< TDimension >::PointerType |
typedef ObjectType::Pointer Kratos::NodeConfigure< TDimension >::PointerType |
typedef SearchType::PointType Kratos::NodeConfigure< TDimension >::PointType |
typedef Point Kratos::NodeConfigure< TDimension >::PointType |
typedef SearchType::NodesContainerType::ContainerType Kratos::NodeConfigure< TDimension >::ResultContainerType |
typedef ObjectContainerType::ContainerType Kratos::NodeConfigure< TDimension >::ResultContainerType |
typedef ResultContainerType::iterator Kratos::NodeConfigure< TDimension >::ResultIteratorType |
typedef ResultContainerType::iterator Kratos::NodeConfigure< TDimension >::ResultIteratorType |
typedef SpatialSearch Kratos::NodeConfigure< TDimension >::SearchType |
|
inline |
Default consturctor.
|
inlinevirtual |
Default destructor.
|
inline |
|
inlinevirtual |
|
inlinestatic |
|
inlinestatic |
Calculates the bounding box for the given object.
For this configuation file, the bounding box is the 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 |
|
inlinestatic |
Calculates the bounding box for the given object extended with a Radius.
For this configuation file, the bounding box is the 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 |
|
inlinestatic |
Calculates the Center of the object.
rObject | Point for which the bounding box will be calculated. |
rCentralPoint | The center point of the object. |
|
inlinevirtual |
Turns back data as a string.
|
inlinestatic |
|
inlinestatic |
Calculates the distance betwen two objects.
For this configuation file, calculates the euclidean distance between 'rObj_1' and 'rObj_2'.
rObj_1 | First point. |
rObj_2 | Second point |
distance | The euclidean distance between 'rObj_1' and 'rObj_2'. |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Returns a radius associated to the object.
Returns a radius associated to the object
rObject | The object |
Radius | An extension factor. |
|
inlinestatic |
|
inlinevirtual |
Turn back information as a string.
|
inlinevirtual |
Turns back information as a string.
|
inlinestatic |
|
inlinestatic |
Tests the intersection of two objects.
For this configuation file, tests if the two points are the same within a Epsilon tolerance range.
rObj_1 | First point of the tests |
rObj_2 | Second point of the tests |
|
inlinestatic |
|
inlinestatic |
Tests the intersection of two objects extended with a given radius.
For this configuation file, tests if the two points extended with a radius are the same within a Epsilon tolerance range.
rObj_1 | First point of the tests |
rObj_2 | Second point of the tests |
Radius | The extension radius to be applied in the intersection. |
|
inlinestatic |
|
inlinestatic |
Tests the intersection of one object with a boundingbox descrived by 'rLowPoint' and 'rHighPoint'.
For this configuation file, tests if one point is inside the boundingbox described by 'rLowPoint' and 'rHighPoint' within a Epsilon tolerance range.
rObject | Point of the tests. |
rLowPoint | Lower point of the boundingbox. |
rHighPoint | Higher point of the boundingbox. |
|
inlinestatic |
|
inlinestatic |
Tests the intersection of one object with a boundingbox descrived 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 a 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::NodeConfigure< TDimension >::KRATOS_CLASS_POINTER_DEFINITION | ( | NodeConfigure< TDimension > | ) |
Pointer definition of SpatialContainersConfigure.
Kratos::NodeConfigure< TDimension >::KRATOS_CLASS_POINTER_DEFINITION | ( | NodeConfigure< TDimension > | ) |
Pointer definition of NodeConfigure.
|
inlinevirtual |
Print object's data.
|
inlinevirtual |
Prints object's data.
|
inlinevirtual |
Print information about this object.
|
inlinevirtual |
Prints object's information.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
staticconstexpr |
|
staticconstexpr |
Compile time definitions.
Epsilon | Error tolerance for cmparison operations with doubles |
Dimension | Dimension of the problem. Fixed to 3. |
|
static |
|
static |
|
static |
|
static |