MBSim

Project Page
Public Member Functions | Protected Attributes
MBSim::ContourPairing Class Reference
Inheritance diagram for MBSim::ContourPairing:
MBSim::Object MBSim::Element

List of all members.

Public Member Functions

 ContourPairing (const std::string &name_, Contour *contour1, Contour *contour2, bool plotContact=true, ContactKinematics *contactKinematics_=0)
void updateStateDependentVariables (double t)
void updateJacobians (double t, int j=0)
void updateInverseKineticsJacobians (double t)
void closePlot ()
 closes plot file
void setContactKinematics (ContactKinematics *ck)
ContactKinematics * getContactKinematics () const
ContourPointData * getContourPointData ()
Contour * getContour (const int &index)
bool isActive ()
bool wasActive ()
fmatvec::Vec & getRelativeDistance ()
fmatvec::Vec & getRelativeVelocity ()
fmatvec::Vec & getContactForce ()
fmatvec::Vec & getForce (int index)
void setFrictionForceLaw (FrictionForceLaw *frictionForceLaw_)
void init (InitStage stage)
 initialize object at start of simulation with respect to contours and frames
void plot (double t, double dt)
 plots time dependent data
void updateg (double t)
void updategd (double t)
void checkActiveg ()
int getFrictionDirections ()
FrictionForceLaw * getFrictionForceLaw ()

Protected Attributes

Contour * contour1
 first of the two contours, that build the contour pairing together
Contour * contour2
 second of the two contours, that build the contour pairing together
ContactKinematics * contactKinematics
 saves contact kinematics for each contour-pairing
FrictionForceLaw * fdf
 friction force law between contours
std::vector< ContourPointData * > cpData
 an array of contourPointData (length of 2) for definition of relative contact situation
double gTol
 tolerance value for active contact or not
bool gActive
 is contour pairing active in current time step
bool gActive0
 was contour pairing active in last time step
fmatvec::Vec gk
 relative distance of the contours
fmatvec::Vec gdk
 relative velocities of the contours
fmatvec::Vec lak
 vector of the contact force
std::vector< fmatvec::Vec * > WF
 force vectors for both contours, that are transformed into the DOF space with the Jacobian matrix (updateh())

Member Function Documentation

void MBSim::ContourPairing::plot ( double  t,
double  dt 
) [virtual]

plots time dependent data

Parameters:
simulationtime
simulationtime step size for derivative calculation

Reimplemented from MBSim::Object.


Member Data Documentation

first of the two contours, that build the contour pairing together

Todo:
: maybe use array or vector of contours --> usable for loops with contours and cpDatas

an array of contourPointData (length of 2) for definition of relative contact situation

Every contour-pairing has its own cpData. For the both contours there is a array of the length of 2 that saves the kinematic data of the both contours. So cpData saves ContourPointData for both contours


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