Simbody
|
A force which resists changes in the distance between two points, acting along the line between those points. More...
#include <Force.h>
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) |
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.
SimTK::Force::TwoPointLinearDamper::TwoPointLinearDamper | ( | GeneralForceSubsystem & | forces, |
const MobilizedBody & | body1, | ||
const Vec3 & | station1, | ||
const MobilizedBody & | body2, | ||
const Vec3 & | station2, | ||
Real | damping | ||
) |
Create a TwoPointLinearDamper.
forces | the subsystem to which this force should be added |
body1 | the first body to which the force should be applied |
station1 | the location on the first body at which the force should be applied |
body2 | the second body to which the force should be applied |
station2 | the location on the second body at which the force should be applied |
damping | the damping constant |
SimTK::Force::TwoPointLinearDamper::SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS | ( | TwoPointLinearDamper | , |
TwoPointLinearDamperImpl | , | ||
Force | |||
) |