SOFA API  c76874b7
Open source framework for multi-physics simuation
sofa::core::behavior::MechanicalMatrix Class Reference

#include <MultiMatrix.h>

Detailed Description

Helper class allowing to construct mechanical expressions

Static Public Attributes

static const MechanicalMatrix M
 
static const MechanicalMatrix B
 
static const MechanicalMatrix K
 

Protected Attributes

defaulttype::Vec< 3, SReal > factors
 

Public Member Functions

 MechanicalMatrix (SReal m, SReal b, SReal k)
 
 MechanicalMatrix (const defaulttype::Vec< 3, SReal > &f)
 
SReal getMFact () const
 
SReal getBFact () const
 
SReal getKFact () const
 
MechanicalMatrix operator+ (const MechanicalMatrix &m2) const
 
MechanicalMatrix operator- (const MechanicalMatrix &m2) const
 
MechanicalMatrix operator- () const
 
MechanicalMatrix operator* (SReal f) const
 
MechanicalMatrix operator/ (SReal f) const
 

Friends

std::ostream & operator<< (std::ostream &out, const MechanicalMatrix &m)
 

Attribute details

const MechanicalMatrix sofa::core::behavior::MechanicalMatrix::B
static
defaulttype::Vec<3,SReal> sofa::core::behavior::MechanicalMatrix::factors
protected
const MechanicalMatrix sofa::core::behavior::MechanicalMatrix::K
static
const MechanicalMatrix sofa::core::behavior::MechanicalMatrix::M
static

Constructor details

sofa::core::behavior::MechanicalMatrix::MechanicalMatrix ( SReal  m,
SReal  b,
SReal  k 
)
inline
sofa::core::behavior::MechanicalMatrix::MechanicalMatrix ( const defaulttype::Vec< 3, SReal > &  f)
inlineexplicit

Function details

SReal sofa::core::behavior::MechanicalMatrix::getBFact ( ) const
inline
SReal sofa::core::behavior::MechanicalMatrix::getKFact ( ) const
inline
SReal sofa::core::behavior::MechanicalMatrix::getMFact ( ) const
inline
MechanicalMatrix sofa::core::behavior::MechanicalMatrix::operator* ( SReal  f) const
inline
MechanicalMatrix sofa::core::behavior::MechanicalMatrix::operator+ ( const MechanicalMatrix m2) const
inline
MechanicalMatrix sofa::core::behavior::MechanicalMatrix::operator- ( const MechanicalMatrix m2) const
inline
MechanicalMatrix sofa::core::behavior::MechanicalMatrix::operator- ( ) const
inline
MechanicalMatrix sofa::core::behavior::MechanicalMatrix::operator/ ( SReal  f) const
inline

Enum details

anonymous enum
protected
Enumerator
MFACT 
BFACT 
KFACT 

Related details

std::ostream& operator<< ( std::ostream &  out,
const MechanicalMatrix m 
)
friend