Go to the documentation of this file. 1 #ifndef SimTK_SIMBODY_FORCE_MOBILITY_CONSTANT_FORCE_H_
2 #define SimTK_SIMBODY_FORCE_MOBILITY_CONSTANT_FORCE_H_
125 MobilityConstantForceImpl,
Force);
131 #endif // SimTK_SIMBODY_FORCE_MOBILITY_CONSTANT_FORCE_H_
This object is intended to contain all state information for a SimTK::System, except topological info...
Definition: State.h:280
#define SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS(DERIVED, DERIVED_IMPL, PARENT)
Definition: PrivateImplementation.h:343
MobilityConstantForce(GeneralForceSubsystem &forces, const MobilizedBody &mobod, Real defaultForce)
Alternate constructor signature for when the mobilizer has only a single generalized speed,...
Definition: Force_MobilityConstantForce.h:61
A constant generalized force f (a scalar) applied to a mobility.
Definition: Force_MobilityConstantForce.h:45
void setForce(State &state, Real force) const
Change the value of the generalized force that is stored in the given state; this may differ from the...
This is a System that represents the dynamics of a particle moving along a smooth surface.
Definition: Assembler.h:37
MobilityConstantForce(GeneralForceSubsystem &forces, const MobilizedBody &mobod, MobilizerUIndex whichU, Real defaultForce)
Add a MobilityConstantForce element to the indicated Subsystem.
This is the base class from which all Force element handle classes derive.
Definition: Force.h:50
This is a concrete subsystem which can apply arbitrary forces to a MultibodySystem.
Definition: GeneralForceSubsystem.h:47
MobilityConstantForce & setDefaultForce(Real defaultForce)
Provide a new value for the default generalied force to be applied by this force element.
A MobilizedBody is Simbody's fundamental body-and-joint object used to parameterize a system's motion...
Definition: MobilizedBody.h:169
#define SimTK_SIMBODY_EXPORT
Definition: Simbody/include/simbody/internal/common.h:68
SimTK_Real Real
This is the default compiled-in floating point type for SimTK, either float or double.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:606
MobilityConstantForce(GeneralForceSubsystem &forces, const MobilizedBody &mobod, int whichU, Real defaultForce)
Deprecated: Alternate signature for backwards compatibility – for safety you should prefer using the ...
Definition: Force_MobilityConstantForce.h:113
Real getDefaultForce() const
Return the default value for the generalized force.
Real getForce(const State &state) const
Return the value for the generalized force that is stored in the given state.
MobilityConstantForce()
Default constructor creates an empty handle.
Definition: Force_MobilityConstantForce.h:70