MBSim

Project Page
Public Member Functions | Protected Attributes
MBSim::Gearing Class Reference
Inheritance diagram for MBSim::Gearing:
MBSim::LinkMechanics MBSim::Link MBSim::Element

List of all members.

Public Member Functions

 Gearing (const std::string &name)
void updateh (double, int i=0)
void updateW (double, int i=0)
void updateJacobians (double t, int j=0)
void updateg (double)
void updategd (double)
void updatewb (double t, int i=0)
void updatehRef (const fmatvec::Vec &hParent, int j=0)
 references to complete and link smooth force vector of dynamic system parent
void updateWRef (const fmatvec::Mat &WParent, int j=0)
 references to contact force direction matrix of dynamic system parent
void connect (double r1, Frame *frame1_, double r2, Frame *frame2_)
virtual void updatexd (double t)
virtual void updatedx (double t, double dt)
virtual void calcxSize ()
bool isActive () const
bool gActiveChanged ()
std::string getType () const
void init (InitStage stage)
 plots time series header
bool isSetValued () const
 asks the link if it contains force laws that contribute to the lagrange multiplier and is therefore set valued
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
void setForceFunction (Function< double(double, double)> *func_)
void setReverse (bool reverse_)
void plot (double t, double dt=1)
 plots time dependent data

Protected Attributes

Function< double(double, double)> * func
double r0
double r1
bool reverse
Frame Z0
Frame Z1
Frame * P0
Frame * P1
fmatvec::Vec3 WrP0Z
fmatvec::Vec3 WrP1Z
fmatvec::Vec3 Wt

Member Function Documentation

virtual void MBSim::Gearing::calcgdSize ( int  j) [virtual]

calculates size of gap velocities

Parameters:
flagto decide which contacts are included in the calculation

see SingleContact for the implementation and DynamicSystem for explanation

Reimplemented from MBSim::Link.

bool MBSim::Gearing::gActiveChanged ( ) [inline, virtual]
Returns:
has the relative distance vector changed?

Implements MBSim::Link.

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

Reimplemented from MBSim::LinkMechanics.

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

plots time series header

Parameters:
invocingparent class

Reimplemented from MBSim::LinkMechanics.

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

Implements MBSim::Link.

bool MBSim::Gearing::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.

void MBSim::Gearing::plot ( double  t,
double  dt = 1 
) [virtual]

plots time dependent data

Parameters:
simulationtime
simulationtime step size for derivative calculation

Reimplemented from MBSim::LinkMechanics.


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