MBSim |
Project Page |
basic class for contour definition for rigid (which do not know about their shape) and flexible (they know how they look like) bodies More...
#include <contour.h>
Public Member Functions | |
| Contour (const std::string &name) | |
| constructor | |
| virtual | ~Contour () |
| destructor | |
| virtual std::string | getType () const |
| virtual void | plot (double t, double dt=1) |
| plots time dependent data | |
| virtual void | updateKinematicsForFrame (ContourPointData &cp, FrameFeature ff)=0 |
| cartesian kinematic for contour (normal, tangent, binormal) is set by implementation class | |
| virtual void | updateJacobiansForFrame (ContourPointData &cp, int j=0)=0 |
| JACOBIAN for contour (normal, tangent, binormal) is set by implementation class. | |
| virtual fmatvec::Vec3 | computeNormal (ContourPointData &cp) |
| virtual fmatvec::Vec3 | computePosition (ContourPointData &cp) |
| virtual fmatvec::Vec3 | computeVelocity (ContourPointData &cp) |
| virtual fmatvec::Vec3 | computeAngularVelocity (ContourPointData &cp) |
| virtual double | computeCurvature (ContourPointData &cp) |
| virtual fmatvec::Vec2 | computeLagrangeParameter (const fmatvec::Vec3 &WrPoint) |
| projects the point on the contour to compute the Lagrange parameter | |
| virtual void | setReferencePosition (const fmatvec::Vec3 &WrOP) |
| virtual void | setReferenceOrientation (const fmatvec::SqrMat3 &AWC) |
| virtual void | setReferenceVelocity (const fmatvec::Vec3 &WvP) |
| virtual void | setReferenceAngularVelocity (const fmatvec::Vec3 &WomegaC) |
| virtual void | setReferenceJacobianOfTranslation (const fmatvec::Mat3xV &WJP, int j=0) |
| virtual void | setReferenceGyroscopicAccelerationOfTranslation (const fmatvec::Vec3 &WjP, int j=0) |
| virtual void | setReferenceJacobianOfRotation (const fmatvec::Mat3xV &WJR, int j=0) |
| virtual void | setReferenceGyroscopicAccelerationOfRotation (const fmatvec::Vec3 &WjR, int j=0) |
| virtual void | setReferenceAcceleration (const fmatvec::Vec3 &WaP) |
| virtual void | setReferenceAngularAcceleration (const fmatvec::Vec3 &WpsiC) |
| virtual void | init (InitStage stage) |
| TODO. | |
| virtual ContactKinematics * | findContactPairingWith (std::string type0, std::string type1)=0 |
| find contact kinematics | |
| Frame * | getFrame () |
| Frame * | getFrameOfReference () |
| const fmatvec::Vec3 & | getReferencePosition () const |
| const fmatvec::SqrMat3 & | getReferenceOrientation () const |
| const fmatvec::Vec3 & | getReferenceVelocity () const |
| const fmatvec::Vec3 & | getReferenceAngularVelocity () const |
| const fmatvec::Mat3xV & | getReferenceJacobianOfTranslation (int j=0) const |
| const fmatvec::Mat3xV & | getReferenceJacobianOfRotation (int j=0) const |
| fmatvec::Mat3xV & | getReferenceJacobianOfTranslation (int j=0) |
| fmatvec::Mat3xV & | getReferenceJacobianOfRotation (int j=0) |
| const fmatvec::Vec3 & | getReferenceGyroscopicAccelerationOfTranslation () const |
| const fmatvec::Vec3 & | getReferenceGyroscopicAccelerationOfRotation () const |
| fmatvec::Vec3 & | getReferenceGyroscopicAccelerationOfTranslation () |
| fmatvec::Vec3 & | getReferenceGyroscopicAccelerationOfRotation () |
| int | gethSize (int i=0) const |
| int | gethInd (int i=0) const |
| void | sethSize (int size, int i=0) |
| void | sethInd (int ind, int i=0) |
| virtual Element * | getByPathSearch (std::string path) |
| a general element search by path | |
| void | setFrameOfReference (Frame *frame) |
| void | setFrameOfReference (const std::string &frame) |
| virtual void | updateStateDependentVariables (double t) |
| virtual void | updateJacobians (double t, int j=0) |
| virtual void | updateStateDerivativeDependentVariables (const fmatvec::Vec &ud, double t) |
| virtual void | initializeUsingXML (MBXMLUtils::TiXmlElement *element) |
| virtual MBXMLUtils::TiXmlElement * | writeXMLFile (MBXMLUtils::TiXmlNode *element) |
Protected Attributes | |
| int | hSize [2] |
| object the contour belongs to | |
| int | hInd [2] |
| Frame * | R |
| coordinate system of contour | |
| std::string | saved_frameOfReference |
basic class for contour definition for rigid (which do not know about their shape) and flexible (they know how they look like) bodies
kinematics is stored in coordinate system class and is individually evaluated in specific contact kinematics
| MBSim::Contour::Contour | ( | const std::string & | name | ) |
constructor
| name | of contour |
| virtual fmatvec::Vec3 MBSim::Contour::computeAngularVelocity | ( | ContourPointData & | cp | ) | [inline, virtual] |
| contour | position |
| virtual double MBSim::Contour::computeCurvature | ( | ContourPointData & | cp | ) | [inline, virtual] |
| contour | position |
Reimplemented in MBSim::Circle, MBSim::Contour1s, MBSim::Contour1sAnalytical, MBSim::ContourContinuum< AT >, MBSim::ContourContinuum< double >, MBSim::ContourContinuum< fmatvec::Vec >, MBSim::LineSegment, and MBSim::Line.
| virtual fmatvec::Vec2 MBSim::Contour::computeLagrangeParameter | ( | const fmatvec::Vec3 & | WrPoint | ) | [inline, virtual] |
projects the point on the contour to compute the Lagrange parameter
| WrPoint | point in world coordinates |
Reimplemented in MBSim::Circle, MBSim::PolynomialFrustum, MBSim::Plane, MBSim::Frustum, and MBSim::Point.
| virtual fmatvec::Vec3 MBSim::Contour::computeNormal | ( | ContourPointData & | cp | ) | [inline, virtual] |
| contour | position |
| virtual fmatvec::Vec3 MBSim::Contour::computePosition | ( | ContourPointData & | cp | ) | [inline, virtual] |
| contour | position |
| virtual fmatvec::Vec3 MBSim::Contour::computeVelocity | ( | ContourPointData & | cp | ) | [inline, virtual] |
| contour | position |
| virtual ContactKinematics* MBSim::Contour::findContactPairingWith | ( | std::string | type0, |
| std::string | type1 | ||
| ) | [pure virtual] |
find contact kinematics
Implemented in MBSim::RigidContour, and MBSim::Contour1sAnalytical.
| virtual std::string MBSim::Contour::getType | ( | ) | const [inline, virtual] |
Reimplemented from MBSim::Element.
Reimplemented in MBSim::RigidContour, MBSim::Circle, MBSim::PolynomialFrustum, MBSim::Contour1sAnalytical, MBSim::PlaneWithFrustum, MBSim::CircleHollow, MBSim::CircleSolid, MBSim::Sphere, MBSim::Plane, MBSim::ContourContinuum< AT >, MBSim::LineSegment, MBSim::Rectangle, MBSim::ContourContinuum< double >, MBSim::ContourContinuum< fmatvec::Vec >, MBSim::Line, MBSim::CompoundContour, MBSim::Contour1s, MBSim::Frustum, MBSim::Frustum2D, MBSim::Edge, MBSim::Point, MBSim::Cuboid, and MBSim::Room.
| virtual void MBSim::Contour::plot | ( | double | t, |
| double | dt = 1 |
||
| ) | [virtual] |
plots time dependent data
| simulation | time |
| simulation | time step size for derivative calculation |
Reimplemented from MBSim::Element.
Reimplemented in MBSim::RigidContour, MBSim::Contour1sAnalytical, MBSim::Cuboid, and MBSim::CompoundContour.
| virtual void MBSim::Contour::setReferenceAcceleration | ( | const fmatvec::Vec3 & | WaP | ) | [inline, virtual] |
| acceleration | of contour in inertial frame |
| virtual void MBSim::Contour::setReferenceAngularAcceleration | ( | const fmatvec::Vec3 & | WpsiC | ) | [inline, virtual] |
| angular | acceleration of contour in inertial frame |
| virtual void MBSim::Contour::setReferenceAngularVelocity | ( | const fmatvec::Vec3 & | WomegaC | ) | [inline, virtual] |
| angular | velocity of contour in inertial frame |
| virtual void MBSim::Contour::setReferenceGyroscopicAccelerationOfRotation | ( | const fmatvec::Vec3 & | WjR, |
| int | j = 0 |
||
| ) | [inline, virtual] |
| gyroscopic | acceleration of rotation of contour in inertial frame |
| virtual void MBSim::Contour::setReferenceGyroscopicAccelerationOfTranslation | ( | const fmatvec::Vec3 & | WjP, |
| int | j = 0 |
||
| ) | [inline, virtual] |
| gyroscopic | acceleration of translation of contour in inertial frame |
| virtual void MBSim::Contour::setReferenceJacobianOfRotation | ( | const fmatvec::Mat3xV & | WJR, |
| int | j = 0 |
||
| ) | [inline, virtual] |
| JACOBIAN | of rotation of contour in inertial frame |
| virtual void MBSim::Contour::setReferenceJacobianOfTranslation | ( | const fmatvec::Mat3xV & | WJP, |
| int | j = 0 |
||
| ) | [inline, virtual] |
| JACOBIAN | of translation of contour in inertial frame |
| virtual void MBSim::Contour::setReferenceOrientation | ( | const fmatvec::SqrMat3 & | AWC | ) | [inline, virtual] |
| orientation | of contour to inertial frame |
| virtual void MBSim::Contour::setReferencePosition | ( | const fmatvec::Vec3 & | WrOP | ) | [inline, virtual] |
| position | of contour in inertial frame |
| virtual void MBSim::Contour::setReferenceVelocity | ( | const fmatvec::Vec3 & | WvP | ) | [inline, virtual] |
| velocity | of contour in inertial frame |
| virtual void MBSim::Contour::updateJacobiansForFrame | ( | ContourPointData & | cp, |
| int | j = 0 |
||
| ) | [pure virtual] |
JACOBIAN for contour (normal, tangent, binormal) is set by implementation class.
| contour | parameter |
| selection | of specific calculations for frames |
Implemented in MBSim::RigidContour, and MBSim::Contour1sAnalytical.
| virtual void MBSim::Contour::updateKinematicsForFrame | ( | ContourPointData & | cp, |
| FrameFeature | ff | ||
| ) | [pure virtual] |
cartesian kinematic for contour (normal, tangent, binormal) is set by implementation class
| contour | parameter |
| selection | of specific calculations for frames |
Implemented in MBSim::RigidContour, MBSim::CompoundContour, and MBSim::Contour1sAnalytical.
int MBSim::Contour::hSize[2] [protected] |
object the contour belongs to
size and index of right hand side for frame JACOBIAN settings
1.8.0