mbsimflexiblebody  3.0.0
Public Member Functions | Protected Member Functions | Protected Attributes
MBSimFlexibleBody::FlexibleBody1s21RCM Class Reference

model for planar beams with large deflection using Redundant Coordinate Method (RCM) More...

#include <flexible_body_1s_21_rcm.h>

Inheritance diagram for MBSimFlexibleBody::FlexibleBody1s21RCM:
MBSimFlexibleBody::FlexibleBodyContinuum< double > MBSimFlexibleBody::FlexibleBody

List of all members.

Public Member Functions

 FlexibleBody1s21RCM (const std::string &name, bool openStructure)
 constructor:
virtual ~FlexibleBody1s21RCM ()
 destructor
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)
 cartesian kinematic for contour or external frame (normal, tangent, binormal) is set by implementation class
virtual void updateJacobiansForFrame (MBSim::ContourPointData &data, MBSim::Frame *frame=0)
 Jacobians and gyroscopes for contour or external frame are set by implementation class.
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
virtual void init (MBSim::InitStage stage)
virtual void plot (double t, double dt=1)
virtual std::string getType () const
void setNumberElements (int n)
 sets size of positions and velocities
int getNumberElements ()
void setLength (double L_)
double getLength ()
void setEModul (double E_)
void setCrossSectionalArea (double A_)
void setMomentInertia (double I_)
void setDensity (double rho_)
void setCurlRadius (double r)
void setMaterialDamping (double d)
void setLehrDamping (double d)
void setElementPlotList (fmatvec::Vector< int > plotElements_)
double getLength () const
fmatvec::Vec computeState (double x)
 compute state (positions, angles, velocities, differentiated angles) at Lagrangian coordinate in local FE coordinates
void initRelaxed (double alpha)
 initialise beam state concerning a straight cantilever setting or a circle shaped ring
void initInfo ()
 initialise beam only for giving information with respect to state, number elements, length, (not for simulation)
- Public Member Functions inherited from MBSimFlexibleBody::FlexibleBodyContinuum< double >
 FlexibleBodyContinuum (const std::string &name)
 constructor
void setContourNodes (const std::vector< double > nodes)
void addFrame (const std::string &name, const double &alpha)
void addFrame (MBSim::Frame *frame, const double &alpha)
- Public Member Functions inherited from MBSimFlexibleBody::FlexibleBody
 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 initializeUsingXML (TiXmlElement *element)
virtual double computeKineticEnergy ()
virtual double computePotentialEnergy ()
virtual void setFrameOfReference (MBSim::Frame *frame)
void setq0 (fmatvec::Vec q0_)
void setu0 (fmatvec::Vec u0_)
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 (MBSim::Frame *frame, const int &id)

Protected Member Functions

void BuildElement (const double &sGlobal, double &sLocal, int &currentElement)
 detect current finite element

Protected Attributes

int Elements
 number of finite elements used for discretisation
double L
 length of beam
double l0
 length of one finite element
double E
 modulus of linear elasticity
double A
 cross-section area
double I
 moment of inertia of cross-section
double rho
 material density
double rc
 curl radius
double dm
 coefficient of material damping
double dl
 coefficient of Lehr-damping
fmatvec::Vector< int > plotElements
 coefficient of Lehr-damping
bool openStructure
 flag for open (cantilever beam) or closed (rings) structures
bool initialized
 flag for testing if beam is initialised
Contour1sFlexible * contour1sFlexible
 contour of body
- Protected Attributes inherited from MBSimFlexibleBody::FlexibleBodyContinuum< double >
std::vector< double > userContourNodes
 grid for contact point detection
- Protected Attributes inherited from MBSimFlexibleBody::FlexibleBody
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

Detailed Description

model for planar beams with large deflection using Redundant Coordinate Method (RCM)

Author:
Roland Zander
Date:
2009-03-23 initial kernel_dev commit (Thorsten Schindler)
2009-03-26 cosmetics on doxygen (*! **) and alignements; some renames (Roland Zander)
2009-04-05 minor change: parent class now is FlexibleBodyContinuum (Schindler / Zander)
2009-04-20 binormals of contours can be time variant (Thorsten Schindler)
2009-05-08 visualisation (Thorsten Schindler)
2009-07-16 splitted link / object right hand side (Thorsten Schindler)
2009-07-23 implicit integration (Thorsten Schindler)
2010-03-07 element polt list for additional element data (Roland Zander)
2010-04-07 added initInfo() function same as in FlexibleBody1s33RCM (Thomas Cebulla)
Todo:

gyroscopic accelerations TODO

inverse kinetics TODO

read:
Zander, R.; Ulbrich, H.: Reference-free mixed FE-MBS approach for beam structures with constraints, Journal of Nonlinear Dynamics, Kluwer Academic Publishers, 2005
Zander, R.; Ulbrich, H.: Impacts on beam structures: Interaction of wave propagationand global dynamics, IUTAM Symposium on Multiscale Problems in Multibody System Contacts Stuttgart, Germany, 2006
Zander, R.; Ulbrich, H.: Free plain motion of flexible beams in MBS - A comparison of models, III European Conference on Computational Mechanics Lissbon, Portugal, 2006


Constructor & Destructor Documentation

MBSimFlexibleBody::FlexibleBody1s21RCM::FlexibleBody1s21RCM ( const std::string &  name,
bool  openStructure 
)

constructor:

Parameters:
nameof body
boolto specify open (cantilever) or closed (ring) structure

Member Function Documentation

void MBSimFlexibleBody::FlexibleBody1s21RCM::BuildElement ( const double &  sGlobal,
double &  sLocal,
int &  currentElement 
)
protected

detect current finite element

Parameters:
globalparametrisation
localparametrisation
finiteelement number
fmatvec::Vec MBSimFlexibleBody::FlexibleBody1s21RCM::computeState ( double  x)

compute state (positions, angles, velocities, differentiated angles) at Lagrangian coordinate in local FE coordinates

Parameters:
Lagrangiancoordinate
virtual void MBSimFlexibleBody::FlexibleBody1s21RCM::exportPositionVelocity ( const std::string &  filenamePos,
const std::string &  filenameVel = std::string( ),
const int &  deg = 3,
const bool &  writePsFile = false 
)
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 from MBSimFlexibleBody::FlexibleBody.

virtual void MBSimFlexibleBody::FlexibleBody1s21RCM::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::FlexibleBody1s21RCM::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::FlexibleBody1s21RCM::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.

virtual void MBSimFlexibleBody::FlexibleBody1s21RCM::importPositionVelocity ( const std::string &  filenamePos,
const std::string &  filenameVel = std::string( ) 
)
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 from MBSimFlexibleBody::FlexibleBody.

void MBSimFlexibleBody::FlexibleBody1s21RCM::initRelaxed ( double  alpha)

initialise beam state concerning a straight cantilever setting or a circle shaped ring

Parameters:
angleof slope in case of cantilever
virtual void MBSimFlexibleBody::FlexibleBody1s21RCM::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::FlexibleBody1s21RCM::updateKinematicsForFrame ( MBSim::ContourPointData &  data,
MBSim::FrameFeature  ff,
MBSim::Frame *  frame = 0 
)
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

Implements MBSimFlexibleBody::FlexibleBody.


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