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

#include <StopperLagrangianConstraint.h>

Inheritance diagram for sofa::component::constraint::lagrangian::model::StopperLagrangianConstraintResolution1Dof:

Protected Attributes

double _invW
 
double _w
 
double _min
 
double _max
 

Public Member Functions

 StopperLagrangianConstraintResolution1Dof (const double &min, const double &max)
 
void init (int line, SReal **w, SReal *force) override
 The resolution object can do precomputation with the compliance matrix, and give an initial guess. More...
 
void resolution (int line, SReal **, SReal *d, 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

◆ _invW

double sofa::component::constraint::lagrangian::model::StopperLagrangianConstraintResolution1Dof::_invW
protected

◆ _max

double sofa::component::constraint::lagrangian::model::StopperLagrangianConstraintResolution1Dof::_max
protected

◆ _min

double sofa::component::constraint::lagrangian::model::StopperLagrangianConstraintResolution1Dof::_min
protected

◆ _w

double sofa::component::constraint::lagrangian::model::StopperLagrangianConstraintResolution1Dof::_w
protected

Constructor details

◆ StopperLagrangianConstraintResolution1Dof()

sofa::component::constraint::lagrangian::model::StopperLagrangianConstraintResolution1Dof::StopperLagrangianConstraintResolution1Dof ( const double &  min,
const double &  max 
)
inline

Function details

◆ init()

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