SOFA API  8cb54967
Open source framework for multi-physics simuation
sofa::component::collision::response::contact::PenalityContact< T > Class Template Reference

#include <PenalityContactForceField.h>

Public Attributes

sofa::Index m1
 
sofa::Index m2
 the indices of the vertices the force is applied to More...
 
sofa::Index index1
 
sofa::Index index2
 the indices of the two collision elements (currently unused) More...
 
Deriv norm
 contact normal, from m1 to m2 More...
 
Real dist
 distance threshold below which a repulsion force is applied More...
 
Real ks
 spring stiffness More...
 
Real pen
 current penetration depth More...
 
int age
 how old is this contact More...
 

Public Member Functions

 PenalityContact (sofa::Index _m1=0, sofa::Index _m2=0, sofa::Index _index1=0, sofa::Index _index2=0, Deriv _norm=Deriv(), Real _dist=(Real) 0, Real _ks=(Real) 0, Real=(Real) 0, Real=(Real) 0, Real _pen=(Real) 0, int _age=0)
 

Friends

std::istream & operator>> (std::istream &in, PenalityContact &c)
 
std::ostream & operator<< (std::ostream &out, const PenalityContact &c)
 

Attribute details

◆ age

how old is this contact

◆ dist

distance threshold below which a repulsion force is applied

◆ index1

template<class T >
sofa::Index sofa::component::collision::response::contact::PenalityContact< T >::index1

◆ index2

template<class T >
sofa::Index sofa::component::collision::response::contact::PenalityContact< T >::index2

the indices of the two collision elements (currently unused)

◆ ks

spring stiffness

◆ m1

template<class T >
sofa::Index sofa::component::collision::response::contact::PenalityContact< T >::m1

◆ m2

template<class T >
sofa::Index sofa::component::collision::response::contact::PenalityContact< T >::m2

the indices of the vertices the force is applied to

◆ norm

contact normal, from m1 to m2

◆ pen

current penetration depth

Constructor details

◆ PenalityContact()

template<class T >
sofa::component::collision::response::contact::PenalityContact< T >::PenalityContact ( sofa::Index  _m1 = 0,
sofa::Index  _m2 = 0,
sofa::Index  _index1 = 0,
sofa::Index  _index2 = 0,
Deriv  _norm = Deriv(),
Real  _dist = (Real)0,
Real  _ks = (Real)0,
Real  = (Real)0,
Real  = (Real)0,
Real  _pen = (Real)0,
int  _age = 0 
)
inline

Related details

◆ operator<<

template<class T >
std::ostream& operator<< ( std::ostream &  out,
const PenalityContact< T > &  c 
)
friend

◆ operator>>

template<class T >
std::istream& operator>> ( std::istream &  in,
PenalityContact< T > &  c 
)
friend