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.
Classes | List of all members
Kratos::Internals::DistanceSpatialContainersConfigure Class Reference

This class contains the tools related with the distance spatial container cell data. More...

#include <find_intersected_geometrical_objects_process.h>

Collaboration diagram for Kratos::Internals::DistanceSpatialContainersConfigure:

Classes

class  CellNodeData
 This class contains the cell node data. More...
 

Public Types

Enum's
enum  { Dimension = 3 , DIMENSION = 3 , MAX_LEVEL = 12 , MIN_LEVEL = 2 }
 

Public Member Functions

Life Cycle
 DistanceSpatialContainersConfigure ()
 Default constructor. More...
 
virtual ~DistanceSpatialContainersConfigure ()
 Destructor. More...
 
Input and output
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 Public Member Functions

Operations
static data_typeAllocateData ()
 This method allocates the cell data. More...
 
static void CopyData (data_type *pSource, data_type *pDestination)
 This method copies the data from a cell. More...
 
static void DeleteData (data_type *pData)
 This method deletes the data from a cell data. More...
 
static void CalculateBoundingBox (const PointerType &pObject, PointType &rLowPoint, PointType &rHighPoint)
 This method computes the bounding box of an object. More...
 
static void GetBoundingBox (const typename GeometricalObject::Pointer pObject, double *rLowPoint, double *rHighPoint)
 This method computes the bounding box of an object (using C arrays) More...
 
static bool Intersection (const typename GeometricalObject::Pointer pObj1, const typename GeometricalObject::Pointer pObj2)
 This method computes if there is an intersection between two objects. More...
 
static bool IntersectionBox (const typename GeometricalObject::Pointer pObject, const PointType &rLowPoint, const PointType &rHighPoint)
 This computes the intersection between an object and a box. More...
 
static bool IsIntersected (const typename GeometricalObject::Pointer pObject, double Tolerance, const double *rLowPoint, const double *rHighPoint)
 This method checks if the objects intersects the low and hight points provided. More...
 

Type Definitions

typedef std::size_t IndexType
 Definition of the index type. More...
 
typedef Point PointType
 Definition of the point type. More...
 
typedef std::vector< double >::iterator DistanceIteratorType
 Definition of the distance iterator type. More...
 
typedef PointerVectorSet< GeometricalObject, IndexedObjectEntityContainerType
 Definition of the entity container type. More...
 
typedef EntityContainerType::ContainerType ContainerType
 Definition of the container type. More...
 
typedef ContainerType::value_type PointerType
 Defintion of the pointer type. More...
 
typedef CellNodeData cell_node_data_type
 Definition of the cell node data. More...
 
typedef std::vector< CellNodeData * > data_type
 Definition of the cell data type. More...
 
typedef PointerType pointer_type
 The definition of the pointer type. More...
 
 KRATOS_CLASS_POINTER_DEFINITION (DistanceSpatialContainersConfigure)
 Pointer definition of DistanceSpatialContainersConfigure. More...
 

Detailed Description

This class contains the tools related with the distance spatial container cell data.

The CellNodeData is defined as an internal class

Author
Pooyan Dadvand

Member Typedef Documentation

◆ cell_node_data_type

Definition of the cell node data.

◆ ContainerType

Definition of the container type.

◆ data_type

Definition of the cell data type.

◆ DistanceIteratorType

Definition of the distance iterator type.

◆ EntityContainerType

Definition of the entity container type.

◆ IndexType

Definition of the index type.

◆ pointer_type

The definition of the pointer type.

◆ PointerType

Defintion of the pointer type.

◆ PointType

Definition of the point type.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Dimension 
DIMENSION 
MAX_LEVEL 
MIN_LEVEL 

Constructor & Destructor Documentation

◆ DistanceSpatialContainersConfigure()

Kratos::Internals::DistanceSpatialContainersConfigure::DistanceSpatialContainersConfigure ( )
inline

Default constructor.

◆ ~DistanceSpatialContainersConfigure()

virtual Kratos::Internals::DistanceSpatialContainersConfigure::~DistanceSpatialContainersConfigure ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ AllocateData()

static data_type* Kratos::Internals::DistanceSpatialContainersConfigure::AllocateData ( )
inlinestatic

This method allocates the cell data.

◆ CalculateBoundingBox()

static void Kratos::Internals::DistanceSpatialContainersConfigure::CalculateBoundingBox ( const PointerType pObject,
PointType rLowPoint,
PointType rHighPoint 
)
inlinestatic

This method computes the bounding box of an object.

Parameters
pObjectThe pointer to the object
rLowPointThe lowest point of the box
rHighPointThe highest point of the box

◆ CopyData()

static void Kratos::Internals::DistanceSpatialContainersConfigure::CopyData ( data_type pSource,
data_type pDestination 
)
inlinestatic

This method copies the data from a cell.

Parameters
pSourceThe data cell to be copied
pDestinationThe data cell where to copy

◆ DeleteData()

static void Kratos::Internals::DistanceSpatialContainersConfigure::DeleteData ( data_type pData)
inlinestatic

This method deletes the data from a cell data.

Parameters
pDataThe data cell to be deleted

◆ GetBoundingBox()

static void Kratos::Internals::DistanceSpatialContainersConfigure::GetBoundingBox ( const typename GeometricalObject::Pointer  pObject,
double rLowPoint,
double rHighPoint 
)
inlinestatic

This method computes the bounding box of an object (using C arrays)

Parameters
pObjectThe pointer to the object
rLowPointThe lowest point of the box
rHighPointThe highest point of the box

◆ Info()

virtual std::string Kratos::Internals::DistanceSpatialContainersConfigure::Info ( ) const
inlinevirtual

Turn back information as a string.

◆ Intersection()

static bool Kratos::Internals::DistanceSpatialContainersConfigure::Intersection ( const typename GeometricalObject::Pointer  pObj1,
const typename GeometricalObject::Pointer  pObj2 
)
inlinestatic

This method computes if there is an intersection between two objects.

Parameters
pObj1The pointer to the first object
pObj2The pointer to the second object
Returns
True if there is an intersection

◆ IntersectionBox()

static bool Kratos::Internals::DistanceSpatialContainersConfigure::IntersectionBox ( const typename GeometricalObject::Pointer  pObject,
const PointType rLowPoint,
const PointType rHighPoint 
)
inlinestatic

This computes the intersection between an object and a box.

Parameters
pObjectThe pointer to the object
rLowPointThe lowest point of the box
rHighPointThe highest point of the box
Returns
True if there is an intersection

◆ IsIntersected()

static bool Kratos::Internals::DistanceSpatialContainersConfigure::IsIntersected ( const typename GeometricalObject::Pointer  pObject,
double  Tolerance,
const double rLowPoint,
const double rHighPoint 
)
inlinestatic

This method checks if the objects intersects the low and hight points provided.

Parameters
pObjectThe pointer to the object of interest
ToleranceThe tolerance considered
rLowPointThe lowest point of the box
rHighPointThe highest point of the box

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::Internals::DistanceSpatialContainersConfigure::KRATOS_CLASS_POINTER_DEFINITION ( DistanceSpatialContainersConfigure  )

Pointer definition of DistanceSpatialContainersConfigure.

◆ PrintData()

virtual void Kratos::Internals::DistanceSpatialContainersConfigure::PrintData ( std::ostream &  rOStream) const
inlinevirtual

Print object's data.

◆ PrintInfo()

virtual void Kratos::Internals::DistanceSpatialContainersConfigure::PrintInfo ( std::ostream &  rOStream) const
inlinevirtual

Print information about this object.


The documentation for this class was generated from the following file: