MBSim

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

kinetic excitations given by time dependent functions More...

#include <kinetic_excitation.h>

Inheritance diagram for MBSim::KineticExcitation:
MBSim::LinkMechanics MBSim::Link MBSim::Element

List of all members.

Public Member Functions

 KineticExcitation (const std::string &name)
 constructor
virtual ~KineticExcitation ()
 destructor
virtual void updateh (double t, int i=0)
virtual void updateg (double)
virtual void updategd (double)
virtual void init (InitStage stage)
 plots time series header
void calclaSize (int j)
 calculates size of contact force parameters
bool isActive () const
bool gActiveChanged ()
virtual void plot (double t, double dt=1)
 plots time dependent data
void setForce (fmatvec::Mat dir, Function1< fmatvec::Vec, double > *func)
 Set the force excitation.
void setMoment (fmatvec::Mat dir, Function1< fmatvec::Vec, double > *func)
 see setForce
void setFrameOfReference (Frame *ref_)
 The frame of reference for the force/moment direction vectors.
void initializeUsingXML (TiXmlElement *element)
- 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)
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

Frame * refFrame
 frame of reference the force is defined in
fmatvec::Mat forceDir
 directions of force and moment in frame of reference
fmatvec::Mat momentDir
Function1< fmatvec::Vec, double > * F
 portions of the force / moment in the specific directions
Function1< fmatvec::Vec, double > * M
- 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

Private Attributes

std::string saved_frameOfReference
std::string saved_ref

Detailed Description

kinetic excitations given by time dependent functions

Author:
Markus Friedrich
Date:
2009-08-11 some comments (Thorsten Schindler)

Constructor & Destructor Documentation

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

constructor

Parameters:
nameof link machanics

Member Function Documentation

bool MBSim::KineticExcitation::gActiveChanged ( )
inlinevirtual
Returns:
has the relative distance vector changed?

Implements MBSim::Link.

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

plots time series header

Parameters:
invocingparent class

Reimplemented from MBSim::LinkMechanics.

bool MBSim::KineticExcitation::isActive ( ) const
inlinevirtual
Returns:
are link equations active?

Implements MBSim::Link.

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

plots time dependent data

Parameters:
simulationtime
simulationtime step size for derivative calculation

Reimplemented from MBSim::LinkMechanics.

void MBSim::KineticExcitation::setForce ( fmatvec::Mat  dir,
Function1< fmatvec::Vec, double > *  func 
)

Set the force excitation.

forceDir*func(t) is the applied force vector in space. This force vector is given in the frame set by setFrameOfReference.

void MBSim::KineticExcitation::setFrameOfReference ( Frame *  ref_)
inline

The frame of reference for the force/moment direction vectors.

If not given, the frame the excitation is connected to is used.


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