Skip to main content
This example shows how the behavior of a spring can be altered to introduce a non-linear force-displacement relationship. The complete list of commands is shown below. A description of these commands follows. Mechanical UI
  1. Retrieve the spring object using its ID:
  2. Create an array of real values and fill it with the pairs of values (elongation, force):
    In this command, 7 represents the number of rows and 2 the number of columns. The first column gives elongation and the second the corresponding force value. This command generates a PointsTable assigned to the spring, as shown below. points table plot Each spring object in the Mechanical GUI is actually a combination of a spring and a damper. The GetDamper method enables you to retrieve the damper object on a given spring, as shown below. spring and damper combination
  3. Introduce a table to define a non-linear force velocity relation: