SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::component::interactionforcefield::VectorSpringForceField< DataTypes >::Spring Struct Reference

#include <VectorSpringForceField.h>

Public Attributes

Real ks
 spring stiffness More...
 
Real kd
 damping factor More...
 
Deriv restVector
 rest vector of the spring More...
 

Public Member Functions

 Spring (Real _ks, Real _kd, Deriv _rl)
 
 Spring ()
 

Friends

std::ostream & operator<< (std::ostream &os, const Spring &)
 Output stream. More...
 
std::istream & operator>> (std::istream &in, Spring &)
 Input stream. More...
 

Attribute details

damping factor

spring stiffness

template<class DataTypes >
Deriv sofa::component::interactionforcefield::VectorSpringForceField< DataTypes >::Spring::restVector

rest vector of the spring

Constructor details

template<class DataTypes >
sofa::component::interactionforcefield::VectorSpringForceField< DataTypes >::Spring::Spring ( Real  _ks,
Real  _kd,
Deriv  _rl 
)
inline
template<class DataTypes >
sofa::component::interactionforcefield::VectorSpringForceField< DataTypes >::Spring::Spring ( )
inline

Related details

template<class DataTypes >
std::ostream& operator<< ( std::ostream &  os,
const Spring  
)
friend

Output stream.

template<class DataTypes >
std::istream& operator>> ( std::istream &  in,
Spring  
)
friend

Input stream.