Skip to main content

Command Reference for Rigid Dynamics Systems 2025 R2

Spring

Last update: 17.07.2025

Corresponding ID table: CS_Actuator

Members

None

Member functions

ToggleCompressionOnly()

Calling this function on a translational spring will make the spring develop elastic forces only if its length is less than the spring free length. The free length has to be defined in the regular spring properties.

ToggleTensionOnly()

Calling this function on a translational spring will make the spring develop elastic forces only if its length is greater than the free length of spring. The free length has to be defined in the regular spring properties.

SetLinearSpringProperties(system, stiffness, freeLength)

Enables you to overwrite the stiffness and free length of a translational spring. This can be useful to parameterize these properties. For example, system is the system object, stiffness and free length are the double precision values of stiffness and free length.

SetNonLinearSpringProperties(table_id)

Enables you to replace the constant stiffness of a spring with a table of ID table_id that gives the force as a function of the elongation of the spring. The table gives the relation between the force and the relative position of the two ends.

GetDamper()

The user interface has stiffness and damping properties of the spring. Internally, the Spring is made of two objects; a spring and a damper. This function enables you to access the internal damper using the Spring object in the GUI.

Derived classes

None

Connect with Ansys