MBSim |
Project Page |
kinetic excitations given by time dependent functions More...
#include <kinetic_excitation.h>
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 |
kinetic excitations given by time dependent functions
| MBSim::KineticExcitation::KineticExcitation | ( | const std::string & | name = "" | ) |
constructor
| name | of link machanics |
| void MBSim::KineticExcitation::connect | ( | MBSim::Frame * | frame1, |
| MBSim::Frame * | frame2 | ||
| ) |
| first | frame to connect |
| second | frame to connect |
| bool MBSim::KineticExcitation::gActiveChanged | ( | ) | [inline, virtual] |
Implements MBSim::Link.
| virtual std::string MBSim::KineticExcitation::getType | ( | ) | const [inline, virtual] |
Reimplemented from MBSim::LinkMechanics.
| virtual void MBSim::KineticExcitation::init | ( | InitStage | stage | ) | [virtual] |
| bool MBSim::KineticExcitation::isActive | ( | ) | const [inline, virtual] |
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
Reimplemented from MBSim::Link.
| virtual void MBSim::KineticExcitation::plot | ( | double | t, |
| double | dt = 1 |
||
| ) | [virtual] |
plots time dependent data
| simulation | time |
| simulation | time 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.
1.8.0