SOFA API  b3f2f2a4
Open source framework for multi-physics simuation
sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolutionNDof Class Reference

#include <BilateralConstraintResolution.h>

Inheritance diagram for sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolutionNDof:

Protected Attributes

EigenMatrixX wBlock
 
Eigen::LDLT< EigenMatrixXwBlockInv
 

Public Member Functions

 BilateralConstraintResolutionNDof (unsigned blockSize)
 
void init (int line, SReal **w, SReal *) override
 The resolution object can do precomputation with the compliance matrix, and give an initial guess. More...
 
void resolution (int line, SReal **, SReal *displacement, SReal *force, SReal *) override
 Resolution of the constraint for one Gauss-Seidel iteration. More...
 
- Public Member Functions inherited from sofa::core::behavior::ConstraintResolution
 ConstraintResolution (unsigned int nbLines, SReal tolerance=0.0)
 
virtual ~ConstraintResolution ()
 
virtual void initForce (int, SReal *)
 The resolution object can provide an initial guess. More...
 
virtual void store (int, SReal *, bool)
 Called after Gauss-Seidel last iteration, in order to store last computed forces for the inital guess. More...
 
void setNbLines (unsigned int nbLines)
 
unsigned int getNbLines () const
 
void setTolerance (SReal tolerance)
 
SReal getTolerance () const
 

Attribute details

◆ wBlock

EigenMatrixX sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolutionNDof::wBlock
protected

◆ wBlockInv

Eigen::LDLT< EigenMatrixX > sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolutionNDof::wBlockInv
protected

Constructor details

◆ BilateralConstraintResolutionNDof()

sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolutionNDof::BilateralConstraintResolutionNDof ( unsigned  blockSize)
inline

Function details

◆ init()

void sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolutionNDof::init ( int  ,
SReal **  ,
SReal *   
)
inlineoverridevirtual

The resolution object can do precomputation with the compliance matrix, and give an initial guess.

Reimplemented from sofa::core::behavior::ConstraintResolution.

◆ resolution()

void sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolutionNDof::resolution ( int  line,
SReal **  w,
SReal *  d,
SReal *  force,
SReal *  dFree 
)
inlineoverridevirtual

Resolution of the constraint for one Gauss-Seidel iteration.

Reimplemented from sofa::core::behavior::ConstraintResolution.