MBSim

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

general link to one or more objects More...

#include <link_mechanics.h>

Inheritance diagram for MBSim::LinkMechanics:
MBSim::Link MBSim::Element MBSim::Contact MBSim::Gear MBSim::Gearing MBSim::Joint MBSim::KineticExcitation MBSim::MaxwellContact MBSim::RelativeRotationalSpringDamper MBSim::SpringDamper

List of all members.

Public Member Functions

 LinkMechanics (const std::string &name)
 constructor
virtual ~LinkMechanics ()
 destructor
virtual void updatedhdz (double t)
virtual void init (InitStage stage)
 plots time series header
std::string getType () const
virtual void plot (double t, double dt=1)
 plots time dependent data
virtual void closePlot ()
 closes plot file
virtual void updateWRef (const fmatvec::Mat &ref, int i=0)
 references to contact force direction matrix of dynamic system parent
virtual void updateVRef (const fmatvec::Mat &ref, int i=0)
 references to condensed contact force direction matrix of dynamic system parent
virtual void updatehRef (const fmatvec::Vec &hRef, int i=0)
 references to complete and link smooth force vector of dynamic system parent
virtual void updatedhdqRef (const fmatvec::Mat &ref, int i=0)
virtual void updatedhduRef (const fmatvec::SqrMat &ref, int i=0)
virtual void updatedhdtRef (const fmatvec::Vec &ref, int i=0)
virtual void updaterRef (const fmatvec::Vec &ref, int i=0)
 references to nonsmooth force vector of dynamic system parent
virtual void connect (Frame *frame_)
virtual void connect (Contour *contour_)
- 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 * getParent ()
virtual const Element * getParent () const
virtual void setParent (Element *parent_)
std::string getPath (char pathDelim='.')

Protected Attributes

std::vector< fmatvec::Vec > WF
 force and moment direction for smooth right hand side
std::vector< fmatvec::Vec > WM
std::vector< fmatvec::Mat > fF
 cartesian force and moment direction matrix for nonsmooth right hand side
std::vector< fmatvec::Mat > fM
std::vector< Frame * > frame
 array in which all frames are listed, connecting bodies via a link
std::vector< Contour * > contour
 array in which all contours are listed, connecting bodies via link
- 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

Detailed Description

general link to one or more objects

Author:
Martin Foerg
Date:
2009-03-26 some comments (Thorsten Schindler)
2009-04-06 ExtraDynamicInterface included (Thorsten Schindler)
2009-07-16 splitted link / object right hand side (Thorsten Schindler)
2009-07-27 implicit integration improvement (Thorsten Schindler)
2009-08-19 fix in dhdu referencing (Thorsten Schindler)

Constructor & Destructor Documentation

MBSim::LinkMechanics::LinkMechanics ( const std::string &  name)

constructor

Parameters:
nameof link machanics

Member Function Documentation

virtual void MBSim::LinkMechanics::connect ( Frame *  frame_)
virtual
Parameters:
frameto add to link frame vector

Reimplemented in MBSim::Gear.

virtual void MBSim::LinkMechanics::connect ( Contour *  contour_)
virtual
Parameters:
contourto add to link contour vector
std::string MBSim::LinkMechanics::getType ( ) const
inlinevirtual
Returns:
std::string representation

Reimplemented from MBSim::Link.

Reimplemented in MBSim::Contact, MBSim::MaxwellContact, MBSim::RelativeRotationalSpringDamper, MBSim::SpringDamper, MBSim::Gearing, and MBSim::Gear.

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

plots time series header

Parameters:
invocingparent class

Reimplemented from MBSim::Link.

Reimplemented in MBSim::Contact, MBSim::MaxwellContact, MBSim::Joint, MBSim::RelativeRotationalSpringDamper, MBSim::SpringDamper, MBSim::Gearing, MBSim::KineticExcitation, and MBSim::Gear.

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

plots time dependent data

Parameters:
simulationtime
simulationtime step size for derivative calculation

Reimplemented from MBSim::Link.

Reimplemented in MBSim::Contact, MBSim::MaxwellContact, MBSim::Joint, MBSim::RelativeRotationalSpringDamper, MBSim::SpringDamper, MBSim::Gearing, MBSim::KineticExcitation, and MBSim::Gear.


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