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

#include <QuadularBendingSprings.h>

Public Attributes

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

Public Member Functions

 EdgeInformation (int m1=0, int m2=0, int m3=0, int m4=0, double restlength1=0.0, double restlength2=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::QuadularBendingSprings< DataTypes >::EdgeInformation::DfDx
template<class DataTypes >
bool sofa::component::forcefield::QuadularBendingSprings< DataTypes >::EdgeInformation::is_activated

rest length of the second spring

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

spring stiffness (initialized to the default value)

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

the two extremities of the second spring: masses m3 and m4

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

the edge stiffness matrix

template<class DataTypes >
int sofa::component::forcefield::QuadularBendingSprings< DataTypes >::EdgeInformation::m2
template<class DataTypes >
int sofa::component::forcefield::QuadularBendingSprings< DataTypes >::EdgeInformation::m3

the two extremities of the first spring: masses m1 and m2

template<class DataTypes >
int sofa::component::forcefield::QuadularBendingSprings< DataTypes >::EdgeInformation::m4
template<class DataTypes >
double sofa::component::forcefield::QuadularBendingSprings< DataTypes >::EdgeInformation::restlength1

damping factor (initialized to the default value)

template<class DataTypes >
double sofa::component::forcefield::QuadularBendingSprings< DataTypes >::EdgeInformation::restlength2

rest length of the first spring

Constructor details

template<class DataTypes >
sofa::component::forcefield::QuadularBendingSprings< DataTypes >::EdgeInformation::EdgeInformation ( int  m1 = 0,
int  m2 = 0,
int  m3 = 0,
int  m4 = 0,
double  restlength1 = 0.0,
double  restlength2 = 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.