SOFA plugin: PersistentContact  master
Open source framework for multi-physics simuation
sofa::component::constraintset::PersistentUnilateralConstraintResolutionWithFriction< DataTypes > Class Template Reference

#include <PersistentUnilateralInteractionConstraint.h>

Inheritance diagram for sofa::component::constraintset::PersistentUnilateralConstraintResolutionWithFriction< DataTypes >:

Protected Attributes

double _mu
 
double _W [6]
 
double _f [3]
 
bool * _active
 
PersistentUnilateralInteractionConstraint< DataTypes > * m_constraint
 

Public Member Functions

 PersistentUnilateralConstraintResolutionWithFriction (double mu, bool *active=NULL)
 
void init (int line, double **w, double *force) override
 
void resolution (int line, double **w, double *d, double *force, double *dFree) override
 
void store (int line, double *force, bool) override
 
void setConstraint (PersistentUnilateralInteractionConstraint< DataTypes > *c)
 
void setInitForce (type::Vec3d f)
 
- Public Member Functions inherited from sofa::core::behavior::ConstraintResolution
 ConstraintResolution (unsigned int nbLines, SReal tolerance=0.0)
 
virtual ~ConstraintResolution ()
 
virtual void init (int, SReal **, SReal *)
 
virtual void initForce (int, SReal *)
 
virtual void resolution (int line, SReal **w, SReal *d, SReal *force, SReal *dFree)
 
virtual void store (int, SReal *, bool)
 
void setNbLines (unsigned int nbLines)
 
unsigned int getNbLines () const
 
void setTolerance (SReal tolerance)
 
SReal getTolerance () const
 

Attribute details

◆ _active

◆ _f

◆ _mu

◆ _W

◆ m_constraint

Constructor details

◆ PersistentUnilateralConstraintResolutionWithFriction()

Function details

◆ init()

template<class DataTypes >
void sofa::component::constraintset::PersistentUnilateralConstraintResolutionWithFriction< DataTypes >::init ( int  line,
double **  w,
double *  force 
)
override

◆ resolution()

template<class DataTypes >
void sofa::component::constraintset::PersistentUnilateralConstraintResolutionWithFriction< DataTypes >::resolution ( int  line,
double **  w,
double *  d,
double *  force,
double *  dFree 
)
override

◆ setConstraint()

◆ setInitForce()

◆ store()

template<class DataTypes >
void sofa::component::constraintset::PersistentUnilateralConstraintResolutionWithFriction< DataTypes >::store ( int  line,
double *  force,
bool   
)
override

Enum details

◆ ContactState

Enumerator
NONE 
SLIDING 
STICKY