Simbody
Public Member Functions

SimTK::Force::TwoPointLinearDamper Class Reference

A force which resists changes in the distance between two points, acting along the line between those points. More...

#include <Force.h>

Inheritance diagram for SimTK::Force::TwoPointLinearDamper:

List of all members.

Public Member Functions

 TwoPointLinearDamper (GeneralForceSubsystem &forces, const MobilizedBody &body1, const Vec3 &station1, const MobilizedBody &body2, const Vec3 &station2, Real damping)
 Create a TwoPointLinearDamper.
 SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS (TwoPointLinearDamper, TwoPointLinearDamperImpl, Force)

Detailed Description

A force which resists changes in the distance between two points, acting along the line between those points.

The points are specified as a station on each of two bodies. A damping constant c >= 0 is given. If the relative (scalar) velocity between the points is v, then we apply a force of magnitude f=c*|v| to each point in a direction which opposes their separation. This is not a potential force and thus does not contribute to the potential energy calculation. It is an error if the two points become coincident, since we are unable to determine a direction for the force in that case.


Constructor & Destructor Documentation

SimTK::Force::TwoPointLinearDamper::TwoPointLinearDamper ( GeneralForceSubsystem forces,
const MobilizedBody body1,
const Vec3 station1,
const MobilizedBody body2,
const Vec3 station2,
Real  damping 
)

Create a TwoPointLinearDamper.

Parameters:
forcesthe subsystem to which this force should be added
body1the first body to which the force should be applied
station1the location on the first body at which the force should be applied
body2the second body to which the force should be applied
station2the location on the second body at which the force should be applied
dampingthe damping constant

Member Function Documentation

SimTK::Force::TwoPointLinearDamper::SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS ( TwoPointLinearDamper  ,
TwoPointLinearDamperImpl  ,
Force   
)

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines