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.
|
This class allows the interpolation between non-matching meshes in 2D and 3D. More...
#include <projection.h>
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... | |
This class allows the interpolation between non-matching meshes in 2D and 3D.
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
|
default |
Default constructor.
|
virtualdefault |
Destructor.
|
inline |
Interpolate the whole problem type.
rOrigin_ModelPart | the model part all the variable should be taken from |
rDestination_ModelPart | the destination model part where we want to know the values of the variables |
|
inline |
Interpolate one variable.
rOrigin_ModelPart | the model part all the variable should be taken from |
rDestination_ModelPart | the destination model part where we want to know the values of the variables |
rOriginVariable | the name of the interpolated variable in the origin model part |
rOriginVariable | the name of the interpolated variable in the destination model part |
|
inlinevirtual |
Turn back information as a stemplate<class T, std::size_t dim> tring.
Kratos::MeshTransfer< TDim >::KRATOS_CLASS_POINTER_DEFINITION | ( | MeshTransfer< TDim > | ) |
Pointer definition of MeshTransfer.
|
inlinevirtual |
Print object's data.
|
inlinevirtual |
Print information about this object.