mbsimflexiblebody  4.0.0
Public Member Functions | Private Member Functions | Private Attributes
MBSimFlexibleBody::FlexibleBody1s33RCM Class Reference

spatial beam using Redundant Coordinate Method (RCM) More...

#include <flexible_body_1s_33_rcm.h>

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

List of all members.

Public Member Functions

 FlexibleBody1s33RCM (const std::string &name="", bool openStructure=false)
 constructor
virtual ~FlexibleBody1s33RCM ()
 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::Frame::Frame::Feature 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 (InitStage stage)
virtual void plot (double t, double dt=1)
virtual std::string getType () const
void initializeUsingXML (xercesc::DOMElement *element)
void setNumberElements (int n)
int getNumberElements ()
void setLength (double L_)
double getLength ()
void setEGModuls (double E_, double G_)
void setDensity (double rho_)
void setCrossSectionalArea (double A_)
void setMomentsInertia (double I1_, double I2_, double I0_)
void setCylinder (double cylinderRadius_)
void setMaterialDamping (double epstD_, double k0D_)
void setGauss (int nGauss)
void setCuboid (double cuboidBreadth_, double cuboidHeight_)
void setCurlRadius (double R1_, double R2_)
void setLehrDamping (double epstL_, double k0L_)
fmatvec::Vec computeState (double sGlobal)
 compute state (positions, angles, velocities, differentiated angles) at Lagrangian coordinate in local FE coordinates
double computePhysicalStrain (const double sGlobal)
 compute the physical strain of the element
void initInfo ()
 initialise beam only for giving information with respect to state, number elements, length, (not for simulation)

Private Member Functions

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

Private Attributes

CylinderFlexible * cylinder
 contours
FlexibleBand * top
FlexibleBand * bottom
FlexibleBand * left
FlexibleBand * right
Contour1sFlexible * neutralFibre
RevCardanPtr angle
 angle parametrisation
int Elements
 number of elements
double L
 length of entire beam and finite elements
double l0
double E
 elastic modules
double G
double A
 area of cross-section
double I1
 area moment of inertia
double I2
double I0
double rho
 density
double R1
 radius of undeformed shape
double R2
double epstD
 damping
double k0D
double epstL
double k0L
bool openStructure
 open or closed structure
bool initialised
 initialised FLAG
int nGauss
 number of Gauss points for rotational kinetic energy
double cylinderRadius
 contour data
double cuboidBreadth
double cuboidHeight

Detailed Description

spatial beam using Redundant Coordinate Method (RCM)

Author:
Thorsten Schindler
Date:
2009-04-17 initial commit kernel_dev (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)
2012-01-10 import / export position and velocity (Cebulla / Grundl)
2012-05-14 added Contour1sFlexible for perlchain example (Thomas Cebulla)
Todo:

gyroscopic accelerations TODO

inverse kinetics TODO


Constructor & Destructor Documentation

MBSimFlexibleBody::FlexibleBody1s33RCM::FlexibleBody1s33RCM ( const std::string &  name = "",
bool  openStructure = false 
)

constructor

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

Member Function Documentation

void MBSimFlexibleBody::FlexibleBody1s33RCM::BuildElement ( const double &  sGlobal,
double &  sLocal,
int &  currentElement 
) [private]

detect current finite element

Parameters:
globalparametrisation
localparametrisation
finiteelement number

compute the physical strain of the element

Parameters:
Lagrangiancoordinate
fmatvec::Vec MBSimFlexibleBody::FlexibleBody1s33RCM::computeState ( double  sGlobal)

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

Parameters:
Lagrangiancoordinate
virtual void MBSimFlexibleBody::FlexibleBody1s33RCM::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::FlexibleBody1s33RCM::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::FlexibleBody1s33RCM::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::FlexibleBody1s33RCM::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::FlexibleBody1s33RCM::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.

virtual void MBSimFlexibleBody::FlexibleBody1s33RCM::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::FlexibleBody1s33RCM::updateKinematicsForFrame ( MBSim::ContourPointData &  data,
MBSim::Frame::Frame::Feature  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: