SOFA API  56988ca1
Open source framework for multi-physics simuation
sofa::component::solidmechanics::spring::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

◆ kd

damping factor

◆ ks

spring stiffness

◆ restVector

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

rest vector of the spring

Constructor details

◆ Spring() [1/2]

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

◆ Spring() [2/2]

template<class DataTypes >
sofa::component::solidmechanics::spring::VectorSpringForceField< DataTypes >::Spring::Spring ( )
inline

Related details

◆ operator<<

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

Output stream.

◆ operator>>

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

Input stream.