SOFA API  1a4bb3e7
Open source framework for multi-physics simuation
sofa::helper::LCP Class Reference

#include <LCPcalc.h>

Public Attributes

int it
 
SReal error
 

Public Member Functions

 LCP ()
 
 ~LCP ()
 
void reset (void)
 
void allocate (unsigned int maxConst)
 
SReal ** getW (void)
 
SReal & getMu (void)
 
SReal * getDfree (void)
 
SReal getTolerance (void)
 
SReal getMaxIter (void)
 
SReal * getF (void)
 
SReal * getF_1 (void)
 
SReal * getD (void)
 
bool useInitialGuess (void)
 
unsigned int getDim (void)
 
unsigned int setDim (unsigned int nbC)
 
unsigned int getMaxConst (void)
 
void setNumItMax (int input_numItMax)
 
void setTol (SReal input_tol)
 
void setLCP (unsigned int input_dim, SReal *input_dfree, SReal **input_W, SReal *input_f, SReal &input_mu, SReal &input_tol, int input_numItMax)
 
void solveNLCP (bool convergenceTest, std::vector< SReal > *residuals=nullptr, std::vector< SReal > *violations=nullptr)
 

Attribute details

◆ error

SReal sofa::helper::LCP::error

◆ it

int sofa::helper::LCP::it

Constructor details

◆ LCP()

sofa::helper::LCP::LCP ( )

◆ ~LCP()

sofa::helper::LCP::~LCP ( )

Function details

◆ allocate()

void sofa::helper::LCP::allocate ( unsigned int  maxConst)

◆ getD()

SReal* sofa::helper::LCP::getD ( void  )
inline

◆ getDfree()

SReal* sofa::helper::LCP::getDfree ( void  )
inline

◆ getDim()

unsigned int sofa::helper::LCP::getDim ( void  )
inline

◆ getF()

SReal* sofa::helper::LCP::getF ( void  )
inline

◆ getF_1()

SReal* sofa::helper::LCP::getF_1 ( void  )
inline

◆ getMaxConst()

unsigned int sofa::helper::LCP::getMaxConst ( void  )
inline

◆ getMaxIter()

SReal sofa::helper::LCP::getMaxIter ( void  )
inline

◆ getMu()

SReal& sofa::helper::LCP::getMu ( void  )
inline

◆ getTolerance()

SReal sofa::helper::LCP::getTolerance ( void  )
inline

◆ getW()

SReal** sofa::helper::LCP::getW ( void  )
inline

◆ reset()

void sofa::helper::LCP::reset ( void  )

◆ setDim()

unsigned int sofa::helper::LCP::setDim ( unsigned int  nbC)
inline

◆ setLCP()

void sofa::helper::LCP::setLCP ( unsigned int  input_dim,
SReal *  input_dfree,
SReal **  input_W,
SReal *  input_f,
SReal &  input_mu,
SReal &  input_tol,
int  input_numItMax 
)

◆ setNumItMax()

void sofa::helper::LCP::setNumItMax ( int  input_numItMax)
inline

◆ setTol()

void sofa::helper::LCP::setTol ( SReal  input_tol)
inline

◆ solveNLCP()

void sofa::helper::LCP::solveNLCP ( bool  convergenceTest,
std::vector< SReal > *  residuals = nullptr,
std::vector< SReal > *  violations = nullptr 
)

◆ useInitialGuess()

bool sofa::helper::LCP::useInitialGuess ( void  )
inline