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 | List of all members
Kratos::DemSearchUtilities Class Reference

#include <search_utilities.h>

Collaboration diagram for Kratos::DemSearchUtilities:

Public Types

typedef SpatialSearch::Pointer SpatialSearchPtrType
 
typedef SpatialSearch::ElementsContainerType ElementsArrayType
 
typedef SpatialSearch::NodesContainerType NodesArrayType
 
typedef SpatialSearch::NodesContainerType::ContainerType NodesContainerType
 
typedef SpatialSearch::VectorDistanceType VectorDistanceType
 
typedef SpatialSearch::VectorResultElementsContainerType VectorResultElementsContainerType
 
typedef SpatialSearch::VectorResultNodesContainerType VectorResultNodesContainerType
 
typedef std::vector< doubleRadiusArrayType
 

Public Member Functions

 KRATOS_CLASS_POINTER_DEFINITION (DemSearchUtilities)
 
 DemSearchUtilities (SpatialSearchPtrType pSpatialSearch)
 Default constructor. More...
 
virtual ~DemSearchUtilities ()
 Destructor. More...
 
template<class TVariableType >
void SearchNodeNeigboursDistances (ModelPart &rSearchModelPart, ModelPart &rBinsModelPart, const double &rSearchRadius, const TVariableType &rDistanceVar)
 
template<class TVariableType >
void SearchNodeNeigboursDistances (ModelPart &rSearchModelPart, NodesArrayType &rBinsNodes, const double &rSearchRadius, const TVariableType &rDistanceVar)
 
template<class TVariableType >
void SearchNodeNeigboursDistances (NodesArrayType &rSearchNodes, ModelPart &rBinsModelPart, const double &rSearchRadius, const TVariableType &rDistanceVar)
 
template<class TVariableType >
void SearchNodeNeigboursDistances (NodesArrayType &rSearchNodes, NodesArrayType &rBinsNodes, const double &rSearchRadius, const TVariableType &rDistanceVar)
 
virtual std::string Info () const
 
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...
 

Protected static Member rVariables

RadiusArrayType mSearchRadii
 
VectorResultNodesContainerType mNodesResults
 
VectorDistanceType mResultsDistances
 
SpatialSearchPtrType mSpatialSearch
 
std::vector< unsigned intmPartition
 

Member Typedef Documentation

◆ ElementsArrayType

◆ NodesArrayType

◆ NodesContainerType

◆ RadiusArrayType

◆ SpatialSearchPtrType

typedef SpatialSearch::Pointer Kratos::DemSearchUtilities::SpatialSearchPtrType

◆ VectorDistanceType

◆ VectorResultElementsContainerType

◆ VectorResultNodesContainerType

Constructor & Destructor Documentation

◆ DemSearchUtilities()

Kratos::DemSearchUtilities::DemSearchUtilities ( SpatialSearchPtrType  pSpatialSearch)
inline

Default constructor.

◆ ~DemSearchUtilities()

virtual Kratos::DemSearchUtilities::~DemSearchUtilities ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ Info()

virtual std::string Kratos::DemSearchUtilities::Info ( ) const
inlinevirtual

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::DemSearchUtilities::KRATOS_CLASS_POINTER_DEFINITION ( DemSearchUtilities  )

◆ PrintData()

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

Print object's data.

◆ PrintInfo()

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

Print information about this object.

◆ SearchNodeNeigboursDistances() [1/4]

template<class TVariableType >
void Kratos::DemSearchUtilities::SearchNodeNeigboursDistances ( ModelPart rSearchModelPart,
ModelPart rBinsModelPart,
const double rSearchRadius,
const TVariableType &  rDistanceVar 
)
inline

Calcualtes the distance between the nodes in "rSearchModelPart" and their neighbous in "rBinsModelPart"

Parameters
rSearchModelPartModelpart containing all nodes to be searched
rBinsModelPartModelpart containing all nodes for the search structure
SearchRadiusList contaning the search radius for each node
ResultDistancesList of distances for each neighbour of each node in "rSearchModelPart"

◆ SearchNodeNeigboursDistances() [2/4]

template<class TVariableType >
void Kratos::DemSearchUtilities::SearchNodeNeigboursDistances ( ModelPart rSearchModelPart,
NodesArrayType rBinsNodes,
const double rSearchRadius,
const TVariableType &  rDistanceVar 
)
inline

Calcualtes the distance between the nodes in "rSearchModelPart" and their neighbous in "rBinsNodes"

Parameters
rSearchModelPartModelpart containing all nodes to be searched
rBinsNodesList of nodes containing all nodes for the search structure
SearchRadiusList contaning the search radius for each node
ResultDistancesList of distances for each neighbour of each node in "rSearchModelPart"

◆ SearchNodeNeigboursDistances() [3/4]

template<class TVariableType >
void Kratos::DemSearchUtilities::SearchNodeNeigboursDistances ( NodesArrayType rSearchNodes,
ModelPart rBinsModelPart,
const double rSearchRadius,
const TVariableType &  rDistanceVar 
)
inline

Calcualtes the distance between the nodes in "rSearchNodes" and their neighbous in "rBinsModelPart"

Parameters
rSearchNodesList of nodes containing all nodes to be searched
rBinsModelPartModelpart containing all nodes for the search structure
SearchRadiusList contaning the search radius for each node
ResultDistancesList of distances for each neighbour of each node in "rSearchModelPart"

◆ SearchNodeNeigboursDistances() [4/4]

template<class TVariableType >
void Kratos::DemSearchUtilities::SearchNodeNeigboursDistances ( NodesArrayType rSearchNodes,
NodesArrayType rBinsNodes,
const double rSearchRadius,
const TVariableType &  rDistanceVar 
)
inline

Calcualtes the distance between the nodes in "rSearchNodes" and their neighbous in "rBinsNodes" This function contains the implementation.

Parameters
rSearchNodesList of nodes containing all nodes to be searched
rBinsNodesList of nodes containing all nodes for the search structure
SearchRadiusList contaning the search radius for each node
ResultDistancesList of distances for each neighbour of each node in "rSearchModelPart"

Member Data Documentation

◆ mNodesResults

VectorResultNodesContainerType Kratos::DemSearchUtilities::mNodesResults
protected

◆ mPartition

std::vector<unsigned int> Kratos::DemSearchUtilities::mPartition
protected

◆ mResultsDistances

VectorDistanceType Kratos::DemSearchUtilities::mResultsDistances
protected

◆ mSearchRadii

RadiusArrayType Kratos::DemSearchUtilities::mSearchRadii
protected

◆ mSpatialSearch

SpatialSearchPtrType Kratos::DemSearchUtilities::mSpatialSearch
protected

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