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

#include <MechanicalMatrix.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

Vec3 factors
 

Public Member Functions

 MechanicalMatrix (SReal m, SReal b, SReal k)
 
 MechanicalMatrix (const Vec3 &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

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

Attribute details

◆ B

const MechanicalMatrix sofa::core::behavior::MechanicalMatrix::B
static

◆ factors

Vec3 sofa::core::behavior::MechanicalMatrix::factors
protected

◆ K

const MechanicalMatrix sofa::core::behavior::MechanicalMatrix::K
static

◆ M

const MechanicalMatrix sofa::core::behavior::MechanicalMatrix::M
static

Constructor details

◆ MechanicalMatrix() [1/2]

sofa::core::behavior::MechanicalMatrix::MechanicalMatrix ( SReal  m,
SReal  b,
SReal  k 
)
inline

◆ MechanicalMatrix() [2/2]

sofa::core::behavior::MechanicalMatrix::MechanicalMatrix ( const Vec3 f)
inlineexplicit

Function details

◆ getBFact()

SReal sofa::core::behavior::MechanicalMatrix::getBFact ( ) const
inline

◆ getKFact()

SReal sofa::core::behavior::MechanicalMatrix::getKFact ( ) const
inline

◆ getMFact()

SReal sofa::core::behavior::MechanicalMatrix::getMFact ( ) const
inline

◆ operator*()

MechanicalMatrix sofa::core::behavior::MechanicalMatrix::operator* ( SReal  f) const
inline

◆ operator+()

MechanicalMatrix sofa::core::behavior::MechanicalMatrix::operator+ ( const MechanicalMatrix m2) const
inline

◆ operator-() [1/2]

MechanicalMatrix sofa::core::behavior::MechanicalMatrix::operator- ( ) const
inline

◆ operator-() [2/2]

MechanicalMatrix sofa::core::behavior::MechanicalMatrix::operator- ( const MechanicalMatrix m2) const
inline

◆ operator/()

MechanicalMatrix sofa::core::behavior::MechanicalMatrix::operator/ ( SReal  f) const
inline

Enum details

◆ anonymous enum

anonymous enum
protected
Enumerator
MFACT 
BFACT 
KFACT 

Related details

◆ operator<<

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