SOFA API  f4c584b2
Open source framework for multi-physics simuation
sofa::component::constraint::lagrangian::solver::UnbuiltConstraintProblem Class Reference

#include <UnbuiltConstraintProblem.h>

This class adds components needed for unbuilt solvers to the GenericConstraintProblem This needs to be used by unbuilt solvers. More...

Inheritance diagram for sofa::component::constraint::lagrangian::solver::UnbuiltConstraintProblem:

Detailed Description

This class adds components needed for unbuilt solvers to the GenericConstraintProblem This needs to be used by unbuilt solvers.

Public Attributes

linearalgebra::SparseMatrix< SReal > Wdiag
 
std::list< unsigned intconstraints_sequence
 
std::vector< ConstraintCorrectionscclist_elems
 
- Public Attributes inherited from sofa::component::constraint::lagrangian::solver::GenericConstraintProblem
sofa::linearalgebra::FullVector< SReal > _d
 
std::vector< core::behavior::ConstraintResolution * > constraintsResolutions
 
bool scaleTolerance
 
bool allVerified
 
SReal sor
 
SReal currentError
 
int currentIterations
 
sofa::linearalgebra::FullVector< SReal > m_lam
 
sofa::linearalgebra::FullVector< SReal > m_deltaF
 
sofa::linearalgebra::FullVector< SReal > m_deltaF_new
 
sofa::linearalgebra::FullVector< SReal > m_p
 
- Public Attributes inherited from sofa::component::constraint::lagrangian::solver::ConstraintProblem
sofa::linearalgebra::LPtrFullMatrix< SReal > W
 
sofa::linearalgebra::FullVector< SReal > dFree
 
sofa::linearalgebra::FullVector< SReal > f
 
SReal tolerance
 
int maxIterations
 

Public Member Functions

 UnbuiltConstraintProblem (GenericConstraintSolver *solver)
 
- Public Member Functions inherited from sofa::component::constraint::lagrangian::solver::GenericConstraintProblem
 GenericConstraintProblem (GenericConstraintSolver *solver)
 
 ~GenericConstraintProblem () override
 
void clear (int nbConstraints) override
 
void freeConstraintResolutions ()
 
int getNumConstraints ()
 
int getNumConstraintGroups ()
 
void result_output (GenericConstraintSolver *solver, SReal *force, SReal error, int iterCount, bool convergence)
 
void solveTimed (SReal tol, int maxIt, SReal timeout) override
 
void setSolver (GenericConstraintSolver *solver)
 
- Public Member Functions inherited from sofa::component::constraint::lagrangian::solver::ConstraintProblem
 ConstraintProblem ()
 
virtual ~ConstraintProblem ()
 
int getDimension () const
 
void setDimension (int dim)
 
SReal ** getW ()
 
SReal * getDfree ()
 
SReal * getF ()
 
unsigned getProblemId () const
 

Additional Inherited Members

- Protected Attributes inherited from sofa::component::constraint::lagrangian::solver::GenericConstraintProblem
GenericConstraintSolverm_solver
 
- Protected Attributes inherited from sofa::component::constraint::lagrangian::solver::ConstraintProblem
int dimension
 
unsigned problemId
 

Attribute details

◆ cclist_elems

std::vector< ConstraintCorrections > sofa::component::constraint::lagrangian::solver::UnbuiltConstraintProblem::cclist_elems

UNBUILT

◆ constraints_sequence

std::list<unsigned int> sofa::component::constraint::lagrangian::solver::UnbuiltConstraintProblem::constraints_sequence

UNBUILT

◆ Wdiag

linearalgebra::SparseMatrix<SReal> sofa::component::constraint::lagrangian::solver::UnbuiltConstraintProblem::Wdiag

Constructor details

◆ UnbuiltConstraintProblem()

sofa::component::constraint::lagrangian::solver::UnbuiltConstraintProblem::UnbuiltConstraintProblem ( GenericConstraintSolver solver)
inline