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 setForceDirection (const fmatvec::Mat3xV &fd)
void setMomentDirection (const fmatvec::Mat3xV &md)
void setForceFunction (fmatvec::Function< fmatvec::VecV(double)> *func)
 Set the force excitation.
void setMomentFunction (fmatvec::Function< fmatvec::VecV(double)> *func)
 see setForce
void setFrameOfReferenceID (int ID)
 The frame of reference ID for the force/moment direction vectors.
void connect (MBSim::Frame *frame1, MBSim::Frame *frame2)
void initializeUsingXML (xercesc::DOMElement *element)
virtual xercesc::DOMElement * writeXMLFile (xercesc::DOMNode *element)
virtual std::string getType () const

Protected Attributes

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

Private Attributes

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::setForceDirection ( const fmatvec::Mat3xV &  fd)
Parameters:
localforce direction represented in first frame
void MBSim::KineticExcitation::setForceFunction ( fmatvec::Function< fmatvec::VecV(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 ID for the force/moment direction vectors.

If ID=0 the first frame, if ID=1 (default) the second frame is used.

void MBSim::KineticExcitation::setMomentDirection ( const fmatvec::Mat3xV &  md)
Parameters:
localmoment direction represented in first frame

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