mbsimflexiblebody  4.0.0
Public Member Functions | Protected Attributes
MBSimFlexibleBody::SuperElementLinearExternal Class Reference

superelement for linear models from external preprocessing. More...

#include <superelement_linear_external.h>

List of all members.

Public Member Functions

void init (MBSim::Element::InitStage stage)
void setM (const fmatvec::SymMat &M_)
void setK (const fmatvec::SqrMat &K_)
void setProportionalDamping (double alpha_, double beta_)
const fmatvec::SymMat & getM () const
const fmatvec::Vec & geth () const
const fmatvec::SqrMat & getdhdq () const
const fmatvec::SqrMat & getdhdu () const
int getqSize () const
int getuSize () const
void computeM (const fmatvec::Vec &qElement)
void computeh (const fmatvec::Vec &qElement, const fmatvec::Vec &uElement)
void computedhdz (const fmatvec::Vec &qElement, const fmatvec::Vec &uElement)
double computeKineticEnergy (const fmatvec::Vec &q, const fmatvec::Vec &u)
double computeGravitationalEnergy (const fmatvec::Vec &q)
double computeElasticEnergy (const fmatvec::Vec &q)
fmatvec::Vec computeVelocity (const fmatvec::Vec &q, const fmatvec::Vec &u, const MBSim::ContourPointData &cp)
fmatvec::Vec computeAngularVelocity (const fmatvec::Vec &q, const fmatvec::Vec &u, const MBSim::ContourPointData &cp)
fmatvec::Vec computePosition (const fmatvec::Vec &q, const MBSim::ContourPointData &cp)
fmatvec::SqrMat computeOrientation (const fmatvec::Vec &q, const MBSim::ContourPointData &cp)
fmatvec::Mat computeJacobianOfMotion (const fmatvec::Vec &q, const MBSim::ContourPointData &cp)
MBSim::ContourPointData addInterface (fmatvec::Mat J_, fmatvec::Vec KrP_)

Protected Attributes

fmatvec::SymMat M
 constant mass matrix $\vM$
fmatvec::Vec h
 right hand side
fmatvec::SqrMat K
 constant stiffness matrix $\vK$
fmatvec::SqrMat D
 constant damping matrix $\vD$, see setProportionalDamping()
double alpha
 constant for damping matrix, see setProportionalDamping
double beta
 constant for damping matrix, see setProportionalDamping
fmatvec::SqrMat Dhq
 constant Jacobians for implicit integration
fmatvec::SqrMat Dhqp
std::vector< fmatvec::Mat > J
 container holding constant JACOBIAN-matrizes of all Frames and Contours
std::vector< fmatvec::Vec > KrP
 container holding undeformed positions in body coordinate system of all Frames and Contours

Detailed Description

superelement for linear models from external preprocessing.

Author:
Roland Zander
Date:
2009-05-22 some references added (Thorsten Schindler)
2009-07-16 fixed proportional damping (Thorsten Schindler)
2009-07-23 implicit integration (Thorsten Schindler)

Member Function Documentation

void MBSimFlexibleBody::SuperElementLinearExternal::computeh ( const fmatvec::Vec &  qElement,
const fmatvec::Vec &  uElement 
) [inline]

update $\vh= -(\vK \vq + \vD \vu)$, $\vM$ is constant

void MBSimFlexibleBody::SuperElementLinearExternal::setK ( const fmatvec::SqrMat &  K_)

set constant stiffness matrix $\vK$

Parameters:
Kstiffness matrix
void MBSimFlexibleBody::SuperElementLinearExternal::setM ( const fmatvec::SymMat &  M_)

set constant mass matrix $\vM$

Parameters:
Mmass matrix
void MBSimFlexibleBody::SuperElementLinearExternal::setProportionalDamping ( double  alpha_,
double  beta_ 
) [inline]

set coefficients $\alpha$ and $\beta$ for proportional damping: constant damping matrix $\vD$ proportional to mass and stiffness

\[ \vD = \alpha * \vM + \beta*\vK \]

Parameters:
alphaproportional coefficient for mass matrix
betaproportional coefficient for stiffness matrix

The documentation for this class was generated from the following file: