MBSim

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

List of all members.

Public Member Functions

 GeneralizedSpringDamper (const std::string &name="")
void updateh (double, int i=0)
void updateg (double)
void updategd (double)
bool isActive () const
bool gActiveChanged ()
virtual bool isSingleValued () const
 asks the link if it contains single valued force laws that contribute to the right-hand side vector h
std::string getType () const
void init (InitStage stage)
 plots time series header
void setGeneralizedForceFunction (fmatvec::Function< double(double, double)> *func_)
 Set the function for the generalized force.
void setRigidBodyFirstSide (RigidBody *body_)
void setRigidBodySecondSide (RigidBody *body_)
void plot (double t, double dt=1)
 plots time dependent data
void initializeUsingXML (xercesc::DOMElement *element)
void updatehRef (const fmatvec::Vec &hParent, int j=0)
 references to complete and link smooth force vector of dynamic system parent

Protected Attributes

fmatvec::Function< double(double,
double)> * 
func
std::vector< RigidBody * > body

Private Attributes

std::string saved_body1
std::string saved_body2

Member Function Documentation

Returns:
has the relative distance vector changed?

Implements MBSim::Link.

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

Reimplemented from MBSim::LinkMechanics.

plots time series header

Parameters:
invocingparent class

Reimplemented from MBSim::LinkMechanics.

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

Implements MBSim::Link.

virtual bool MBSim::GeneralizedSpringDamper::isSingleValued ( ) const [inline, 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.

void MBSim::GeneralizedSpringDamper::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::GeneralizedSpringDamper::setGeneralizedForceFunction ( fmatvec::Function< double(double, double)> *  func_) [inline]

Set the function for the generalized force.


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