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 <binbased_projection.h>
Public Member Functions | |
Life Cycle | |
BinBasedMeshTransfer ()=default | |
Default constructor. More... | |
virtual | ~BinBasedMeshTransfer ()=default |
Destructor. More... | |
Operations | |
void | DirectInterpolation (ModelPart &rOrigin_ModelPart, ModelPart &rDestination_ModelPart) |
Interpolate the whole problem type. More... | |
template<class TDataType > | |
void | DirectVariableInterpolation (ModelPart &rFixed_ModelPart, ModelPart &rMoving_ModelPart, Variable< TDataType > &rFixedDomainVariable, Variable< TDataType > &rMovingDomainVariable, BinBasedFastPointLocator< TDim > &node_locator) |
Interpolate one variable from the fixed mesh to the moving one. More... | |
template<class TDataType > | |
void | MappingFromMovingMesh (ModelPart &rMoving_ModelPart, ModelPart &rFixed_ModelPart, Variable< TDataType > &rMovingDomainVariable, Variable< TDataType > &rFixedDomainVariable, BinBasedFastPointLocator< TDim > &node_locator) |
template<class TDataType > | |
void | MappingFromMovingMesh_VariableMeshes (ModelPart &rMoving_ModelPart, ModelPart &rFixed_ModelPart, Variable< TDataType > &rMovingDomainVariable, Variable< TDataType > &rFixedDomainVariable, BinBasedNodesInElementLocator< TDim > &node_locator) |
Interpolate one variable from the moving mesh to the fixed one. 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... | |
Type Definitions | |
typedef Node | NodeType |
Node type definition. More... | |
typedef Geometry< NodeType > | GeometryType |
KRATOS_CLASS_POINTER_DEFINITION (BinBasedMeshTransfer< TDim >) | |
Pointer definition of BinBasedMeshTransfer. More... | |
This class allows the interpolation between non-matching meshes in 2D and 3D.
This class allows the interpolation of a scalar or vectorial variable 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 static bin. In order to use this utility the construction of a bin of object
typedef Geometry<NodeType> Kratos::BinBasedMeshTransfer< TDim >::GeometryType |
typedef Node Kratos::BinBasedMeshTransfer< TDim >::NodeType |
Node type definition.
|
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 from the fixed mesh to the moving one.
rFixed_ModelPart | the model part all the variable should be taken from |
rMoving_ModelPart | the destination model part where we want to know the values of the variables |
rFixedDomainVariable | the name of the interpolated variable in the origin model part |
rMovingDomainVariable | the name of the interpolated variable in the destination model part |
node_locator | precomputed bin of objects. It is to be constructed separately |
|
inlinevirtual |
Turn back information as a stemplate<class T, std::size_t dim> tring.
Kratos::BinBasedMeshTransfer< TDim >::KRATOS_CLASS_POINTER_DEFINITION | ( | BinBasedMeshTransfer< TDim > | ) |
Pointer definition of BinBasedMeshTransfer.
|
inline |
Map one variable from the moving mesh to the fixed one -The two meshes should be of the same dimensions otherwise better to use MappingFromMovingMesh_VariableMeshes that is a much generic tool.
rFixed_ModelPart | the model part all the variable should be taken from |
rMoving_ModelPart | the destination model part where we want to know the values of the variables |
rFixedDomainVariable | the name of the interpolated variable in the origin model part |
rMovingDomainVariable | the name of the interpolated variable in the destination model part |
node_locator | precomputed bin of objects (elelments of the fixed mesh). It is to be constructed separately |
|
inline |
Interpolate one variable from the moving mesh to the fixed one.
rFixed_ModelPart | the model part all the variable should be taken from |
rMoving_ModelPart | the destination model part where we want to know the values of the variables |
rFixedDomainVariable | the name of the interpolated variable in the origin model part |
rMovingDomainVariable | the name of the interpolated variable in the destination model part |
node_locator | precomputed bin of nodes of the fixed mesh. It is to be constructed separately |
|
inlinevirtual |
Print object's data.
|
inlinevirtual |
Print information about this object.