modelSpringDamperSystem

Simple spring/damper/mass system

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example demonstrates:

  • The animation of spring and damper components
  • A body can be freely moving without any connection to a joint. In this case body coordinates are used automatically as states (whenever joints are present, it is first tried to use the generalized coordinates of the joints as states).
  • If a body is freely moving, the initial position and velocity of the body can be defined with the "Initialization" menu as shown with the body "body1" in the left part (click on "Initialization").
model Examples.Elementary.SpringDamperSystem

Parameters

TypeNameDefaultDescription
Booleananimationtrue= true, if animation shall be enabled

Components

TypeNameDefaultDescription
Modelica.Mechanics.MultiBody.Worldworld
Modelica.Mechanics.MultiBody.Parts.Bodybody1
Modelica.Mechanics.MultiBody.Parts.FixedTranslationbar1
Modelica.Mechanics.MultiBody.Parts.FixedTranslationbar2
Modelica.Mechanics.MultiBody.Parts.Bodybody2
Modelica.Mechanics.MultiBody.Joints.Prismaticp2
Modelica.Mechanics.MultiBody.Forces.Springspring2
Modelica.Mechanics.MultiBody.Forces.Springspring1
Modelica.Mechanics.MultiBody.Forces.Damperdamper1