SOFA API  b3f2f2a4
Open source framework for multi-physics simuation
sofa::component::linearsystem::MatrixLinearSystem< TMatrix, TVector >::Dirichlet Struct Referencefinal

#include <MatrixLinearSystem.h>

Inheritance diagram for sofa::component::linearsystem::MatrixLinearSystem< TMatrix, TVector >::Dirichlet:

Detailed Description

template<class TMatrix, class TVector>
struct sofa::component::linearsystem::MatrixLinearSystem< TMatrix, TVector >::Dirichlet

Define how zero Dirichlet boundary conditions are applied on the global matrix

Public Attributes

sofa::type::Vec2u m_offset
 
TMatrix * m_globalMatrix { nullptr }
 The matrix to apply a zero Dirichlet boundary condition. More...
 

Public Member Functions

 ~Dirichlet () override=default
 
void discardRowCol (sofa::Index row, sofa::Index col) override
 
- Public Member Functions inherited from sofa::core::behavior::ZeroDirichletCondition
virtual ~ZeroDirichletCondition ()=default
 

Attribute details

◆ m_globalMatrix

template<class TMatrix , class TVector >
TMatrix* sofa::component::linearsystem::MatrixLinearSystem< TMatrix, TVector >::Dirichlet::m_globalMatrix { nullptr }

The matrix to apply a zero Dirichlet boundary condition.

◆ m_offset

template<class TMatrix , class TVector >
sofa::type::Vec2u sofa::component::linearsystem::MatrixLinearSystem< TMatrix, TVector >::Dirichlet::m_offset

Constructor details

◆ ~Dirichlet()

template<class TMatrix , class TVector >
sofa::component::linearsystem::MatrixLinearSystem< TMatrix, TVector >::Dirichlet::~Dirichlet ( )
overridedefault

Function details

◆ discardRowCol()

template<class TMatrix , class TVector >
void sofa::component::linearsystem::MatrixLinearSystem< TMatrix, TVector >::Dirichlet::discardRowCol ( sofa::Index  ,
sofa::Index   
)
overridevirtual

Zero out a row and a column of a matrix. The element at the intersection of the row and the column is set to 1.

Reimplemented from sofa::core::behavior::ZeroDirichletCondition.