SOFA API  b3f2f2a4
Open source framework for multi-physics simuation
sofa::component::solidmechanics::spring::QuadularBendingSprings< DataTypes >::EdgeInformation Class Reference

#include <QuadularBendingSprings.h>

Classes

struct  Spring
 

Public Attributes

sofa::type::fixed_array< Spring, 2 > springs
 
SReal ks {}
 
SReal kd {}
 spring stiffness More...
 
bool is_activated
 damping factor More...
 
bool is_initialized
 

Public Member Functions

 EdgeInformation (int m1=0, int m2=0, int m3=0, int m4=0, SReal restlength1=0_sreal, SReal restlength2=0_sreal, const bool is_activated=false, const bool is_initialized=false)
 

Friends

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

Attribute details

◆ is_activated

template<class DataTypes >
bool sofa::component::solidmechanics::spring::QuadularBendingSprings< DataTypes >::EdgeInformation::is_activated

damping factor

◆ is_initialized

template<class DataTypes >
bool sofa::component::solidmechanics::spring::QuadularBendingSprings< DataTypes >::EdgeInformation::is_initialized

◆ kd

template<class DataTypes >
SReal sofa::component::solidmechanics::spring::QuadularBendingSprings< DataTypes >::EdgeInformation::kd {}

spring stiffness

◆ ks

template<class DataTypes >
SReal sofa::component::solidmechanics::spring::QuadularBendingSprings< DataTypes >::EdgeInformation::ks {}

◆ springs

Constructor details

◆ EdgeInformation()

template<class DataTypes >
sofa::component::solidmechanics::spring::QuadularBendingSprings< DataTypes >::EdgeInformation::EdgeInformation ( int  m1 = 0,
int  m2 = 0,
int  m3 = 0,
int  m4 = 0,
SReal  restlength1 = 0_sreal,
SReal  restlength2 = 0_sreal,
const bool  is_activated = false,
const bool  is_initialized = false 
)
inline

Related details

◆ operator<<

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

Output stream.

◆ operator>>

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

Input stream.