modelPendulumWithSpringDamper

Simple spring/damper/mass system

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

Information

A body is attached on a revolute and prismatic joint. A 3-dim. spring and a 3-dim. damper are connected between the body and a point fixed in the world frame:

model Examples.Elementary.PendulumWithSpringDamper

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.Forces.Springspring1
Modelica.Mechanics.MultiBody.Forces.Damperdamper1
Modelica.Mechanics.MultiBody.Joints.Revoluterevolute
Modelica.Mechanics.MultiBody.Joints.Prismaticprismatic