#include <LinearSpring.h>
This class contains the description of one linear spring. More...
This class contains the description of one linear spring.
Public Attributes | |
sofa::Index | m1 |
sofa::Index | m2 |
the two extremities of the spring: masses m1 and m2 More... | |
Real | ks |
spring stiffness More... | |
Real | kd |
damping factor More... | |
Real | initpos |
rest length of the spring More... | |
bool | elongationOnly |
only forbid elongation, not compression More... | |
bool | enabled |
false to disable this spring (i.e. broken) More... | |
Public Member Functions | |
LinearSpring (const sofa::Index m1=0, const sofa::Index m2=0, Real ks=0.0, Real kd=0.0, Real initpos=0.0, const bool noCompression=false, const bool enabled=true) | |
Friends | |
std::istream & | operator>> (std::istream &in, LinearSpring< Real > &s) |
std::ostream & | operator<< (std::ostream &out, const LinearSpring< Real > &s) |
bool sofa::component::solidmechanics::spring::LinearSpring< T >::elongationOnly |
only forbid elongation, not compression
bool sofa::component::solidmechanics::spring::LinearSpring< T >::enabled |
false to disable this spring (i.e. broken)
Real sofa::component::solidmechanics::spring::LinearSpring< T >::initpos |
rest length of the spring
Real sofa::component::solidmechanics::spring::LinearSpring< T >::kd |
damping factor
Real sofa::component::solidmechanics::spring::LinearSpring< T >::ks |
spring stiffness
sofa::Index sofa::component::solidmechanics::spring::LinearSpring< T >::m1 |
sofa::Index sofa::component::solidmechanics::spring::LinearSpring< T >::m2 |
the two extremities of the spring: masses m1 and m2
|
inlineexplicit |
|
friend |
|
friend |