1 #ifndef SimTK_SIMBODY_CABLE_SPRING_H_
2 #define SimTK_SIMBODY_CABLE_SPRING_H_
117 Real defaultStiffness,
118 Real defaultSlackLength,
119 Real defaultDissipationCoef);
152 CableSpring& setDefaultSlackLength(Real slackLength);
158 CableSpring& setDefaultDissipationCoef(Real dissipation);
162 Real getDefaultStiffness()
const;
165 Real getDefaultSlackLength()
const;
169 Real getDefaultDissipationCoef()
const;
200 Real stiffness)
const;
209 Real slackLength)
const;
218 Real dissipationCoef)
const;
225 Real getStiffness(
const State& state)
const;
231 Real getSlackLength(
const State& state)
const;
239 Real getDissipationCoef(
const State& state)
const;
262 Real getLength(
const State& state)
const;
286 Real getLengthDot(
const State& state)
const;
311 Real getTension(
const State& state)
const;
330 Real getPotentialEnergy(
const State& state)
const;
342 Real getPowerDissipation(
const State& state)
const;
356 Real getDissipatedEnergy(
const State& state)
const;
370 void setDissipatedEnergy(
State& state, Real energy)
const;
391 #endif // SimTK_SIMBODY_CABLE_SPRING_H_
This is the base class from which all Force element handle classes derive.
Definition: Force.h:50
This file declares the CablePath and CableObstacle classes.
Every Simbody header and source file should include this header before any other Simbody header...
This is the handle class for the hidden State implementation.
Definition: State.h:264
Includes internal headers providing declarations for the basic SimTK Core classes, including Simmatrix.
#define SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS(DERIVED, DERIVED_IMPL, PARENT)
Definition: PrivateImplementation.h:343
CableSpring()
Default constructor creates an empty handle.
Definition: CableSpring.h:122
This is a concrete subsystem which can apply arbitrary forces to a MultibodySystem.
Definition: GeneralForceSubsystem.h:47
#define SimTK_SIMBODY_EXPORT
Definition: Simbody/include/simbody/internal/common.h:72
This force element implements a passive elastic element (like a rubber band) that follows a frictionl...
Definition: CableSpring.h:90
This class represents the path of a frictionless cable from an origin point fixed to a body...
Definition: CablePath.h:92