#include <ConstraintResolution.h>
Object computing a constraint resolution within a Gauss-Seidel algorithm. More...
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 initial guess. More... | |
void | setNbLines (unsigned int nbLines) |
unsigned int | getNbLines () const |
void | setTolerance (SReal tolerance) |
SReal | getTolerance () const |
sofa::core::behavior::ConstraintResolution::ConstraintResolution | ( | unsigned int | nbLines, |
SReal | tolerance = 0.0 |
||
) |
|
virtual |
|
inline |
|
inline |
|
virtual |
The resolution object can do precomputation with the compliance matrix, and give an initial guess.
Reimplemented in sofa::component::constraint::lagrangian::model::UnilateralConstraintResolutionWithFriction, sofa::component::constraint::lagrangian::model::StopperLagrangianConstraintResolution1Dof, sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolution3Dof, sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolutionNDof, and sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolution.
|
virtual |
The resolution object can provide an initial guess.
Reimplemented in sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolution3Dof, and sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolution.
|
virtual |
Resolution of the constraint for one Gauss-Seidel iteration.
Reimplemented in sofa::component::constraint::lagrangian::model::UnilateralConstraintResolutionWithFriction, sofa::component::constraint::lagrangian::model::UnilateralConstraintResolution, sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolution, sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolutionNDof, sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolution3Dof, and sofa::component::constraint::lagrangian::model::StopperLagrangianConstraintResolution1Dof.
|
inline |
|
inline |
|
virtual |
Called after Gauss-Seidel last iteration, in order to store last computed forces for the initial guess.
Reimplemented in sofa::component::constraint::lagrangian::model::UnilateralConstraintResolutionWithFriction, sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolution3Dof, and sofa::component::constraint::lagrangian::model::bilateralconstraintresolution::BilateralConstraintResolution.