SOFA API  b3f2f2a4
Open source framework for multi-physics simuation
sofa::core::behavior::CRSMultiMatrixAccessor Class Reference

#include <CRSMultiMatrixAccessor.h>

Inheritance diagram for sofa::core::behavior::CRSMultiMatrixAccessor:

Public Member Functions

 CRSMultiMatrixAccessor ()
 
 ~CRSMultiMatrixAccessor () override
 
void addMechanicalMapping (sofa::core::BaseMapping *mapping) override
 
void computeGlobalMatrix () override
 
- Public Member Functions inherited from sofa::core::behavior::DefaultMultiMatrixAccessor
 DefaultMultiMatrixAccessor ()
 
 ~DefaultMultiMatrixAccessor () override
 
virtual void clear ()
 
virtual void setGlobalMatrix (linearalgebra::BaseMatrix *matrix)
 
void addMechanicalState (const sofa::core::behavior::BaseMechanicalState *mstate) override
 
void addMechanicalMapping (sofa::core::BaseMapping *mapping) override
 
void addMappedMechanicalState (const sofa::core::behavior::BaseMechanicalState *mstate) override
 
virtual void setupMatrices ()
 
Index getGlobalDimension () const override
 
int getGlobalOffset (const sofa::core::behavior::BaseMechanicalState *mstate) const override
 
MatrixRef getMatrix (const sofa::core::behavior::BaseMechanicalState *mstate) const override
 
InteractionMatrixRef getMatrix (const sofa::core::behavior::BaseMechanicalState *mstate1, const sofa::core::behavior::BaseMechanicalState *mstate2) const override
 
void setDoPrintInfo (bool value)
 
- Public Member Functions inherited from sofa::core::behavior::MultiMatrixAccessor
virtual ~MultiMatrixAccessor ()
 

Static Public Member Functions

static linearalgebra::BaseMatrixcreateMatrix (const sofa::core::behavior::BaseMechanicalState *mstate1, const sofa::core::behavior::BaseMechanicalState *mstate2)
 
static linearalgebra::BaseMatrixcreateMatrix (const sofa::core::behavior::BaseMechanicalState *mstate1, const sofa::core::behavior::BaseMechanicalState *mstate2, bool doPrintInfo)
 
- Static Public Member Functions inherited from sofa::core::behavior::DefaultMultiMatrixAccessor
static linearalgebra::BaseMatrixcreateMatrix (const sofa::core::behavior::BaseMechanicalState *mstate1, const sofa::core::behavior::BaseMechanicalState *mstate2)
 
static linearalgebra::BaseMatrixcreateMatrixImpl (const sofa::core::behavior::BaseMechanicalState *mstate1, const sofa::core::behavior::BaseMechanicalState *mstate2, bool doPrintInfo)
 

Additional Inherited Members

- Protected Attributes inherited from sofa::core::behavior::DefaultMultiMatrixAccessor
bool m_doPrintInfo {false}
 
linearalgebra::BaseMatrixglobalMatrix {nullptr}
 
Index globalDim {0}
 
std::map< const sofa::core::behavior::BaseMechanicalState *, unsigned int > realStateOffsets
 
std::map< const sofa::core::behavior::BaseMechanicalState *, linearalgebra::BaseMatrix * > mappedMatrices
 
std::map< const sofa::core::behavior::BaseMechanicalState *, MatrixRefdiagonalStiffnessBloc
 
std::map< std::pair< const sofa::core::behavior::BaseMechanicalState *, const sofa::core::behavior::BaseMechanicalState * >, InteractionMatrixRefinteractionStiffnessBloc
 
std::vector< sofa::core::BaseMapping * > mappingList
 

Constructor details

◆ CRSMultiMatrixAccessor()

sofa::core::behavior::CRSMultiMatrixAccessor::CRSMultiMatrixAccessor ( )
inline

◆ ~CRSMultiMatrixAccessor()

sofa::core::behavior::CRSMultiMatrixAccessor::~CRSMultiMatrixAccessor ( )
inlineoverride

Function details

◆ addMechanicalMapping()

void sofa::core::behavior::CRSMultiMatrixAccessor::addMechanicalMapping ( sofa::core::BaseMapping mapping)
overridevirtual

◆ computeGlobalMatrix()

void sofa::core::behavior::CRSMultiMatrixAccessor::computeGlobalMatrix ( )
overridevirtual

◆ createMatrix() [1/2]

linearalgebra::BaseMatrix * sofa::core::behavior::CRSMultiMatrixAccessor::createMatrix ( const sofa::core::behavior::BaseMechanicalState mstate1,
const sofa::core::behavior::BaseMechanicalState mstate2 
)
static

◆ createMatrix() [2/2]

linearalgebra::BaseMatrix * sofa::core::behavior::CRSMultiMatrixAccessor::createMatrix ( const sofa::core::behavior::BaseMechanicalState mstate1,
const sofa::core::behavior::BaseMechanicalState mstate2,
bool  doPrintInfo 
)
static