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.
Public Types | Public Member Functions | Static Public Member Functions | List of all members
Kratos::DiscreteParticleConfigure< TDimension > Class Template Reference

#include <discrete_particle_configure.h>

Collaboration diagram for Kratos::DiscreteParticleConfigure< TDimension >:

Public Types

enum  { Dimension = TDimension , DIMENSION = TDimension , MAX_LEVEL = 16 , MIN_LEVEL = 2 }
 
enum  { Dimension = TDimension , DIMENSION = TDimension , MAX_LEVEL = 16 , MIN_LEVEL = 2 }
 
typedef SpatialSearch SearchType
 
typedef SearchType::PointType PointType
 
typedef SearchType::ElementsContainerType::ContainerType ContainerType
 
typedef SearchType::ElementsContainerType ElementsContainerType
 
typedef SearchType::NodesContainerType NodesContainerType
 
typedef ContainerType::value_type PointerType
 
typedef ContainerType::iterator IteratorType
 
typedef ElementsContainerType::iterator ElementIteratorType
 
typedef SearchType::ElementsContainerType::ContainerType ResultContainerType
 
typedef ResultContainerType::iterator ResultIteratorType
 
typedef std::vector< double >::iterator DistanceIteratorType
 
typedef Point PointType
 
typedef std::vector< double >::iterator DistanceIteratorType
 
typedef std::vector< typename Element::Pointer > ContainerType
 
typedef ContainerType::value_type PointerType
 
typedef ContainerType::iterator IteratorType
 
typedef ModelPart::ElementsContainerType ElementsContainerType
 
typedef ElementsContainerType::ContainerType ResultContainerType
 
typedef ResultContainerType::value_type ResultPointerType
 
typedef ResultContainerType::iterator ResultIteratorType
 
typedef std::vector< PointerType >::iterator PointerTypeIterator
 

Public Member Functions

 KRATOS_CLASS_POINTER_DEFINITION (DiscreteParticleConfigure)
 Pointer definition of SpatialContainersConfigure. More...
 
 DiscreteParticleConfigure ()
 
virtual ~DiscreteParticleConfigure ()
 
 KRATOS_CLASS_POINTER_DEFINITION (DiscreteParticleConfigure)
 Pointer definition of SpatialContainersConfigure. More...
 
Life Cycle
 DiscreteParticleConfigure ()
 
virtual ~DiscreteParticleConfigure ()
 
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

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 doubleGetMinPoint ()
 
static doubleGetMaxPoint ()
 
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])
 
Operations
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)
 

Operators

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
 
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)
 
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_1)
 
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 double GetObjectRadius (const PointerType &rObject, const double &Radius)
 
static double GetObjectRadius (const PointerType &rObject)
 

Member Typedef Documentation

◆ ContainerType [1/2]

template<std::size_t TDimension>
typedef SearchType::ElementsContainerType::ContainerType Kratos::DiscreteParticleConfigure< TDimension >::ContainerType

◆ ContainerType [2/2]

template<std::size_t TDimension>
typedef std::vector<typename Element::Pointer> Kratos::DiscreteParticleConfigure< TDimension >::ContainerType

◆ DistanceIteratorType [1/2]

template<std::size_t TDimension>
typedef std::vector<double>::iterator Kratos::DiscreteParticleConfigure< TDimension >::DistanceIteratorType

◆ DistanceIteratorType [2/2]

template<std::size_t TDimension>
typedef std::vector<double>::iterator Kratos::DiscreteParticleConfigure< TDimension >::DistanceIteratorType

◆ ElementIteratorType

template<std::size_t TDimension>
typedef ElementsContainerType::iterator Kratos::DiscreteParticleConfigure< TDimension >::ElementIteratorType

◆ ElementsContainerType [1/2]

template<std::size_t TDimension>
typedef SearchType::ElementsContainerType Kratos::DiscreteParticleConfigure< TDimension >::ElementsContainerType

◆ ElementsContainerType [2/2]

template<std::size_t TDimension>
typedef ModelPart::ElementsContainerType Kratos::DiscreteParticleConfigure< TDimension >::ElementsContainerType

◆ IteratorType [1/2]

template<std::size_t TDimension>
typedef ContainerType::iterator Kratos::DiscreteParticleConfigure< TDimension >::IteratorType

◆ IteratorType [2/2]

template<std::size_t TDimension>
typedef ContainerType::iterator Kratos::DiscreteParticleConfigure< TDimension >::IteratorType

◆ NodesContainerType

template<std::size_t TDimension>
typedef SearchType::NodesContainerType Kratos::DiscreteParticleConfigure< TDimension >::NodesContainerType

◆ PointerType [1/2]

template<std::size_t TDimension>
typedef ContainerType::value_type Kratos::DiscreteParticleConfigure< TDimension >::PointerType

◆ PointerType [2/2]

template<std::size_t TDimension>
typedef ContainerType::value_type Kratos::DiscreteParticleConfigure< TDimension >::PointerType

◆ PointerTypeIterator

template<std::size_t TDimension>
typedef std::vector<PointerType>::iterator Kratos::DiscreteParticleConfigure< TDimension >::PointerTypeIterator

◆ PointType [1/2]

template<std::size_t TDimension>
typedef SearchType::PointType Kratos::DiscreteParticleConfigure< TDimension >::PointType

◆ PointType [2/2]

template<std::size_t TDimension>
typedef Point Kratos::DiscreteParticleConfigure< TDimension >::PointType

◆ ResultContainerType [1/2]

◆ ResultContainerType [2/2]

template<std::size_t TDimension>
typedef ElementsContainerType::ContainerType Kratos::DiscreteParticleConfigure< TDimension >::ResultContainerType

◆ ResultIteratorType [1/2]

template<std::size_t TDimension>
typedef ResultContainerType::iterator Kratos::DiscreteParticleConfigure< TDimension >::ResultIteratorType

◆ ResultIteratorType [2/2]

template<std::size_t TDimension>
typedef ResultContainerType::iterator Kratos::DiscreteParticleConfigure< TDimension >::ResultIteratorType

◆ ResultPointerType

template<std::size_t TDimension>
typedef ResultContainerType::value_type Kratos::DiscreteParticleConfigure< TDimension >::ResultPointerType

◆ SearchType

template<std::size_t TDimension>
typedef SpatialSearch Kratos::DiscreteParticleConfigure< TDimension >::SearchType

Member Enumeration Documentation

◆ anonymous enum

template<std::size_t TDimension>
anonymous enum
Enumerator
Dimension 
DIMENSION 
MAX_LEVEL 
MIN_LEVEL 

◆ anonymous enum

template<std::size_t TDimension>
anonymous enum
Enumerator
Dimension 
DIMENSION 
MAX_LEVEL 
MIN_LEVEL 

Constructor & Destructor Documentation

◆ DiscreteParticleConfigure() [1/2]

template<std::size_t TDimension>
Kratos::DiscreteParticleConfigure< TDimension >::DiscreteParticleConfigure ( )
inline

◆ ~DiscreteParticleConfigure() [1/2]

template<std::size_t TDimension>
virtual Kratos::DiscreteParticleConfigure< TDimension >::~DiscreteParticleConfigure ( )
inlinevirtual

◆ DiscreteParticleConfigure() [2/2]

template<std::size_t TDimension>
Kratos::DiscreteParticleConfigure< TDimension >::DiscreteParticleConfigure ( )
inline

◆ ~DiscreteParticleConfigure() [2/2]

template<std::size_t TDimension>
virtual Kratos::DiscreteParticleConfigure< TDimension >::~DiscreteParticleConfigure ( )
inlinevirtual

Member Function Documentation

◆ CalculateBoundingBox() [1/4]

template<std::size_t TDimension>
static void Kratos::DiscreteParticleConfigure< TDimension >::CalculateBoundingBox ( const PointerType rObject,
PointType rLowPoint,
PointType rHighPoint 
)
inlinestatic

◆ CalculateBoundingBox() [2/4]

template<std::size_t TDimension>
static void Kratos::DiscreteParticleConfigure< TDimension >::CalculateBoundingBox ( const PointerType rObject,
PointType rLowPoint,
PointType rHighPoint 
)
inlinestatic

◆ CalculateBoundingBox() [3/4]

template<std::size_t TDimension>
static void Kratos::DiscreteParticleConfigure< TDimension >::CalculateBoundingBox ( const PointerType rObject,
PointType rLowPoint,
PointType rHighPoint,
const double Radius 
)
inlinestatic

◆ CalculateBoundingBox() [4/4]

template<std::size_t TDimension>
static void Kratos::DiscreteParticleConfigure< TDimension >::CalculateBoundingBox ( const PointerType rObject,
PointType rLowPoint,
PointType rHighPoint,
const double Radius 
)
inlinestatic

◆ CalculateCenter() [1/2]

template<std::size_t TDimension>
static void Kratos::DiscreteParticleConfigure< TDimension >::CalculateCenter ( const PointerType rObject,
PointType rCenter 
)
inlinestatic

◆ CalculateCenter() [2/2]

template<std::size_t TDimension>
static void Kratos::DiscreteParticleConfigure< TDimension >::CalculateCenter ( const PointerType rObject,
PointType rCenter 
)
inlinestatic

◆ Distance() [1/2]

template<std::size_t TDimension>
static void Kratos::DiscreteParticleConfigure< TDimension >::Distance ( const PointerType rObj_1,
const PointerType rObj_2,
double distance 
)
inlinestatic

◆ Distance() [2/2]

template<std::size_t TDimension>
static void Kratos::DiscreteParticleConfigure< TDimension >::Distance ( const PointerType rObj_1,
const PointerType rObj_2,
double distance 
)
inlinestatic

◆ GetBoxCenter()

template<std::size_t TDimension>
static void Kratos::DiscreteParticleConfigure< TDimension >::GetBoxCenter ( double  box_center[3],
const double  min_point[3],
const double  max_point[3] 
)
inlinestatic

◆ GetDomainPeriodicity()

template<std::size_t TDimension>
static bool Kratos::DiscreteParticleConfigure< TDimension >::GetDomainPeriodicity ( )
inlinestatic

◆ GetMaxPoint()

template<std::size_t TDimension>
static double* Kratos::DiscreteParticleConfigure< TDimension >::GetMaxPoint ( )
inlinestatic

◆ GetMinPoint()

template<std::size_t TDimension>
static double* Kratos::DiscreteParticleConfigure< TDimension >::GetMinPoint ( )
inlinestatic

◆ GetObjectRadius() [1/2]

template<std::size_t TDimension>
static double Kratos::DiscreteParticleConfigure< TDimension >::GetObjectRadius ( const PointerType rObject)
inlinestatic

◆ GetObjectRadius() [2/2]

template<std::size_t TDimension>
static double Kratos::DiscreteParticleConfigure< TDimension >::GetObjectRadius ( const PointerType rObject,
const double Radius 
)
inlinestatic

◆ GetPeriods()

template<std::size_t TDimension>
static void Kratos::DiscreteParticleConfigure< TDimension >::GetPeriods ( double  periods[3])
inlinestatic

◆ Info() [1/2]

template<std::size_t TDimension>
virtual std::string Kratos::DiscreteParticleConfigure< TDimension >::Info ( ) const
inlinevirtual

Turn back information as a string.

◆ Info() [2/2]

template<std::size_t TDimension>
virtual std::string Kratos::DiscreteParticleConfigure< TDimension >::Info ( ) const
inlinevirtual

Turn back information as a string.

◆ Intersection() [1/4]

template<std::size_t TDimension>
static bool Kratos::DiscreteParticleConfigure< TDimension >::Intersection ( const PointerType rObj_1,
const PointerType rObj_2 
)
inlinestatic

◆ Intersection() [2/4]

template<std::size_t TDimension>
static bool Kratos::DiscreteParticleConfigure< TDimension >::Intersection ( const PointerType rObj_1,
const PointerType rObj_2 
)
inlinestatic

◆ Intersection() [3/4]

template<std::size_t TDimension>
static bool Kratos::DiscreteParticleConfigure< TDimension >::Intersection ( const PointerType rObj_1,
const PointerType rObj_2,
const double Radius 
)
inlinestatic

◆ Intersection() [4/4]

template<std::size_t TDimension>
static bool Kratos::DiscreteParticleConfigure< TDimension >::Intersection ( const PointerType rObj_1,
const PointerType rObj_2,
const double radius_1 
)
inlinestatic

◆ IntersectionBox() [1/4]

template<std::size_t TDimension>
static bool Kratos::DiscreteParticleConfigure< TDimension >::IntersectionBox ( const PointerType rObject,
const PointType rLowPoint,
const PointType rHighPoint 
)
inlinestatic

◆ IntersectionBox() [2/4]

template<std::size_t TDimension>
static bool Kratos::DiscreteParticleConfigure< TDimension >::IntersectionBox ( const PointerType rObject,
const PointType rLowPoint,
const PointType rHighPoint 
)
inlinestatic

◆ IntersectionBox() [3/4]

template<std::size_t TDimension>
static bool Kratos::DiscreteParticleConfigure< TDimension >::IntersectionBox ( const PointerType rObject,
const PointType rLowPoint,
const PointType rHighPoint,
const double Radius 
)
inlinestatic

◆ IntersectionBox() [4/4]

template<std::size_t TDimension>
static bool Kratos::DiscreteParticleConfigure< TDimension >::IntersectionBox ( const PointerType rObject,
const PointType rLowPoint,
const PointType rHighPoint,
const double Radius 
)
inlinestatic

◆ KRATOS_CLASS_POINTER_DEFINITION() [1/2]

template<std::size_t TDimension>
Kratos::DiscreteParticleConfigure< TDimension >::KRATOS_CLASS_POINTER_DEFINITION ( DiscreteParticleConfigure< TDimension >  )

Pointer definition of SpatialContainersConfigure.

◆ KRATOS_CLASS_POINTER_DEFINITION() [2/2]

template<std::size_t TDimension>
Kratos::DiscreteParticleConfigure< TDimension >::KRATOS_CLASS_POINTER_DEFINITION ( DiscreteParticleConfigure< TDimension >  )

Pointer definition of SpatialContainersConfigure.

◆ PrintData() [1/2]

template<std::size_t TDimension>
virtual void Kratos::DiscreteParticleConfigure< TDimension >::PrintData ( std::ostream &  rOStream) const
inlinevirtual

Print object's data.

◆ PrintData() [2/2]

template<std::size_t TDimension>
virtual void Kratos::DiscreteParticleConfigure< TDimension >::PrintData ( std::ostream &  rOStream) const
inlinevirtual

Print object's data.

◆ PrintInfo() [1/2]

template<std::size_t TDimension>
virtual void Kratos::DiscreteParticleConfigure< TDimension >::PrintInfo ( std::ostream &  rOStream) const
inlinevirtual

Print information about this object.

◆ PrintInfo() [2/2]

template<std::size_t TDimension>
virtual void Kratos::DiscreteParticleConfigure< TDimension >::PrintInfo ( std::ostream &  rOStream) const
inlinevirtual

Print information about this object.

◆ SetDomain()

template<std::size_t TDimension>
static void Kratos::DiscreteParticleConfigure< TDimension >::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 
)
inlinestatic

◆ SetPeriods()

template<std::size_t TDimension>
static void Kratos::DiscreteParticleConfigure< TDimension >::SetPeriods ( double  domain_period_x,
double  domain_period_y,
double  domain_period_z 
)
inlinestatic

◆ TransformToClosestPeriodicCoordinates() [1/4]

template<std::size_t TDimension>
static void Kratos::DiscreteParticleConfigure< TDimension >::TransformToClosestPeriodicCoordinates ( const array_1d< double, 3 > &  target,
array_1d< double, 3 > &  base_coordinates 
)
inlinestatic

◆ TransformToClosestPeriodicCoordinates() [2/4]

template<std::size_t TDimension>
static void Kratos::DiscreteParticleConfigure< TDimension >::TransformToClosestPeriodicCoordinates ( const array_1d< double, 3 > &  target,
array_1d< double, 3 > &  base_coordinates,
const double  periods[3] 
)
inlinestatic

◆ TransformToClosestPeriodicCoordinates() [3/4]

template<std::size_t TDimension>
static void Kratos::DiscreteParticleConfigure< TDimension >::TransformToClosestPeriodicCoordinates ( const double  target[3],
double  base_coordinates[3] 
)
inlinestatic

◆ TransformToClosestPeriodicCoordinates() [4/4]

template<std::size_t TDimension>
static void Kratos::DiscreteParticleConfigure< TDimension >::TransformToClosestPeriodicCoordinates ( const double  target[3],
double  base_coordinates[3],
const double  periods[3] 
)
inlinestatic

Member Data Documentation

◆ mDomainIsPeriodic

template<std::size_t TDimension>
bool Kratos::DiscreteParticleConfigure< TDimension >::mDomainIsPeriodic = false
static

◆ mDomainMax

template<std::size_t TDimension>
double Kratos::DiscreteParticleConfigure< TDimension >::mDomainMax = {-1.0, -1.0, -1.0}
static

◆ mDomainMin

template<std::size_t TDimension>
double Kratos::DiscreteParticleConfigure< TDimension >::mDomainMin = {0.0, 0.0, 0.0}
static

◆ mDomainPeriods

template<std::size_t TDimension>
double Kratos::DiscreteParticleConfigure< TDimension >::mDomainPeriods = {-1.0, -1.0, -1.0}
static

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