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.
Public Member Functions | List of all members
Kratos::NearestNeighborLocalSystem Class Reference

#include <nearest_neighbor_mapper.h>

Inheritance diagram for Kratos::NearestNeighborLocalSystem:
Collaboration diagram for Kratos::NearestNeighborLocalSystem:

Public Member Functions

 NearestNeighborLocalSystem (NodePointerType pNode)
 
void CalculateAll (MatrixType &rLocalMappingMatrix, EquationIdVectorType &rOriginIds, EquationIdVectorType &rDestinationIds, MapperLocalSystem::PairingStatus &rPairingStatus) const override
 
CoordinatesArrayTypeCoordinates () const override
 
MapperLocalSystemUniquePointer Create (NodePointerType pNode) const override
 
void PairingInfo (std::ostream &rOStream, const int EchoLevel) const override
 
void SetPairingStatusForPrinting () override
 
- Public Member Functions inherited from Kratos::MapperLocalSystem
virtual ~MapperLocalSystem ()=default
 Destructor. More...
 
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...
 
void AddInterfaceInfo (MapperInterfaceInfoPointerType pInterfaceInfo)
 
bool HasInterfaceInfo () const
 
bool HasInterfaceInfoThatIsNotAnApproximation () const
 
virtual bool IsDoneSearching () const
 
virtual MapperLocalSystemUniquePointer Create (GeometryPointerType pGeometry) const
 
virtual void Clear ()
 
PairingStatus GetPairingStatus () const
 
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...
 
 KRATOS_CLASS_POINTER_DEFINITION (MapperLocalSystem)
 Pointer definition of MapperLocalSystem. More...
 

Additional Inherited Members

- Public Types inherited from Kratos::MapperLocalSystem
enum class  PairingStatus { NoInterfaceInfo , Approximation , InterfaceInfoFound }
 
typedef Kratos::shared_ptr< MapperInterfaceInfoMapperInterfaceInfoPointerType
 
typedef Kratos::unique_ptr< MapperLocalSystemMapperLocalSystemUniquePointer
 
typedef MapperInterfaceInfo::CoordinatesArrayType CoordinatesArrayType
 
typedef Matrix MatrixType
 
typedef std::vector< intEquationIdVectorType
 
typedef InterfaceObject::NodePointerType NodePointerType
 
typedef InterfaceObject::GeometryPointerType GeometryPointerType
 
- Protected Member Functions inherited from Kratos::MapperLocalSystem
 MapperLocalSystem ()=default
 
- Protected Attributes inherited from Kratos::MapperLocalSystem
std::vector< MapperInterfaceInfoPointerTypemInterfaceInfos
 
bool mIsComputed = false
 
MatrixType mLocalMappingMatrix
 
EquationIdVectorType mOriginIds
 
EquationIdVectorType mDestinationIds
 
PairingStatus mPairingStatus = PairingStatus::NoInterfaceInfo
 

Constructor & Destructor Documentation

◆ NearestNeighborLocalSystem()

Kratos::NearestNeighborLocalSystem::NearestNeighborLocalSystem ( NodePointerType  pNode)
inlineexplicit

Member Function Documentation

◆ CalculateAll()

void Kratos::NearestNeighborLocalSystem::CalculateAll ( MatrixType rLocalMappingMatrix,
EquationIdVectorType rOriginIds,
EquationIdVectorType rDestinationIds,
MapperLocalSystem::PairingStatus rPairingStatus 
) const
overridevirtual

◆ Coordinates()

CoordinatesArrayType& Kratos::NearestNeighborLocalSystem::Coordinates ( ) const
inlineoverridevirtual

◆ Create()

MapperLocalSystemUniquePointer Kratos::NearestNeighborLocalSystem::Create ( NodePointerType  pNode) const
inlineoverridevirtual

Reimplemented from Kratos::MapperLocalSystem.

◆ PairingInfo()

void Kratos::NearestNeighborLocalSystem::PairingInfo ( std::ostream &  rOStream,
const int  EchoLevel 
) const
overridevirtual

◆ SetPairingStatusForPrinting()

void Kratos::NearestNeighborLocalSystem::SetPairingStatusForPrinting ( )
overridevirtual

Reimplemented from Kratos::MapperLocalSystem.


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