mbsimflexiblebody  3.2.0
Public Member Functions | Protected Member Functions | Protected Attributes
MBSimFlexibleBody::FlexibleBodyLinearExternal Class Reference

Linear models from external preprocessing, e.g. Finite Element model. More...

#include <flexible_body_linear_external.h>

Inheritance diagram for MBSimFlexibleBody::FlexibleBodyLinearExternal:
MBSimFlexibleBody::FlexibleBody

List of all members.

Public Member Functions

 FlexibleBodyLinearExternal (const std::string &name)
 constructor
virtual ~FlexibleBodyLinearExternal ()
 destructor
virtual std::string getType () const
virtual void init (MBSim::InitStage stage)
virtual void facLLM ()
virtual void BuildElements ()
 references finite element coordinates to assembled coordinates
virtual void GlobalVectorContribution (int n, const fmatvec::Vec &locVec, fmatvec::Vec &gloVec)
 insert 'local' information in global vectors
virtual void GlobalMatrixContribution (int n, const fmatvec::Mat &locMat, fmatvec::Mat &gloMat)
 insert 'local' information in global matrices
virtual void GlobalMatrixContribution (int n, const fmatvec::SymMat &locMat, fmatvec::SymMat &gloMat)
 insert 'local' information in global matrices
virtual void updateKinematicsForFrame (MBSim::ContourPointData &cp, MBSim::FrameFeature ff, MBSim::Frame *frame=0)
virtual void updateJacobiansForFrame (MBSim::ContourPointData &data, MBSim::Frame *frame=0)
 Jacobians and gyroscopes for contour or external frame are set by implementation class.
void readMassMatrix (const std::string &massfilename)
void setMassMatrix (const fmatvec::SymMat &mat)
void readStiffnessMatrix (const std::string &stiffnessfilename)
void setStiffnessMatrix (const fmatvec::SqrMat &mat)
void setProportionalDamping (const double &a, const double &b)
void setWrON00 (const fmatvec::Vec &WrON00_)
fmatvec::Mat computeJacobianMatrix (const MBSim::ContourPointData &CP)

Protected Member Functions

void updateStateDependentVariables (double t)
void updateContours (double t)
MBSim::ContourPointData addInterface (const std::string &jacbifilename)
MBSim::ContourPointData addInterface (const fmatvec::Mat &J, const fmatvec::Vec &r)
void updateJh_internal (double t)

Protected Attributes

int nContours
 number of Contours directly asoziated to body
std::vector
< MBSim::ContourPointData > 
contourType
 vector of ContourPointData controlling type of interface: node/interpolation
fmatvec::Vec WrON00
 origin $\rs{_W}[_K0]{\vr}$ of model

Detailed Description

Linear models from external preprocessing, e.g. Finite Element model.

Author:
Roland Zander
Date:
2009-03-26 initial kernel_dev commit (Roland Zander)
2009-04-05 minor change: parent class is not template class (Schindler / Zander)
2009-07-23 implicit integration (Thorsten Schindler)

Systems equation of motion:

\[ \vM{\rm d}\vu = -( \vK \vq + \vD \vu){\rm d}t - \vW{\rm d}\vLambda \]

with CONSTANT matrices $\vM,\vK,\vD$. The model uses n degrees of freedom (dimension of $\vq,\vu$) and d translational directions (dimension of Jacobi-matrizes $n\times d$)


Constructor & Destructor Documentation

constructor

Parameters:
nameof body

Member Function Documentation

MBSim::ContourPointData MBSimFlexibleBody::FlexibleBodyLinearExternal::addInterface ( const std::string &  jacbifilename) [protected]

create interface in form of ContourPointData based on file

Returns:
cpData for refering to Port or Contour added
Parameters:
jacbifilenamefile containing interface data
MBSim::ContourPointData MBSimFlexibleBody::FlexibleBodyLinearExternal::addInterface ( const fmatvec::Mat &  J,
const fmatvec::Vec &  r 
) [protected]

create interface in form of ContourPointData based on Jacobian matrix and undeformed position

Returns:
cpData for refering to Port or Contour added
Parameters:
JJacobian matrix
rundeformed position in body coordinate system
virtual void MBSimFlexibleBody::FlexibleBodyLinearExternal::GlobalMatrixContribution ( int  CurrentElement,
const fmatvec::Mat &  locMat,
fmatvec::Mat &  gloMat 
) [virtual]

insert 'local' information in global matrices

Parameters:
CurrentElementnumber of current finite element
locMatlocal matrix
gloMatglobal matrix

Implements MBSimFlexibleBody::FlexibleBody.

virtual void MBSimFlexibleBody::FlexibleBodyLinearExternal::GlobalMatrixContribution ( int  CurrentElement,
const fmatvec::SymMat &  locMat,
fmatvec::SymMat &  gloMat 
) [virtual]

insert 'local' information in global matrices

Parameters:
CurrentElementnumber of current finite element
locMatlocal matrix
gloMatglobal matrix

Implements MBSimFlexibleBody::FlexibleBody.

virtual void MBSimFlexibleBody::FlexibleBodyLinearExternal::GlobalVectorContribution ( int  CurrentElement,
const fmatvec::Vec &  locVec,
fmatvec::Vec &  gloVec 
) [virtual]

insert 'local' information in global vectors

Parameters:
numberof finite element
localvector
globalvector

Implements MBSimFlexibleBody::FlexibleBody.

void MBSimFlexibleBody::FlexibleBodyLinearExternal::readMassMatrix ( const std::string &  massfilename)

read mass matrix: style e.g. for 2*2 matrix
n x n
[1.0 0.0
 0.0 1.0]

Parameters:
massfilenamename of file holding mass matrix
void MBSimFlexibleBody::FlexibleBodyLinearExternal::readStiffnessMatrix ( const std::string &  stiffnessfilename)

read stiffness matrix form given file readMassMatrix(const std::string &massfilename)

Parameters:
stiffnessfilenamename of file holding stiffness matrix
void MBSimFlexibleBody::FlexibleBodyLinearExternal::setMassMatrix ( const fmatvec::SymMat &  mat)

set mass matrix:

Parameters:
matmass matrix
void MBSimFlexibleBody::FlexibleBodyLinearExternal::setProportionalDamping ( const double &  a,
const double &  b 
)

set damping $\vD$ proportional to mass and stiffness

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

Parameters:
a_$\alpha$
b_$\beta $

read stiffness matrix

Parameters:
matstiffness matrix
void MBSimFlexibleBody::FlexibleBodyLinearExternal::setWrON00 ( const fmatvec::Vec &  WrON00_) [inline]

add Port using JACOBIAN matrix and frame location form given file n x d
[1.0
 0.0 ]

d x 1
[1.0
0.0
0.0 ]

Parameters:
namename of Port create
jacobifilenamename of file holding matrices

add Port using JACOBIAN matrix and location of reference point

Parameters:
nameof Port to
JJacobian matrix create
rundeformed reference point in body coordinate system

add Contour using information given in file for JACOBIAN matrix and location of reference point

Parameters:
contourContour to add
jacobifilenamename of file holding matrices

add Contour using JACOBIAN matrix and location of reference point

Parameters:
contourContour to add
JJacobian matrix
rundeformed reference point in body coordinate system

add a ContourInterpolation, no additional information needed

set origin BodyFlexibleLinearExternal::WrON00, $\rs{_W}[_K0]{\vr}$ of model

Kinematical update of postition and velocities of every Contour:

\[ \vr_{C} = \vr_{K} + \vJ_T(\vr_{P0} + \vW^T\vq) \]

Parameters:
ttime
Todo:
angular kinematics
virtual void MBSimFlexibleBody::FlexibleBodyLinearExternal::updateJacobiansForFrame ( MBSim::ContourPointData &  data,
MBSim::Frame *  frame = 0 
) [virtual]

Jacobians and gyroscopes for contour or external frame are set by implementation class.

Parameters:
datacontour parameter
frame,:optional external frame, otherwise contour parameters are changed

Implements MBSimFlexibleBody::FlexibleBody.

virtual void MBSimFlexibleBody::FlexibleBodyLinearExternal::updateKinematicsForFrame ( MBSim::ContourPointData &  cp,
MBSim::FrameFeature  ff,
MBSim::Frame *  frame = 0 
) [virtual]

Kinematical update of postition and velocities of every attached Frame:

\[ \vr_{P} = \vr_{K} + \vJ_T(\vr_{P0} + \vW^T\vq) \]

Parameters:
ttime
Todo:
angular kinematics

Implements MBSimFlexibleBody::FlexibleBody.

update kinematical values
Call to updateFrames(double t) and updateContours(double t)

Parameters:
ttime

Reimplemented from MBSimFlexibleBody::FlexibleBody.


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