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

#include <BaseConstraint.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, double tolerance=0.0)
 
virtual ~ConstraintResolution ()
 
virtual void init (int, double **, double *)
 The resolution object can do precomputation with the compliance matrix, and give an initial guess. More...
 
virtual void initForce (int, double *)
 The resolution object can provide an initial guess. More...
 
virtual void resolution (int line, double **w, double *d, double *force, double *dFree)
 Resolution of the constraint for one Gauss-Seidel iteration. More...
 
virtual void store (int, double *, 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 (double tolerance)
 
double getTolerance () const
 

Constructor details

sofa::core::behavior::ConstraintResolution::ConstraintResolution ( unsigned int  nbLines,
double  tolerance = 0.0 
)
virtual sofa::core::behavior::ConstraintResolution::~ConstraintResolution ( )
inlinevirtual

Function details

unsigned int sofa::core::behavior::ConstraintResolution::getNbLines ( ) const
inline
double sofa::core::behavior::ConstraintResolution::getTolerance ( ) const
inline
void sofa::core::behavior::ConstraintResolution::initForce ( int  ,
double  
)
virtual
void sofa::core::behavior::ConstraintResolution::setNbLines ( unsigned int  nbLines)
inline
void sofa::core::behavior::ConstraintResolution::setTolerance ( double  tolerance)
inline
virtual void sofa::core::behavior::ConstraintResolution::store ( int  ,
double ,
bool   
)
inlinevirtual