MBSim |
Project Page |
base class for all mechanical bodies with mass and generalised coordinates More...
#include <body.h>
Public Member Functions | |
| Body (const std::string &name) | |
| constructor | |
| virtual | ~Body () |
| destructor | |
| void | sethSize (int hSize_, int i=0) |
| void | sethInd (int hInd_, int i=0) |
| virtual void | plot (double t, double dt=1) |
| plots time dependent data | |
| virtual void | closePlot () |
| closes plot file | |
| virtual std::string | getType () const |
| virtual void | setDynamicSystemSolver (DynamicSystemSolver *sys) |
| sets the used dynamics system solver to the element | |
| virtual void | init (InitStage stage) |
| initialize object at start of simulation with respect to contours and frames | |
| virtual Contour * | getContour (const std::string &name, bool check=true) |
| virtual Frame * | getFrame (const std::string &name, bool check=true) |
| virtual Frame * | getFrameOfReference () |
| virtual const Frame * | getFrameOfReference () const |
| virtual void | setFrameOfReference (Frame *frame) |
| const std::vector< Frame * > & | getFrames () const |
| const std::vector< Contour * > & | getContours () const |
| int | frameIndex (const Frame *frame_) const |
| int | contourIndex (const Contour *contour_) const |
| virtual void | initializeUsingXML (MBXMLUtils::TiXmlElement *element) |
| virtual MBXMLUtils::TiXmlElement * | writeXMLFile (MBXMLUtils::TiXmlNode *element) |
| virtual Element * | getByPathSearch (std::string path) |
| a general element search by path | |
Protected Member Functions | |
| virtual void | addFrame (Frame *frame) |
| virtual void | addContour (Contour *contour) |
Protected Attributes | |
| std::vector< Frame * > | frame |
| vector of frames and contours | |
| std::vector< Contour * > | contour |
| Frame * | R |
| frame of reference of the object | |
Private Attributes | |
| std::string | saved_frameOfReference |
base class for all mechanical bodies with mass and generalised coordinates
The following part is only a test for equation and image output for the XML documentation. A not inline equation
And a inline equation
. And a image
| MBSim::Body::Body | ( | const std::string & | name | ) |
constructor
| name | of body |
| virtual void MBSim::Body::addContour | ( | Contour * | contour | ) | [protected, virtual] |
| contour | to add |
| virtual void MBSim::Body::addFrame | ( | Frame * | frame | ) | [protected, virtual] |
| frame | to add |
| int MBSim::Body::contourIndex | ( | const Contour * | contour_ | ) | const |
| contour |
| int MBSim::Body::frameIndex | ( | const Frame * | frame_ | ) | const |
| frame |
| virtual Contour* MBSim::Body::getContour | ( | const std::string & | name, |
| bool | check = true |
||
| ) | [virtual] |
| name | of the contour |
| flag | for checking existence |
| virtual Frame* MBSim::Body::getFrame | ( | const std::string & | name, |
| bool | check = true |
||
| ) | [virtual] |
| name | of the frame |
| flag | for checking existence |
| virtual Frame* MBSim::Body::getFrameOfReference | ( | ) | [inline, virtual] |
| virtual const Frame* MBSim::Body::getFrameOfReference | ( | ) | const [inline, virtual] |
| virtual std::string MBSim::Body::getType | ( | ) | const [inline, virtual] |
Reimplemented from MBSim::Object.
Reimplemented in MBSim::RigidBody.
| virtual void MBSim::Body::plot | ( | double | t, |
| double | dt = 1 |
||
| ) | [virtual] |
plots time dependent data
| simulation | time |
| simulation | time step size for derivative calculation |
Reimplemented from MBSim::Object.
Reimplemented in MBSim::RigidBody.
| virtual void MBSim::Body::setDynamicSystemSolver | ( | DynamicSystemSolver * | sys | ) | [virtual] |
sets the used dynamics system solver to the element
| pointer | to the dynamic system solver of which the element is part of |
Reimplemented from MBSim::Element.
| virtual void MBSim::Body::setFrameOfReference | ( | Frame * | frame | ) | [inline, virtual] |
| frame | of reference |
1.8.0