MBSim

Project Page
Public Member Functions | Protected Attributes
MBSim::Frame Class Reference

cartesian frame on bodies used for application of e.g. More...

#include <frame.h>

Inheritance diagram for MBSim::Frame:
MBSim::Element

List of all members.

Public Member Functions

 Frame (const std::string &name="dummy")
 constructor
virtual ~Frame ()
 destructor
std::string getType () const
virtual void plot (double t, double dt=1)
 plots time dependent data
virtual void closePlot ()
 closes plot file
virtual int gethSize (int i=0) const
virtual int gethInd (int i=0) const
virtual const fmatvec::Vec & getPosition () const
virtual const fmatvec::SqrMat & getOrientation () const
virtual fmatvec::Vec & getPosition ()
virtual fmatvec::SqrMat & getOrientation ()
virtual void setPosition (const fmatvec::Vec &v)
virtual void setOrientation (const fmatvec::SqrMat &AWP_)
virtual const fmatvec::Vec & getVelocity () const
virtual const fmatvec::Vec & getAngularVelocity () const
virtual const fmatvec::Mat & getJacobianOfTranslation (int j=0) const
virtual const fmatvec::Mat & getJacobianOfRotation (int j=0) const
virtual const fmatvec::Vec & getGyroscopicAccelerationOfTranslation (int j=0) const
virtual const fmatvec::Vec & getGyroscopicAccelerationOfRotation (int j=0) const
virtual const fmatvec::Vec & getAcceleration () const
virtual const fmatvec::Vec & getAngularAcceleration () const
virtual void init (InitStage stage)
 plots time series header
void sethSize (int size, int i=0)
void sethInd (int ind, int i=0)
fmatvec::Vec & getVelocity ()
fmatvec::Vec & getAngularVelocity ()
void setVelocity (const fmatvec::Vec &v)
void setAngularVelocity (const fmatvec::Vec &omega)
void setJacobianOfTranslation (const fmatvec::Mat &WJP_, int j=0)
void setGyroscopicAccelerationOfTranslation (const fmatvec::Vec &WjP_, int j=0)
void setJacobianOfRotation (const fmatvec::Mat &WJR_, int j=0)
void setGyroscopicAccelerationOfRotation (const fmatvec::Vec &WjR_, int j=0)
fmatvec::Mat & getJacobianOfTranslation (int j=0)
fmatvec::Mat & getJacobianOfRotation (int j=0)
fmatvec::Vec & getGyroscopicAccelerationOfTranslation (int j=0)
fmatvec::Vec & getGyroscopicAccelerationOfRotation (int j=0)
fmatvec::Vec & getAcceleration ()
fmatvec::Vec & getAngularAcceleration ()
void setAcceleration (const fmatvec::Vec &a)
void setAngularAcceleration (const fmatvec::Vec &psi)
- Public Member Functions inherited from MBSim::Element
 Element (const std::string &name)
 constructor
virtual ~Element ()
 destructor
virtual void initDataInterfaceBase (DynamicSystemSolver *parentds)
 TODO.
virtual void setDynamicSystemSolver (DynamicSystemSolver *sys)
virtual void plotAtSpecialEvent (double t, double dt=1)
 plots time dependent data at special events
const std::string & getName () const
const std::string getShortName () const
void setName (const std::string &str)
DynamicSystemSolver * getDynamicSystemSolver ()
virtual void createPlotGroup ()
 creates the plotGroup for H5-output
H5::Group * getPlotGroup ()
virtual void setPlotFeature (PlotFeature pf, PlotFeatureStatus value)
 Set a plot feature.
void setPlotFeatureForChildren (PlotFeature pf, PlotFeatureStatus value)
 Set a plot feature for the children of this object.
void setPlotFeatureRecursive (PlotFeature pf, PlotFeatureStatus value)
 Set a plot feature for this object and the children of this object.
PlotFeatureStatus getPlotFeature (PlotFeature pf)
PlotFeatureStatus getPlotFeatureForChildren (PlotFeature pf)
virtual void initializeUsingXML (TiXmlElement *element)
template<class T >
T * getByPath (std::string path)
 a general element access
virtual Element * getByPathSearch (std::string path)
 a general element search by path
virtual Element * getParent ()
virtual const Element * getParent () const
virtual void setParent (Element *parent_)
std::string getPath (char pathDelim='.')

Protected Attributes

int hSize [2]
 parent object for plot invocation
int hInd [2]
fmatvec::Vec WrOP
 position of coordinate system in inertial frame of reference
fmatvec::SqrMat AWP
 transformation matrix in inertial frame of reference
fmatvec::Vec WvP
 velocity and angular velocity of coordinate system in inertial frame of reference
fmatvec::Vec WomegaP
fmatvec::Mat WJP [2]
 Jacobians of translation and rotation from coordinate system to inertial frame.
fmatvec::Mat WJR [2]
fmatvec::Vec WjP [2]
 translational and rotational acceleration not linear in the generalised velocity derivatives
fmatvec::Vec WjR [2]
fmatvec::Vec WaP
 acceleration and angular acceleration of coordinate system in inertial frame of reference
fmatvec::Vec WpsiP
- Protected Attributes inherited from MBSim::Element
Element * parent
std::string name
 name of element
DynamicSystemSolver * ds
 dynamic system
H5::VectorSerie< double > * plotVectorSerie
 time series
std::vector< double > plotVector
 one entry of time series
std::vector< std::string > plotColumns
 columns of time series
H5::Group * plotGroup
 associated plot group

Additional Inherited Members

- Static Public Member Functions inherited from MBSim::Element
static double getDouble (TiXmlElement *e)
static int getInt (TiXmlElement *e)
static bool getBool (TiXmlElement *e)
static fmatvec::Vec getVec (TiXmlElement *e, int rows=0)
static fmatvec::Mat getMat (TiXmlElement *e, int rows=0, int cols=0)
static fmatvec::SqrMat getSqrMat (TiXmlElement *e, int size=0)
static fmatvec::SymMat getSymMat (TiXmlElement *e, int size=0)
- Protected Member Functions inherited from MBSim::Element
void updatePlotFeatures ()

Detailed Description

cartesian frame on bodies used for application of e.g.

links and loads

Author:
Martin Foerg
Date:
2009-03-19 some comments (Thorsten Schindler)
2009-04-08 stationary frame (Thorsten Schindler)
2009-07-06 deleted stationary frame (Thorsten Schindler)

Constructor & Destructor Documentation

MBSim::Frame::Frame ( const std::string &  name = "dummy")

constructor

Parameters:
nameof coordinate system

Member Function Documentation

std::string MBSim::Frame::getType ( ) const
inlinevirtual
Returns:
std::string representation

Reimplemented from MBSim::Element.

virtual void MBSim::Frame::init ( InitStage  stage)
virtual

plots time series header

Parameters:
invocingparent class

Reimplemented from MBSim::Element.

virtual void MBSim::Frame::plot ( double  t,
double  dt = 1 
)
virtual

plots time dependent data

Parameters:
simulationtime
simulationtime step size for derivative calculation

Reimplemented from MBSim::Element.


Member Data Documentation

int MBSim::Frame::hSize[2]
protected

parent object for plot invocation

size and index of right hand side


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