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

upmost class for flexible body implementation More...

#include <flexible_body.h>

Inheritance diagram for MBSimFlexibleBody::FlexibleBody:
MBSimFlexibleBody::FlexibleBodyContinuum< double > MBSimFlexibleBody::FlexibleBodyContinuum< fmatvec::Vec > MBSimFlexibleBody::FlexibleBodyContinuum< AT > MBSimFlexibleBody::FlexibleBodyLinearExternal MBSimFlexibleBody::FlexibleBody1s21ANCF MBSimFlexibleBody::FlexibleBody1s21RCM MBSimFlexibleBody::FlexibleBody1s23BTA MBSimFlexibleBody::FlexibleBody1s33ANCF MBSimFlexibleBody::FlexibleBody1s33RCM MBSimFlexibleBody::FlexibleBody1sCosserat MBSimFlexibleBody::FlexibleBody2s13 MBSimFlexibleBody::FlexibleBodyLinearExternalFFR

List of all members.

Public Member Functions

 FlexibleBody (const std::string &name)
 constructor
virtual ~FlexibleBody ()
 destructor
virtual void updatedq (double t, double dt)
virtual void updateqd (double t)
virtual void updateh (double t, int k=0)
virtual void updateM (double t, int k=0)
virtual void updatedhdz (double t)
virtual void updateStateDependentVariables (double t)
virtual void updateJacobians (double t, int k=0)
virtual void plot (double t, double dt=1)
virtual std::string getType () const
virtual void initializeUsingXML (xercesc::DOMElement *element)
virtual void init (InitStage stage)
virtual double computeKineticEnergy ()
virtual double computePotentialEnergy ()
virtual void setFrameOfReference (MBSim::Frame *frame)
virtual void setq0 (fmatvec::Vec q0_)
virtual void setu0 (fmatvec::Vec u0_)
virtual void BuildElements ()=0
 references finite element coordinates to assembled coordinates
virtual void GlobalVectorContribution (int CurrentElement, const fmatvec::Vec &locVec, fmatvec::Vec &gloVec)=0
 insert 'local' information in global vectors
virtual void GlobalMatrixContribution (int CurrentElement, const fmatvec::Mat &locMat, fmatvec::Mat &gloMat)=0
 insert 'local' information in global matrices
virtual void GlobalMatrixContribution (int CurrentElement, const fmatvec::SymMat &locMat, fmatvec::SymMat &gloMat)=0
 insert 'local' information in global matrices
virtual void updateKinematicsForFrame (MBSim::ContourPointData &data, MBSim::Frame::Frame::Feature ff, MBSim::Frame *frame=0)=0
 cartesian kinematic for contour or external frame (normal, tangent, binormal) is set by implementation class
virtual void updateKinematicsAtNode (NodeFrame *frame, MBSim::Frame::Feature ff)
 cartesian kinematic on a node
virtual void updateJacobiansForFrame (MBSim::ContourPointData &data, MBSim::Frame *frame=0)=0
 Jacobians and gyroscopes for contour or external frame are set by implementation class.
void setMassProportionalDamping (const double d_)
 set mass proportional damping
void addFrame (const std::string &name, const MBSim::ContourPointData &S_)
void addFrame (MBSim::Frame *frame, const MBSim::ContourPointData &S_)
void addFrame (const std::string &name, const int &id)
void addFrame (NodeFrame *frame)
void addFrame (MBSim::FixedRelativeFrame *frame)
void addContour (MBSim::Contour *contour)
virtual void exportPositionVelocity (const std::string &filenamePos, const std::string &filenameVel=std::string(), const int &deg=3, const bool &writePsFile=false)
 interpolates the position and optional the velocity coordinates of the flexible body with Nurbs-package and exports the nurbs curve in the specified file
virtual void importPositionVelocity (const std::string &filenamePos, const std::string &filenameVel=std::string())
 imports the interpolated position and optional the velocity files (created with exportPositionVelocity) and fits the rigid and flexible coordinate dofs and optional the translatory velocity components of flexible body to the imported nurbs curve

Protected Attributes

std::vector
< MBSim::DiscretizationInterface * > 
discretization
 stl-vector of discretizations/finite elements
std::vector< fmatvec::Vec > qElement
 stl-vector of finite element wise positions
std::vector< fmatvec::Vec > uElement
 stl-vector of finite element wise velocities
double d_massproportional
 damping factor for mass proportion, see BodyFlexible::setMassProportionalDamping()
std::vector
< MBSim::ContourPointData > 
S_Frame
 vector of contour parameters each describing a frame
MBSim::Frame * contourFrame
std::vector
< MBSim::FixedRelativeFrame * > 
fixedRelativeFrames
 list of all contour frames
std::vector< NodeFrame * > nodeFrames
 list of all Node-Frames

Detailed Description

upmost class for flexible body implementation

Author:
Roland Zander
Thorsten Schindler
Date:
2009-03-24 changes for new MBSim (Thorsten Schindler)
2009-03-25 conflicts solved (Thorsten Schindler)
2009-04-05 changed to non-template definition (Schindler / Zander)
2009-04-20 frame concept (Thorsten Schindler)
2009-06-14 OpenMP (Thorsten Schindler)
2009-07-16 splitted link / object right hand side (Thorsten Schindler)
2009-07-27 implicit integration (Thorsten Schindler)
2010-06-20 revision of doxygen comments: add parameter names (Roland Zander)
Todo:

OpenMP only static scheduling with intelligent reordering of vectors by dynamic test runs TODO

mass proportional damping should be distributed on discretization and is not at the correct place (dependence on M) TODO


Constructor & Destructor Documentation

MBSimFlexibleBody::FlexibleBody::FlexibleBody ( const std::string &  name)

constructor

Parameters:
nameof body

Member Function Documentation

void MBSimFlexibleBody::FlexibleBody::addFrame ( const std::string &  name,
const MBSim::ContourPointData &  S_ 
)
Parameters:
nameof frame
framelocation
void MBSimFlexibleBody::FlexibleBody::addFrame ( MBSim::Frame *  frame,
const MBSim::ContourPointData &  S_ 
)
Parameters:
frame
framelocation
void MBSimFlexibleBody::FlexibleBody::addFrame ( const std::string &  name,
const int &  id 
)
Parameters:
nameof frame
nodeof frame
Parameters:
nodeframe
void MBSimFlexibleBody::FlexibleBody::addFrame ( MBSim::FixedRelativeFrame *  frame)
Parameters:
fixedrelative frame that should be added
virtual void MBSimFlexibleBody::FlexibleBody::exportPositionVelocity ( const std::string &  filenamePos,
const std::string &  filenameVel = std::string(),
const int &  deg = 3,
const bool &  writePsFile = false 
) [inline, virtual]

interpolates the position and optional the velocity coordinates of the flexible body with Nurbs-package and exports the nurbs curve in the specified file

Parameters:
filenamePosName of the exported position curve file
filenameVelName of the exported velocity curve file
degDegree of Nurbs interpolation
writePsFileA Postscript-file of the curve profile is created

Remark: the knot vector is parametrized between [0,L]

Reimplemented in MBSimFlexibleBody::FlexibleBody1s33Cosserat, MBSimFlexibleBody::FlexibleBody1s21Cosserat, MBSimFlexibleBody::FlexibleBody1s21RCM, MBSimFlexibleBody::FlexibleBody1s33RCM, and MBSimFlexibleBody::FlexibleBody1sCosserat.

virtual void MBSimFlexibleBody::FlexibleBody::GlobalMatrixContribution ( int  CurrentElement,
const fmatvec::Mat &  locMat,
fmatvec::Mat &  gloMat 
) [pure virtual]
virtual void MBSimFlexibleBody::FlexibleBody::GlobalMatrixContribution ( int  CurrentElement,
const fmatvec::SymMat &  locMat,
fmatvec::SymMat &  gloMat 
) [pure virtual]
virtual void MBSimFlexibleBody::FlexibleBody::GlobalVectorContribution ( int  CurrentElement,
const fmatvec::Vec &  locVec,
fmatvec::Vec &  gloVec 
) [pure virtual]
virtual void MBSimFlexibleBody::FlexibleBody::importPositionVelocity ( const std::string &  filenamePos,
const std::string &  filenameVel = std::string() 
) [inline, virtual]

imports the interpolated position and optional the velocity files (created with exportPositionVelocity) and fits the rigid and flexible coordinate dofs and optional the translatory velocity components of flexible body to the imported nurbs curve

Parameters:
filenamePosName of the imported position curve file
filenameVelName of the imported velocity curve file

Reimplemented in MBSimFlexibleBody::FlexibleBody1s33Cosserat, MBSimFlexibleBody::FlexibleBody1s21Cosserat, MBSimFlexibleBody::FlexibleBody1s21RCM, MBSimFlexibleBody::FlexibleBody1s33RCM, and MBSimFlexibleBody::FlexibleBody1sCosserat.

set mass proportional damping

damping matrix computation, updated with changes in mass matrix $\vM$: $\vh_d=-d_{pm}\vM\vu$

Parameters:
d_coefficient $d_{pm}$
virtual void MBSimFlexibleBody::FlexibleBody::updateJacobiansForFrame ( MBSim::ContourPointData &  data,
MBSim::Frame *  frame = 0 
) [pure virtual]
virtual void MBSimFlexibleBody::FlexibleBody::updateKinematicsForFrame ( MBSim::ContourPointData &  data,
MBSim::Frame::Frame::Feature  ff,
MBSim::Frame *  frame = 0 
) [pure virtual]

cartesian kinematic for contour or external frame (normal, tangent, binormal) is set by implementation class

Parameters:
datacontour parameter
ffselection of specific calculations for frames
frameoptional: external frame, otherwise contour parameters are changed

Implemented in MBSimFlexibleBody::FlexibleBody1s33Cosserat, MBSimFlexibleBody::FlexibleBody1s21RCM, MBSimFlexibleBody::FlexibleBody1s33RCM, MBSimFlexibleBody::FlexibleBody1sCosserat, and MBSimFlexibleBody::FlexibleBody2s13Disk.


Member Data Documentation

std::vector<MBSim::FixedRelativeFrame*> MBSimFlexibleBody::FlexibleBody::fixedRelativeFrames [protected]

list of all contour frames

Todo:
: actually continous frames should be added to a contour and not to the body?!

list of all fixed relative frames


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