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::MeshDataTransferUtilities Class Reference

Short class definition. More...

#include <mesh_data_transfer_utilities.hpp>

Collaboration diagram for Kratos::MeshDataTransferUtilities:

Classes

struct  BoundaryVariableArrays
 
struct  BoundaryVariables
 
struct  TransferParameters
 

Public Member Functions

Life Cycle
 MeshDataTransferUtilities ()
 Default constructor. More...
 
 MeshDataTransferUtilities (MeshDataTransferUtilities const &rOther)
 Copy constructor. More...
 
virtual ~MeshDataTransferUtilities ()
 Destructor. More...
 
Operations
void TransferData (ModelPart &rModelPart, const Element &rReferenceElement, PointPointerVector &list_of_new_centers, std::vector< Geometry< Node > > &list_of_new_vertices, Flags Options)
 
void InitializeBoundaryData (Condition *rCurrentCondition, const TransferParameters &rTransferVariables, const ProcessInfo &rCurrentProcessInfo)
 
void TransferInitialBoundaryData (Condition *rCurrentCondition, const TransferParameters &rTransferVariables, BoundaryVariables &rVariables)
 
void TransferCurrentBoundaryData (Element *rCurrentElement, Condition *rCurrentCondition, const TransferParameters &rTransferVariables, BoundaryVariables &rVariables, BoundaryVariableArrays &rVariableArrays, const ProcessInfo &rCurrentProcessInfo)
 
void TransferBoundaryData (Condition::Pointer rCurrentCondition, Condition::Pointer rReferenceCondition, const TransferParameters &rTransferVariables)
 
void TransferBoundaryData (Element *rCurrentElement, Condition *rCurrentCondition, const TransferParameters &rTransferVariables, const ProcessInfo &rCurrentProcessInfo)
 
void TransferBoundaryData (const TransferParameters &rTransferVariables, ModelPart &rModelPart)
 
void TransferNodalValuesToElements (const TransferParameters &rTransferVariables, ModelPart &rModelPart)
 
void TransferNodalValuesToElements (const TransferParameters &rTransferVariables, const Variable< double > &rCriticalVariable, const double &CriticalValue, ModelPart &rModelPart)
 
void TransferElementalValuesToNodes (const TransferParameters &rTransferVariables, ModelPart &rModelPart)
 
void TransferNodalValuesToElements (ModelPart &rModelPart, const Element &rReferenceElement, PointPointerVector &list_of_new_centers, std::vector< Geometry< Node > > &list_of_new_vertices)
 
void TransferElementalValuesToNodes (ModelPart &rModelPart, const Element &rReferenceElement, PointPointerVector &list_of_new_centers, std::vector< Geometry< Node > > &list_of_new_vertices)
 
void TransferElementalValuesToElements (ModelPart &rModelPart, const Element &rReferenceElement, PointPointerVector &list_of_new_centers, std::vector< Geometry< Node > > &list_of_new_vertices)
 
void CalculateCenterAndSearchRadius (const std::vector< std::vector< double > > &rPointCoordinates, std::vector< double > &rCenter, double &rRadius)
 
void CalculateCenterAndSearchRadius (const double x0, const double y0, const double x1, const double y1, double &xc, double &yc, double &R)
 
void CalculateCenterAndSearchRadius (const double x0, const double y0, const double z0, const double x1, const double y1, const double z1, const double x2, const double y2, const double z2, double &xc, double &yc, double &zc, double &R)
 
void CalculateCenterAndSearchRadius (const double x0, const double y0, const double x1, const double y1, const double x2, const double y2, double &xc, double &yc, double &R)
 
void CalculateCenterAndSearchRadius (const double x0, const double y0, const double z0, const double x1, const double y1, const double z1, const double x2, const double y2, const double z2, const double x3, const double y3, const double z3, double &xc, double &yc, double &zc, double &R)
 
void FillVectorData (VariablesList &rVariablesList, Node &rNode)
 
void Interpolate (Geometry< Node > &geom, const std::vector< double > &N, VariablesList &rVariablesList, Node::Pointer pnode, double alpha=1.0)
 
VariablesListDataValueContainer InterpolateVariables (Geometry< Node > &geom, const std::vector< double > &N, VariablesList &rVariablesList, Node::Pointer pnode, double alpha=1.0)
 
void InterpolateData (Geometry< Node > &geom, const std::vector< double > &N, unsigned int step_data_size, Node::Pointer pnode, double alpha=1.0)
 
VariablesListDataValueContainer InterpolateVariablesData (Geometry< Node > &geom, const std::vector< double > &N, unsigned int step_data_size, Node::Pointer pnode, double alpha=1.0)
 
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...
 

Protected Attributes

Protected member Variables
int mEchoLevel
 

Type Definitions

typedef ModelPart::PropertiesType PropertiesType
 
typedef ModelPart::MeshType MeshType
 
typedef ModelPart::ElementsContainerType ElementsContainerType
 
typedef ModelPart::NodesContainerType NodesContainerType
 
typedef ModelPart::MeshType::GeometryType::PointsArrayType PointsArrayType
 
typedef std::vector< Node::Pointer > PointPointerVector
 
typedef Kratos::weak_ptr< NodeNodeWeakPtrType
 
typedef Kratos::weak_ptr< ElementElementWeakPtrType
 
typedef Kratos::weak_ptr< ConditionConditionWeakPtrType
 
typedef GlobalPointersVector< NodeNodeWeakPtrVectorType
 
typedef GlobalPointersVector< ElementElementWeakPtrVectorType
 
typedef GlobalPointersVector< ConditionConditionWeakPtrVectorType
 
 KRATOS_CLASS_POINTER_DEFINITION (MeshDataTransferUtilities)
 Pointer definition of data transfer. More...
 
 KRATOS_DEFINE_LOCAL_FLAG (NODE_TO_ELEMENT)
 
 KRATOS_DEFINE_LOCAL_FLAG (ELEMENT_TO_NODE)
 
 KRATOS_DEFINE_LOCAL_FLAG (ELEMENT_TO_ELEMENT)
 
 KRATOS_DEFINE_LOCAL_FLAG (INITIALIZE_MASTER_CONDITION)
 
 KRATOS_DEFINE_LOCAL_FLAG (MASTER_ELEMENT_TO_MASTER_CONDITION)
 

Detailed Description

Short class definition.

Detail class definition.

Member Typedef Documentation

◆ ConditionWeakPtrType

◆ ConditionWeakPtrVectorType

◆ ElementsContainerType

◆ ElementWeakPtrType

◆ ElementWeakPtrVectorType

◆ MeshType

◆ NodesContainerType

◆ NodeWeakPtrType

◆ NodeWeakPtrVectorType

◆ PointPointerVector

typedef std::vector<Node::Pointer > Kratos::MeshDataTransferUtilities::PointPointerVector

◆ PointsArrayType

typedef ModelPart::MeshType::GeometryType::PointsArrayType Kratos::MeshDataTransferUtilities::PointsArrayType

◆ PropertiesType

Constructor & Destructor Documentation

◆ MeshDataTransferUtilities() [1/2]

Kratos::MeshDataTransferUtilities::MeshDataTransferUtilities ( )
inline

Default constructor.

◆ MeshDataTransferUtilities() [2/2]

Kratos::MeshDataTransferUtilities::MeshDataTransferUtilities ( MeshDataTransferUtilities const &  rOther)
inline

Copy constructor.

◆ ~MeshDataTransferUtilities()

virtual Kratos::MeshDataTransferUtilities::~MeshDataTransferUtilities ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ CalculateCenterAndSearchRadius() [1/5]

void Kratos::MeshDataTransferUtilities::CalculateCenterAndSearchRadius ( const double  x0,
const double  y0,
const double  x1,
const double  y1,
const double  x2,
const double  y2,
double xc,
double yc,
double R 
)
inline

◆ CalculateCenterAndSearchRadius() [2/5]

void Kratos::MeshDataTransferUtilities::CalculateCenterAndSearchRadius ( const double  x0,
const double  y0,
const double  x1,
const double  y1,
double xc,
double yc,
double R 
)
inline

◆ CalculateCenterAndSearchRadius() [3/5]

void Kratos::MeshDataTransferUtilities::CalculateCenterAndSearchRadius ( const double  x0,
const double  y0,
const double  z0,
const double  x1,
const double  y1,
const double  z1,
const double  x2,
const double  y2,
const double  z2,
const double  x3,
const double  y3,
const double  z3,
double xc,
double yc,
double zc,
double R 
)
inline

◆ CalculateCenterAndSearchRadius() [4/5]

void Kratos::MeshDataTransferUtilities::CalculateCenterAndSearchRadius ( const double  x0,
const double  y0,
const double  z0,
const double  x1,
const double  y1,
const double  z1,
const double  x2,
const double  y2,
const double  z2,
double xc,
double yc,
double zc,
double R 
)
inline

◆ CalculateCenterAndSearchRadius() [5/5]

void Kratos::MeshDataTransferUtilities::CalculateCenterAndSearchRadius ( const std::vector< std::vector< double > > &  rPointCoordinates,
std::vector< double > &  rCenter,
double rRadius 
)
inline

◆ FillVectorData()

void Kratos::MeshDataTransferUtilities::FillVectorData ( VariablesList rVariablesList,
Node rNode 
)

◆ Info()

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

Turn back information as a string.

◆ InitializeBoundaryData()

void Kratos::MeshDataTransferUtilities::InitializeBoundaryData ( Condition rCurrentCondition,
const TransferParameters rTransferVariables,
const ProcessInfo rCurrentProcessInfo 
)

◆ Interpolate()

void Kratos::MeshDataTransferUtilities::Interpolate ( Geometry< Node > &  geom,
const std::vector< double > &  N,
VariablesList rVariablesList,
Node::Pointer  pnode,
double  alpha = 1.0 
)

◆ InterpolateData()

void Kratos::MeshDataTransferUtilities::InterpolateData ( Geometry< Node > &  geom,
const std::vector< double > &  N,
unsigned int  step_data_size,
Node::Pointer  pnode,
double  alpha = 1.0 
)

◆ InterpolateVariables()

VariablesListDataValueContainer Kratos::MeshDataTransferUtilities::InterpolateVariables ( Geometry< Node > &  geom,
const std::vector< double > &  N,
VariablesList rVariablesList,
Node::Pointer  pnode,
double  alpha = 1.0 
)

◆ InterpolateVariablesData()

VariablesListDataValueContainer Kratos::MeshDataTransferUtilities::InterpolateVariablesData ( Geometry< Node > &  geom,
const std::vector< double > &  N,
unsigned int  step_data_size,
Node::Pointer  pnode,
double  alpha = 1.0 
)

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::MeshDataTransferUtilities::KRATOS_CLASS_POINTER_DEFINITION ( MeshDataTransferUtilities  )

Pointer definition of data transfer.

◆ KRATOS_DEFINE_LOCAL_FLAG() [1/5]

Kratos::MeshDataTransferUtilities::KRATOS_DEFINE_LOCAL_FLAG ( ELEMENT_TO_ELEMENT  )

◆ KRATOS_DEFINE_LOCAL_FLAG() [2/5]

Kratos::MeshDataTransferUtilities::KRATOS_DEFINE_LOCAL_FLAG ( ELEMENT_TO_NODE  )

◆ KRATOS_DEFINE_LOCAL_FLAG() [3/5]

Kratos::MeshDataTransferUtilities::KRATOS_DEFINE_LOCAL_FLAG ( INITIALIZE_MASTER_CONDITION  )

◆ KRATOS_DEFINE_LOCAL_FLAG() [4/5]

Kratos::MeshDataTransferUtilities::KRATOS_DEFINE_LOCAL_FLAG ( MASTER_ELEMENT_TO_MASTER_CONDITION  )

◆ KRATOS_DEFINE_LOCAL_FLAG() [5/5]

Kratos::MeshDataTransferUtilities::KRATOS_DEFINE_LOCAL_FLAG ( NODE_TO_ELEMENT  )

Flags related to the meshing parameters

◆ PrintData()

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

Print object's data.

◆ PrintInfo()

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

Print information about this object.

◆ TransferBoundaryData() [1/3]

void Kratos::MeshDataTransferUtilities::TransferBoundaryData ( Condition::Pointer  rCurrentCondition,
Condition::Pointer  rReferenceCondition,
const TransferParameters rTransferVariables 
)

◆ TransferBoundaryData() [2/3]

void Kratos::MeshDataTransferUtilities::TransferBoundaryData ( const TransferParameters rTransferVariables,
ModelPart rModelPart 
)

◆ TransferBoundaryData() [3/3]

void Kratos::MeshDataTransferUtilities::TransferBoundaryData ( Element rCurrentElement,
Condition rCurrentCondition,
const TransferParameters rTransferVariables,
const ProcessInfo rCurrentProcessInfo 
)

◆ TransferCurrentBoundaryData()

void Kratos::MeshDataTransferUtilities::TransferCurrentBoundaryData ( Element rCurrentElement,
Condition rCurrentCondition,
const TransferParameters rTransferVariables,
BoundaryVariables rVariables,
BoundaryVariableArrays rVariableArrays,
const ProcessInfo rCurrentProcessInfo 
)

◆ TransferData()

void Kratos::MeshDataTransferUtilities::TransferData ( ModelPart rModelPart,
const Element rReferenceElement,
PointPointerVector list_of_new_centers,
std::vector< Geometry< Node > > &  list_of_new_vertices,
Flags  Options 
)

◆ TransferElementalValuesToElements()

void Kratos::MeshDataTransferUtilities::TransferElementalValuesToElements ( ModelPart rModelPart,
const Element rReferenceElement,
PointPointerVector list_of_new_centers,
std::vector< Geometry< Node > > &  list_of_new_vertices 
)

◆ TransferElementalValuesToNodes() [1/2]

void Kratos::MeshDataTransferUtilities::TransferElementalValuesToNodes ( const TransferParameters rTransferVariables,
ModelPart rModelPart 
)

◆ TransferElementalValuesToNodes() [2/2]

void Kratos::MeshDataTransferUtilities::TransferElementalValuesToNodes ( ModelPart rModelPart,
const Element rReferenceElement,
PointPointerVector list_of_new_centers,
std::vector< Geometry< Node > > &  list_of_new_vertices 
)

◆ TransferInitialBoundaryData()

void Kratos::MeshDataTransferUtilities::TransferInitialBoundaryData ( Condition rCurrentCondition,
const TransferParameters rTransferVariables,
BoundaryVariables rVariables 
)

◆ TransferNodalValuesToElements() [1/3]

void Kratos::MeshDataTransferUtilities::TransferNodalValuesToElements ( const TransferParameters rTransferVariables,
const Variable< double > &  rCriticalVariable,
const double CriticalValue,
ModelPart rModelPart 
)

◆ TransferNodalValuesToElements() [2/3]

void Kratos::MeshDataTransferUtilities::TransferNodalValuesToElements ( const TransferParameters rTransferVariables,
ModelPart rModelPart 
)

◆ TransferNodalValuesToElements() [3/3]

void Kratos::MeshDataTransferUtilities::TransferNodalValuesToElements ( ModelPart rModelPart,
const Element rReferenceElement,
PointPointerVector list_of_new_centers,
std::vector< Geometry< Node > > &  list_of_new_vertices 
)

Member Data Documentation

◆ mEchoLevel

int Kratos::MeshDataTransferUtilities::mEchoLevel
protected

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