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 isSingleValued () const
 asks the link if it contains single valued force laws that contribute to the right-hand side vector h
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 connect (MBSim::Frame *frame1, MBSim::Frame *frame2)
void initializeUsingXML (MBXMLUtils::TiXmlElement *element)
virtual MBXMLUtils::TiXmlElement * writeXMLFile (MBXMLUtils::TiXmlNode *element)
virtual std::string getType () const

Protected Attributes

Frame * refFrame
 frame of reference the force is defined in
fmatvec::Mat3xV forceDir
 directions of force and moment in frame of reference
fmatvec::Mat3xV momentDir
Function1< fmatvec::Vec, double > * F
 portions of the force / moment in the specific directions
Function1< fmatvec::Vec, double > * M
Frame C
 own frame located in second partner with same orientation as first partner

Private Attributes

std::string saved_frameOfReference
std::string saved_ref
std::string saved_ref1
std::string saved_ref2

Detailed Description

kinetic excitations given by time dependent functions

Author:
Markus Friedrich
Date:
2009-08-11 some comments (Thorsten Schindler)
2013-01-09 second frame for action-reaction law (Martin Förg)

Constructor & Destructor Documentation

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

constructor

Parameters:
nameof link machanics

Member Function Documentation

void MBSim::KineticExcitation::connect ( MBSim::Frame *  frame1,
MBSim::Frame *  frame2 
)
Parameters:
firstframe to connect
secondframe to connect
bool MBSim::KineticExcitation::gActiveChanged ( ) [inline, virtual]
Returns:
has the relative distance vector changed?

Implements MBSim::Link.

virtual std::string MBSim::KineticExcitation::getType ( ) const [inline, virtual]
Returns:
std::string representation

Reimplemented from MBSim::LinkMechanics.

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

plots time series header

Parameters:
invocingparent class

Reimplemented from MBSim::LinkMechanics.

bool MBSim::KineticExcitation::isActive ( ) const [inline, virtual]
Returns:
are link equations active?

Implements MBSim::Link.

bool MBSim::KineticExcitation::isSingleValued ( ) const [inline, virtual]

asks the link if it contains single valued force laws that contribute to the right-hand side vector h

Returns:
single valued force laws used within link?

Reimplemented from 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.

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: