SOFA API  1a4bb3e7
Open source framework for multi-physics simuation
sofa::core::behavior::MultiMatrixAccessor Class Referenceabstract

#include <MultiMatrixAccessor.h>

Inheritance diagram for sofa::core::behavior::MultiMatrixAccessor:

Detailed Description

Abstract class allowing to find the part of the mechanical matrix associated with a given MechanicalState or pair of MechanicalState (for interaction forces and mappings).

Classes

class  InteractionMatrixRef
 Simple structure holding a reference to the submatrix related to the interactions between two MechanicalStates. More...
 
class  MatrixRef
 Simple structure holding a reference to the submatrix related to one MechanicalState. More...
 

Public Member Functions

virtual ~MultiMatrixAccessor ()
 
virtual void addMechanicalState (const BaseMechanicalState *mstate)
 
virtual void addMechanicalMapping (BaseMapping *mapping)
 
virtual void addMappedMechanicalState (const BaseMechanicalState *mstate)
 
virtual Index getGlobalDimension () const =0
 
virtual int getGlobalOffset (const BaseMechanicalState *mstate) const =0
 
virtual MatrixRef getMatrix (const BaseMechanicalState *mstate) const =0
 
virtual InteractionMatrixRef getMatrix (const BaseMechanicalState *mstate1, const BaseMechanicalState *mstate2) const =0
 

Constructor details

◆ ~MultiMatrixAccessor()

sofa::core::behavior::MultiMatrixAccessor::~MultiMatrixAccessor ( )
virtual

Function details

◆ addMappedMechanicalState()

void sofa::core::behavior::MultiMatrixAccessor::addMappedMechanicalState ( const BaseMechanicalState mstate)
virtual

◆ addMechanicalMapping()

void sofa::core::behavior::MultiMatrixAccessor::addMechanicalMapping ( BaseMapping mapping)
virtual

◆ addMechanicalState()

void sofa::core::behavior::MultiMatrixAccessor::addMechanicalState ( const BaseMechanicalState mstate)
virtual

◆ getGlobalDimension()

virtual Index sofa::core::behavior::MultiMatrixAccessor::getGlobalDimension ( ) const
pure virtual

◆ getGlobalOffset()

virtual int sofa::core::behavior::MultiMatrixAccessor::getGlobalOffset ( const BaseMechanicalState mstate) const
pure virtual

◆ getMatrix() [1/2]

virtual MatrixRef sofa::core::behavior::MultiMatrixAccessor::getMatrix ( const BaseMechanicalState mstate) const
pure virtual

◆ getMatrix() [2/2]

virtual InteractionMatrixRef sofa::core::behavior::MultiMatrixAccessor::getMatrix ( const BaseMechanicalState mstate1,
const BaseMechanicalState mstate2 
) const
pure virtual