MBSim

Project Page
Public Member Functions | Protected Attributes | Private Attributes
MBSim::Joint Class Reference

class for connections: constraints on frames More...

#include <joint.h>

Inheritance diagram for MBSim::Joint:
MBSim::LinkMechanics MBSim::Link MBSim::Element MBSim::InverseKineticsJoint

List of all members.

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 relative 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 contact 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 on acceleration level
virtual void solveImpactsGaussSeidel (double dt)
 solve contact equations of motion with Gauss-Seidel scheme on velocity level
virtual void solveConstraintsGaussSeidel ()
 solve contact equations of motion with Gauss-Seidel scheme on acceleration level
virtual void solveImpactsRootFinding (double dt)
 solve contact equations of motion with Newton scheme on velocity level
virtual void solveConstraintsRootFinding ()
 solve contact equations of motion with Newton scheme on acceleration level
virtual void jacobianConstraints ()
 computes JACOBIAN and mass action matrix of nonlinear contact equations on acceleration level
virtual void jacobianImpacts ()
 computes JACOBIAN and mass action matrix of nonlinear contact equations on velocity level
virtual void updaterFactors ()
 updates rfactor relaxation 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 on acceleration level 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 setImpactForceLaw (GeneralizedImpactLaw *rc)
void setImpactMomentLaw (GeneralizedImpactLaw *rc)
void setForceDirection (const fmatvec::Mat3xV &fd)
void setMomentDirection (const fmatvec::Mat3xV &md)
virtual void initializeUsingXML (MBXMLUtils::TiXmlElement *element)
virtual MBXMLUtils::TiXmlElement * writeXMLFile (MBXMLUtils::TiXmlNode *element)
virtual std::string getType () const

Protected Attributes

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 laws on acceleration and velocity level for forces and torques
GeneralizedForceLaw * fml
GeneralizedImpactLaw * fifl
GeneralizedImpactLaw * fiml
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

Detailed Description

class for connections: constraints on frames

Author:
Martin Foerg
Date:
2009-04-06 LinkMechanics added (Thorsten Schindler)
2009-07-16 splitted link / object right hand side (Thorsten Schindler)
2009-08-21 one force direction (Thorsten Schindler)
Todo:
hSize Frame C

Constructor & Destructor Documentation

MBSim::Joint::Joint ( const std::string &  name = "")

constructor

Parameters:
name

Member Function Documentation

virtual void MBSim::Joint::connect ( Frame *  frame1,
Frame *  frame2 
) [virtual]

second frame to connect

Parameters:
firstframe to connect
virtual bool MBSim::Joint::gActiveChanged ( ) [inline, virtual]
Returns:
has the relative distance vector changed?

Implements MBSim::Link.

virtual std::string MBSim::Joint::getType ( ) const [inline, virtual]
Returns:
std::string representation

Reimplemented from MBSim::LinkMechanics.

virtual void MBSim::Joint::init ( InitStage  stage) [virtual]

plots time series header

Parameters:
invocingparent class

Reimplemented from MBSim::LinkMechanics.

Reimplemented in MBSim::InverseKineticsJoint.

virtual bool MBSim::Joint::isActive ( ) const [inline, virtual]
Returns:
are link equations active?

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

Returns:
set valued force laws used within the link?

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

Returns:
single valued force laws used within link?

Reimplemented from MBSim::Link.

virtual void MBSim::Joint::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::Joint::setForceDirection ( const fmatvec::Mat3xV &  fd)
Parameters:
localforce direction represented in first frame
void MBSim::Joint::setMomentDirection ( const fmatvec::Mat3xV &  md)
Parameters:
localmoment direction represented in first frame

Member Data Documentation

fmatvec::Mat3xV MBSim::Joint::JT [protected]

translational JACOBIAN (not empty for e.g.

prismatic joints)


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