Simbody
Public Member Functions

SimTK::Force::MobilityConstantForce Class Reference

A constant (scalar) "force" f applied to a mobility. More...

#include <Force.h>

Inheritance diagram for SimTK::Force::MobilityConstantForce:

List of all members.

Public Member Functions

 MobilityConstantForce (GeneralForceSubsystem &forces, const MobilizedBody &body, int coordinate, Real force)
 Create a MobilityConstantForce.
 SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS (MobilityConstantForce, MobilityConstantForceImpl, Force)

Detailed Description

A constant (scalar) "force" f applied to a mobility.

The mobility here selects a generalized speed (u), not a generalized coordinate (q), and the meaning depends on the definition of the generalized speed. If that speed is a translation then this is a force; if a rotation then this is a torque. This force does not contribute to the potential energy, so adding it to a system will cause energy not to be conserved.


Constructor & Destructor Documentation

SimTK::Force::MobilityConstantForce::MobilityConstantForce ( GeneralForceSubsystem forces,
const MobilizedBody body,
int  coordinate,
Real  force 
)

Create a MobilityConstantForce.

Parameters:
forcesthe subsystem to which this force should be added
bodythe body to which the force should be applied
coordinatethe index of the coordinate in the body's u vector to which the force should be applied
forcethe force to apply

Member Function Documentation

SimTK::Force::MobilityConstantForce::SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS ( MobilityConstantForce  ,
MobilityConstantForceImpl  ,
Force   
)

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