Go to the documentation of this file. 1 #ifndef SimTK_SIMBODY_FORCE_MOBILITY_LINEAR_SPRING_H_
2 #define SimTK_SIMBODY_FORCE_MOBILITY_LINEAR_SPRING_H_
69 Real defaultStiffness,
129 Real stiffness)
const;
170 Real defaultStiffness,
174 defaultStiffness, defaultQZero);
180 MobilityLinearSpringImpl,
Force);
186 #endif // SimTK_SIMBODY_FORCE_MOBILITY_LINEAR_SPRING_H_
This object is intended to contain all state information for a SimTK::System, except topological info...
Definition: State.h:280
const MobilityLinearSpring & setQZero(State &state, Real qZero) const
Change the value of the spring zero length in the given state; this may differ from the default value...
MobilityLinearSpring(GeneralForceSubsystem &forces, const MobilizedBody &mobod, MobilizerQIndex whichQ, Real defaultStiffness, Real defaultQZero)
Create a MobilityLinearSpring force element on a particular generalized coordinate.
MobilityLinearSpring(GeneralForceSubsystem &forces, const MobilizedBody &mobod, int whichQ, Real defaultStiffness, Real defaultQZero)
Deprecated: Alternate signature for backwards compatibility – for safety you should prefer using the ...
Definition: Force_MobilityLinearSpring.h:167
#define SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS(DERIVED, DERIVED_IMPL, PARENT)
Definition: PrivateImplementation.h:343
This is a System that represents the dynamics of a particle moving along a smooth surface.
Definition: Assembler.h:37
const MobilityLinearSpring & setStiffness(State &state, Real stiffness) const
Change the value of the spring stiffness in the given state; this may differ from the default value s...
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
A linear spring that acts along or around a mobility coordinate to apply a generalized force there.
Definition: Force_MobilityLinearSpring.h:49
MobilityLinearSpring()
Default constructor creates an empty handle that can be assigned to refer to any MobilityLinearSpring...
Definition: Force_MobilityLinearSpring.h:74
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
MobilityLinearSpring & setDefaultStiffness(Real defaultStiffness)
Provide a new value for the default stiffness k of this spring.
Real getStiffness(const State &state) const
Return the value for the spring's stiffness k that is stored in the given state.
MobilityLinearSpring & setDefaultQZero(Real defaultQZero)
Provide a new value for the zero position q0 of this spring, at which position the spring force will ...
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
Real getDefaultStiffness() const
Return the default value for the spring's stiffness k.
Real getDefaultQZero() const
Return the default value for the spring's zero position q0.
Real getQZero(const State &state) const
Return the value for the spring zero position q0 that is stored in the given state.