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.
List of all members
Kratos::MeshTransfer< TDim > Class Template Reference

This class allows the interpolation between non-matching meshes in 2D and 3D. More...

#include <projection.h>

Collaboration diagram for Kratos::MeshTransfer< TDim >:

Public Member Functions

Type Definitions
 KRATOS_CLASS_POINTER_DEFINITION (MeshTransfer< TDim >)
 Pointer definition of MeshTransfer. More...
 
Life Cycle
 MeshTransfer ()=default
 Default constructor. More...
 
virtual ~MeshTransfer ()=default
 Destructor. More...
 
Operations
void DirectInterpolation (ModelPart &rOrigin_ModelPart, ModelPart &rDestination_ModelPart)
 Interpolate the whole problem type. More...
 
template<class TDataType >
void DirectVariableInterpolation (ModelPart &rOrigin_ModelPart, ModelPart &rDestination_ModelPart, Variable< TDataType > &rOriginVariable, Variable< TDataType > &rDestinationVariable)
 Interpolate one variable. More...
 
Input and output
virtual std::string Info () const
 Turn back information as a stemplate<class T, std::size_t dim> tring. 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...
 

Detailed Description

template<std::size_t TDim>
class Kratos::MeshTransfer< TDim >

This class allows the interpolation between non-matching meshes in 2D and 3D.

Author
Antonia Larese De Tetto antol.nosp@m.dt@c.nosp@m.imne..nosp@m.upc..nosp@m.edu

This class allows the interpolation of a variable or of the whole model parte between non-matching meshes in 2D and 3D.

For every node of the destination model part it is checked in which element of the origin model part it is contained and a linear interpolation is performed

The data structure used by default is kd tree although bin, kd-tree of bins can be easily used just commenting and decommenting the opportune lines at the beginning of the function

Constructor & Destructor Documentation

◆ MeshTransfer()

template<std::size_t TDim>
Kratos::MeshTransfer< TDim >::MeshTransfer ( )
default

Default constructor.

◆ ~MeshTransfer()

template<std::size_t TDim>
virtual Kratos::MeshTransfer< TDim >::~MeshTransfer ( )
virtualdefault

Destructor.

Member Function Documentation

◆ DirectInterpolation()

template<std::size_t TDim>
void Kratos::MeshTransfer< TDim >::DirectInterpolation ( ModelPart rOrigin_ModelPart,
ModelPart rDestination_ModelPart 
)
inline

Interpolate the whole problem type.

Parameters
rOrigin_ModelPartthe model part all the variable should be taken from
rDestination_ModelPartthe destination model part where we want to know the values of the variables

◆ DirectVariableInterpolation()

template<std::size_t TDim>
template<class TDataType >
void Kratos::MeshTransfer< TDim >::DirectVariableInterpolation ( ModelPart rOrigin_ModelPart,
ModelPart rDestination_ModelPart,
Variable< TDataType > &  rOriginVariable,
Variable< TDataType > &  rDestinationVariable 
)
inline

Interpolate one variable.

Parameters
rOrigin_ModelPartthe model part all the variable should be taken from
rDestination_ModelPartthe destination model part where we want to know the values of the variables
rOriginVariablethe name of the interpolated variable in the origin model part
rOriginVariablethe name of the interpolated variable in the destination model part

◆ Info()

template<std::size_t TDim>
virtual std::string Kratos::MeshTransfer< TDim >::Info ( ) const
inlinevirtual

Turn back information as a stemplate<class T, std::size_t dim> tring.

◆ KRATOS_CLASS_POINTER_DEFINITION()

template<std::size_t TDim>
Kratos::MeshTransfer< TDim >::KRATOS_CLASS_POINTER_DEFINITION ( MeshTransfer< TDim >  )

Pointer definition of MeshTransfer.

◆ PrintData()

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

Print object's data.

◆ PrintInfo()

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

Print information about this object.


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