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 is the "Condition" of the mappers. More...
#include <mapper_local_system.h>
Public Types | |
Enum's | |
enum class | PairingStatus { NoInterfaceInfo , Approximation , InterfaceInfoFound } |
Public Member Functions | |
Life Cycle | |
virtual | ~MapperLocalSystem ()=default |
Destructor. More... | |
Operations | |
void | EquationIdVectors (EquationIdVectorType &rOriginIds, EquationIdVectorType &rDestinationIds) |
void | CalculateLocalSystem (MatrixType &rLocalMappingMatrix, EquationIdVectorType &rOriginIds, EquationIdVectorType &rDestinationIds) const |
void | ResizeToZero (MatrixType &rLocalMappingMatrix, EquationIdVectorType &rOriginIds, EquationIdVectorType &rDestinationIds, MapperLocalSystem::PairingStatus &rPairingStatus) const |
Resizing the output if no InterfaceInfo is available This function resizes the system vectors to zero and also sets that no valid Information from the other side could be found to compute the local system. More... | |
virtual CoordinatesArrayType & | Coordinates () const =0 |
void | AddInterfaceInfo (MapperInterfaceInfoPointerType pInterfaceInfo) |
bool | HasInterfaceInfo () const |
bool | HasInterfaceInfoThatIsNotAnApproximation () const |
virtual bool | IsDoneSearching () const |
virtual MapperLocalSystemUniquePointer | Create (NodePointerType pNode) const |
virtual MapperLocalSystemUniquePointer | Create (GeometryPointerType pGeometry) const |
virtual void | Clear () |
PairingStatus | GetPairingStatus () const |
virtual void | SetPairingStatusForPrinting () |
Input and output | |
virtual void | PairingInfo (std::ostream &rOStream, const int EchoLevel) const =0 |
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 Member Functions | |
Protected Life Cycle | |
MapperLocalSystem ()=default | |
Protected Operations | |
virtual void | CalculateAll (MatrixType &rLocalMappingMatrix, EquationIdVectorType &rOriginIds, EquationIdVectorType &rDestinationIds, MapperLocalSystem::PairingStatus &rPairingStatus) const =0 |
Protected Attributes | |
Protected member Variables | |
std::vector< MapperInterfaceInfoPointerType > | mInterfaceInfos |
bool | mIsComputed = false |
MatrixType | mLocalMappingMatrix |
EquationIdVectorType | mOriginIds |
EquationIdVectorType | mDestinationIds |
PairingStatus | mPairingStatus = PairingStatus::NoInterfaceInfo |
Type Definitions | |
typedef Kratos::shared_ptr< MapperInterfaceInfo > | MapperInterfaceInfoPointerType |
typedef Kratos::unique_ptr< MapperLocalSystem > | MapperLocalSystemUniquePointer |
typedef MapperInterfaceInfo::CoordinatesArrayType | CoordinatesArrayType |
typedef Matrix | MatrixType |
typedef std::vector< int > | EquationIdVectorType |
typedef InterfaceObject::NodePointerType | NodePointerType |
typedef InterfaceObject::GeometryPointerType | GeometryPointerType |
KRATOS_CLASS_POINTER_DEFINITION (MapperLocalSystem) | |
Pointer definition of MapperLocalSystem. More... | |
This is the "Condition" of the mappers.
This class assembles the local system for the mappers, using the Information that was provided by the "MapperInterfaceInfo"
typedef std::vector<int> Kratos::MapperLocalSystem::EquationIdVectorType |
typedef Kratos::shared_ptr<MapperInterfaceInfo> Kratos::MapperLocalSystem::MapperInterfaceInfoPointerType |
typedef Kratos::unique_ptr<MapperLocalSystem> Kratos::MapperLocalSystem::MapperLocalSystemUniquePointer |
|
strong |
|
virtualdefault |
Destructor.
|
protecteddefault |
|
inline |
|
protectedpure virtual |
|
inline |
|
inlinevirtual |
|
pure virtual |
|
inlinevirtual |
Reimplemented in Kratos::CouplingGeometryLocalSystem.
|
inlinevirtual |
Reimplemented in Kratos::NearestNeighborLocalSystem, Kratos::NearestElementLocalSystem, and Kratos::BarycentricLocalSystem.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Turn back information as a string.
|
inlinevirtual |
Reimplemented in Kratos::NearestElementLocalSystem, and Kratos::BarycentricLocalSystem.
Kratos::MapperLocalSystem::KRATOS_CLASS_POINTER_DEFINITION | ( | MapperLocalSystem | ) |
Pointer definition of MapperLocalSystem.
|
pure virtual |
|
inlinevirtual |
Print object's data.
|
inlinevirtual |
Print information about this object.
|
inline |
Resizing the output if no InterfaceInfo is available This function resizes the system vectors to zero and also sets that no valid Information from the other side could be found to compute the local system.
rLocalMappingMatrix | The vector conatining the mapping weights |
rOriginIds | The vector containing the ids on the origin |
rDestinationIds | The vector containing the ids on the destination |
rPairingStatus | The pairingstatus of the MapperLocalSystem |
|
inlinevirtual |
Reimplemented in Kratos::NearestNeighborLocalSystem, Kratos::NearestElementLocalSystem, and Kratos::BarycentricLocalSystem.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |