SOFA API  b5aefb45
Open source framework for multi-physics simuation
sofa::core::behavior::ConstraintResolution Class Reference

#include <ConstraintResolution.h>

Object computing a constraint resolution within a Gauss-Seidel algorithm. More...

Inheritance diagram for sofa::core::behavior::ConstraintResolution:

Detailed Description

Object computing a constraint resolution within a Gauss-Seidel algorithm.

Public Member Functions

 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 resolution (int line, SReal **w, SReal *d, SReal *force, SReal *dFree)
 Resolution of the constraint for one Gauss-Seidel iteration. 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

◆ ConstraintResolution()

sofa::core::behavior::ConstraintResolution::ConstraintResolution ( unsigned int  nbLines,
SReal  tolerance = 0.0 
)

◆ ~ConstraintResolution()

sofa::core::behavior::ConstraintResolution::~ConstraintResolution ( )
virtual

Function details

◆ getNbLines()

unsigned int sofa::core::behavior::ConstraintResolution::getNbLines ( ) const
inline

◆ getTolerance()

SReal sofa::core::behavior::ConstraintResolution::getTolerance ( ) const
inline

◆ init()

◆ initForce()

void sofa::core::behavior::ConstraintResolution::initForce ( int  ,
SReal *   
)
virtual

◆ resolution()

◆ setNbLines()

void sofa::core::behavior::ConstraintResolution::setNbLines ( unsigned int  nbLines)
inline

◆ setTolerance()

void sofa::core::behavior::ConstraintResolution::setTolerance ( SReal  tolerance)
inline

◆ store()

void sofa::core::behavior::ConstraintResolution::store ( int  ,
SReal *  ,
bool   
)
virtual