modelDoublePendulum

Simple double pendulum with two revolute joints and two bodies

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

Information

This example demonstrates that by using joint and body elements animation is automatically available. Also the revolute joints are animated. Note, that animation of every component can be switched of by setting the first parameter animation to false or by setting enableAnimation in the world object to false to switch off animation of all components.

model Examples.Elementary.DoublePendulum

Components

TypeNameDefaultDescription
Modelica.Mechanics.MultiBody.Worldworld
Modelica.Mechanics.MultiBody.Joints.Revoluterevolute1
Modelica.Mechanics.Rotational.Components.Damperdamper
Modelica.Mechanics.MultiBody.Parts.BodyBoxboxBody1
Modelica.Mechanics.MultiBody.Joints.Revoluterevolute2
Modelica.Mechanics.MultiBody.Parts.BodyBoxboxBody2