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
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::Mat &fd)
void setMomentDirection (const fmatvec::Mat &md)
virtual void initializeUsingXML (TiXmlElement *element)
- Public Member Functions inherited from MBSim::Element
 Element (const std::string &name)
 constructor
virtual ~Element ()
 destructor
virtual void initDataInterfaceBase (DynamicSystemSolver *parentds)
 TODO.
virtual void setDynamicSystemSolver (DynamicSystemSolver *sys)
virtual void plotAtSpecialEvent (double t, double dt=1)
 plots time dependent data at special events
const std::string & getName () const
const std::string getShortName () const
void setName (const std::string &str)
DynamicSystemSolver * getDynamicSystemSolver ()
virtual void createPlotGroup ()
 creates the plotGroup for H5-output
H5::Group * getPlotGroup ()
virtual void setPlotFeature (PlotFeature pf, PlotFeatureStatus value)
 Set a plot feature.
void setPlotFeatureForChildren (PlotFeature pf, PlotFeatureStatus value)
 Set a plot feature for the children of this object.
void setPlotFeatureRecursive (PlotFeature pf, PlotFeatureStatus value)
 Set a plot feature for this object and the children of this object.
PlotFeatureStatus getPlotFeature (PlotFeature pf)
PlotFeatureStatus getPlotFeatureForChildren (PlotFeature pf)
template<class T >
T * getByPath (std::string path)
 a general element access
virtual Element * getParent ()
virtual const Element * getParent () const
virtual void setParent (Element *parent_)
std::string getPath (char pathDelim='.')

Protected Attributes

fmatvec::Index IT
 indices of forces and torques
fmatvec::Index IR
fmatvec::Mat forceDir
 local force and moment direction
fmatvec::Mat momentDir
fmatvec::Mat Wf
 global force and moment direction
fmatvec::Mat Wm
fmatvec::Mat JT
 translational JACOBIAN (not empty for e.g.
fmatvec::Vec WrP0P1
 difference vector of position, velocity and angular velocity
fmatvec::Vec WvP0P1
fmatvec::Vec 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
- Protected Attributes inherited from MBSim::Element
Element * parent
std::string name
 name of element
DynamicSystemSolver * ds
 dynamic system
H5::VectorSerie< double > * plotVectorSerie
 time series
std::vector< double > plotVector
 one entry of time series
std::vector< std::string > plotColumns
 columns of time series
H5::Group * plotGroup
 associated plot group

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 ( )
inlinevirtual
Returns:
has the relative distance vector changed?

Implements MBSim::Link.

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

plots time series header

Parameters:
invocingparent class

Reimplemented from MBSim::LinkMechanics.

virtual bool MBSim::Joint::isActive ( ) const
inlinevirtual
Returns:
are link equations active?

Implements MBSim::Link.

virtual bool MBSim::Joint::isSetValued ( ) const
virtual
Returns:
set valued force laws used?

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

Member Data Documentation

fmatvec::Mat MBSim::Joint::JT
protected

translational JACOBIAN (not empty for e.g.

prismatic joints)


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