SOFA API  1a4bb3e7
Open source framework for multi-physics simuation
sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolution Class Reference

#include <BilateralConstraintResolution.h>

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

Protected Attributes

SReal * _f
 

Public Member Functions

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

Attribute details

◆ _f

SReal* sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolution::_f
protected

Constructor details

◆ BilateralConstraintResolution()

sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolution::BilateralConstraintResolution ( SReal *  initF = nullptr)
inline

Function details

◆ init()

void sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolution::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.

◆ initForce()

void sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolution::initForce ( int  ,
SReal *   
)
inlineoverridevirtual

The resolution object can provide an initial guess.

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

◆ resolution()

void sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolution::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.

◆ store()

void sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolution::store ( int  ,
SReal *  ,
bool   
)
inlineoverridevirtual

Called after Gauss-Seidel last iteration, in order to store last computed forces for the inital guess.

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