SOFA API  c76874b7
Open source framework for multi-physics simuation
sofa::component::forcefield::TriangularBendingSprings< DataTypes >::EdgeInformation Class Reference

#include <TriangularBendingSprings.h>

Public Attributes

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

Public Member Functions

 EdgeInformation (int m1=0, int m2=0, double 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

template<class DataTypes >
Mat sofa::component::forcefield::TriangularBendingSprings< DataTypes >::EdgeInformation::DfDx
template<class DataTypes >
bool sofa::component::forcefield::TriangularBendingSprings< DataTypes >::EdgeInformation::is_activated

rest length of the spring

template<class DataTypes >
bool sofa::component::forcefield::TriangularBendingSprings< DataTypes >::EdgeInformation::is_initialized
template<class DataTypes >
double sofa::component::forcefield::TriangularBendingSprings< DataTypes >::EdgeInformation::kd

spring stiffness (initialized to the default value)

template<class DataTypes >
double sofa::component::forcefield::TriangularBendingSprings< DataTypes >::EdgeInformation::ks

the two extremities of the spring: masses m1 and m2

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

the edge stiffness matrix

template<class DataTypes >
int sofa::component::forcefield::TriangularBendingSprings< DataTypes >::EdgeInformation::m2
template<class DataTypes >
double sofa::component::forcefield::TriangularBendingSprings< DataTypes >::EdgeInformation::restlength

damping factor (initialized to the default value)

Constructor details

template<class DataTypes >
sofa::component::forcefield::TriangularBendingSprings< DataTypes >::EdgeInformation::EdgeInformation ( int  m1 = 0,
int  m2 = 0,
double  restlength = 0.0,
bool  is_activated = false,
bool  is_initialized = false 
)
inline

Related details

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

Output stream.

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

Input stream.