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

#include <TriangularBendingSprings.h>

Public Attributes

Mat DfDx
 the edge stiffness matrix More...
 
int m1
 
int m2
 the two extremities of the spring: masses m1 and m2 More...
 
Real ks
 spring stiffness (initialized to the default value) More...
 
Real kd
 damping factor (initialized to the default value) More...
 
Real restlength
 rest length of the spring More...
 
bool is_activated
 
bool is_initialized
 

Public Member Functions

 EdgeInformation (int m1=0, int m2=0, Real restlength=0.0, bool is_activated=false, 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

◆ DfDx

template<class DataTypes >
Mat sofa::component::solidmechanics::spring::TriangularBendingSprings< DataTypes >::EdgeInformation::DfDx

the edge stiffness matrix

◆ is_activated

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

◆ is_initialized

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

◆ kd

template<class DataTypes >
Real sofa::component::solidmechanics::spring::TriangularBendingSprings< DataTypes >::EdgeInformation::kd

damping factor (initialized to the default value)

◆ ks

template<class DataTypes >
Real sofa::component::solidmechanics::spring::TriangularBendingSprings< DataTypes >::EdgeInformation::ks

spring stiffness (initialized to the default value)

◆ m1

template<class DataTypes >
int sofa::component::solidmechanics::spring::TriangularBendingSprings< DataTypes >::EdgeInformation::m1

◆ m2

template<class DataTypes >
int sofa::component::solidmechanics::spring::TriangularBendingSprings< DataTypes >::EdgeInformation::m2

the two extremities of the spring: masses m1 and m2

◆ restlength

template<class DataTypes >
Real sofa::component::solidmechanics::spring::TriangularBendingSprings< DataTypes >::EdgeInformation::restlength

rest length of the spring

Constructor details

◆ EdgeInformation()

template<class DataTypes >
sofa::component::solidmechanics::spring::TriangularBendingSprings< DataTypes >::EdgeInformation::EdgeInformation ( int  m1 = 0,
int  m2 = 0,
Real  restlength = 0.0,
bool  is_activated = false,
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.