MBSim |
Project Page |
class for connections: constraints on frames More...
#include <joint.h>
Public Member Functions | |
| Joint (const std::string &name="") | |
| constructor | |
| virtual | ~Joint () |
| destructor | |
| virtual void | updatewb (double t, int i=0) |
| virtual void | updateW (double t, int i=0) |
| virtual void | updateh (double t, int i=0) |
| virtual void | updateg (double t) |
| virtual void | updategd (double t) |
| virtual void | updateJacobians (double t, int j=0) |
| virtual void | updatexd (double t) |
| virtual void | updatedx (double t, double dt) |
| virtual void | calcxSize () |
| virtual void | init (InitStage stage) |
| plots time series header | |
| virtual void | calclaSize (int j) |
| calculates size of contact force parameters | |
| virtual void | calcgSize (int j) |
| calculates size of relative distances | |
| virtual void | calcgdSize (int j) |
| calculates size of gap velocities | |
| virtual void | calcrFactorSize (int j) |
| calculates size of rfactors | |
| virtual bool | isSetValued () const |
| asks the link if it contains force laws that contribute to the lagrange multiplier and is therefore set valued | |
| virtual bool | isSingleValued () const |
| asks the link if it contains single valued force laws that contribute to the right-hand side vector h | |
| virtual bool | isActive () const |
| virtual bool | gActiveChanged () |
| virtual void | solveImpactsFixpointSingle (double dt) |
| solve impact equations of motion with single step fixed point scheme on velocity level | |
| virtual void | solveConstraintsFixpointSingle () |
| solve contact equations of motion with single step fixed point scheme | |
| virtual void | solveImpactsGaussSeidel (double dt) |
| solve impact equations of motion with Gauss-Seidel scheme on velocity level | |
| virtual void | solveConstraintsGaussSeidel () |
| solve contact equations of motion with Gauss-Seidel scheme | |
| virtual void | solveImpactsRootFinding (double dt) |
| solve impact equations of motion with Newton scheme on velocity level | |
| virtual void | solveConstraintsRootFinding () |
| solve contact equations of motion with Newton scheme | |
| virtual void | jacobianConstraints () |
| computes JACOBIAN and mass action matrix of nonlinear contact equations | |
| virtual void | jacobianImpacts () |
| computes JACOBIAN and mass action matrix of nonlinear contact equations on velocity level | |
| virtual void | updaterFactors () |
| update relaxation factors for contact equations | |
| virtual void | checkImpactsForTermination (double dt) |
| verify underlying force laws on velocity level concerning given tolerances | |
| virtual void | checkConstraintsForTermination () |
| verify underlying force laws concerning given tolerances | |
| virtual void | plot (double t, double dt=1) |
| plots time dependent data | |
| virtual void | connect (Frame *frame1, Frame *frame2) |
| second frame to connect | |
| void | setForceLaw (GeneralizedForceLaw *rc) |
| void | setMomentLaw (GeneralizedForceLaw *rc) |
| void | setForceDirection (const fmatvec::Mat3xV &fd) |
| void | setMomentDirection (const fmatvec::Mat3xV &md) |
| void | setFrameOfReferenceID (int ID) |
| The frame of reference ID for the force/moment direction vectors. | |
| virtual 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::Index | IT |
| indices of forces and torques | |
| fmatvec::Index | IR |
| fmatvec::Mat3xV | forceDir |
| local force and moment direction | |
| fmatvec::Mat3xV | momentDir |
| fmatvec::Mat3xV | Wf |
| global force and moment direction | |
| fmatvec::Mat3xV | Wm |
| fmatvec::Mat3xV | JT |
| translational JACOBIAN (not empty for e.g. | |
| fmatvec::Vec3 | WrP0P1 |
| difference vector of position, velocity and angular velocity | |
| fmatvec::Vec3 | WvP0P1 |
| fmatvec::Vec3 | WomP0P1 |
| GeneralizedForceLaw * | ffl |
| constitutive law on acceleration level for forces and torques (f?-force-law) | |
| GeneralizedForceLaw * | fml |
| constitutive law on acceleration level for moments/torques (f?-moment-law) | |
| GeneralizedImpactLaw * | fifl |
| constitutive law on velocity level for forces and torques (f?-impact-force-law) | |
| GeneralizedImpactLaw * | fiml |
| constitutive law on velocity level for moments/torques (f?-impact-moment-law) | |
| fmatvec::Vec | gdn |
| relative velocity and acceleration after an impact for event driven scheme summarizing all possible contacts | |
| fmatvec::Vec | gdd |
| Frame | C |
| own frame located in second partner with same orientation as first partner | |
Private Attributes | |
| std::string | saved_ref1 |
| std::string | saved_ref2 |
class for connections: constraints on frames
| MBSim::Joint::Joint | ( | const std::string & | name = "" | ) |
constructor
| name |
| virtual void MBSim::Joint::calcgdSize | ( | int | j | ) | [virtual] |
calculates size of gap velocities
| flag | to decide which contacts are included in the calculation |
see SingleContact for the implementation and DynamicSystem for explanation
Reimplemented from MBSim::Link.
| virtual void MBSim::Joint::connect | ( | Frame * | frame1, |
| Frame * | frame2 | ||
| ) | [virtual] |
second frame to connect
| first | frame to connect |
| virtual bool MBSim::Joint::gActiveChanged | ( | ) | [inline, virtual] |
Implements MBSim::Link.
| virtual std::string MBSim::Joint::getType | ( | ) | const [inline, virtual] |
Reimplemented from MBSim::LinkMechanics.
| virtual void MBSim::Joint::init | ( | InitStage | stage | ) | [virtual] |
plots time series header
| invocing | parent class |
Reimplemented from MBSim::LinkMechanics.
Reimplemented in MBSim::InverseKineticsJoint.
| virtual bool MBSim::Joint::isActive | ( | ) | const [inline, virtual] |
Implements MBSim::Link.
| virtual bool MBSim::Joint::isSetValued | ( | ) | const [virtual] |
asks the link if it contains force laws that contribute to the lagrange multiplier and is therefore set valued
Reimplemented from MBSim::Link.
Reimplemented in MBSim::InverseKineticsJoint.
| virtual bool MBSim::Joint::isSingleValued | ( | ) | const [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::Joint::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::Joint::setForceDirection | ( | const fmatvec::Mat3xV & | fd | ) |
| local | force direction represented in first frame |
| void MBSim::Joint::setFrameOfReferenceID | ( | int | ID | ) | [inline] |
The frame of reference ID for the force/moment direction vectors.
If ID=0 (default) the first frame, if ID=1 the second frame is used.
| void MBSim::Joint::setMomentDirection | ( | const fmatvec::Mat3xV & | md | ) |
| local | moment direction represented in first frame |
| virtual void MBSim::Joint::solveImpactsFixpointSingle | ( | double | dt | ) | [virtual] |
solve impact equations of motion with single step fixed point scheme on velocity level
| time | step-size |
Reimplemented from MBSim::Link.
| virtual void MBSim::Joint::solveImpactsGaussSeidel | ( | double | dt | ) | [virtual] |
solve impact equations of motion with Gauss-Seidel scheme on velocity level
| time | step-size |
Reimplemented from MBSim::Link.
| virtual void MBSim::Joint::solveImpactsRootFinding | ( | double | dt | ) | [virtual] |
solve impact equations of motion with Newton scheme on velocity level
| time | step-size |
Reimplemented from MBSim::Link.
fmatvec::Mat3xV MBSim::Joint::JT [protected] |
translational JACOBIAN (not empty for e.g.
prismatic joints)
1.8.0