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

#include <UnilateralConstraintResolution.h>

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

Public Member Functions

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

Constructor details

◆ UnilateralConstraintResolution()

sofa::component::constraint::lagrangian::model::UnilateralConstraintResolution::UnilateralConstraintResolution ( )
inline

Function details

◆ resolution()

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