This package contains example models to demonstrate the usage of the ModelicaAdditions.MultiBody package. Open the models and simulate them according to the provided description in the models.
Name | Default | Description |
---|---|---|
L | 0.8 | length of box |
d | 1.0 | damping constant |
model Pendulum extends Modelica.Icons.Example; parameter Real L=0.8 "length of box"; parameter Real d=1.0 "damping constant"; MultiBody.Parts.InertialSystem inertial; MultiBody.Parts.BoxBody boxBody(r={L,0,0}); MultiBody.Joints.Revolute revolute(n={0,0,1}); Modelica.Mechanics.Rotational.Damper damper(d=d); equation connect(inertial.frame_b, revolute.frame_a); connect(revolute.frame_b, boxBody.frame_a); connect(damper.flange_b, revolute.axis); connect(damper.flange_a, revolute.bearing); end Pendulum;