## ModelicaAdditions.MultiBody.Examples

Examples for the 3D mechanical systems library

### Information

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.

## ModelicaAdditions.MultiBody.Examples.Pendulum

### Parameters

Name | Default | Description
--- | --- | ---
L | 0.8 | length of box
d | 1.0 | damping constant

### Modelica definition

    encapsulated model Pendulum
      import Modelica.Icons;
      import Modelica.Mechanics.Rotational;
      import ModelicaAdditions.MultiBody.Joints;
      import ModelicaAdditions.MultiBody.Parts;

      extends Icons.Example;
      parameter Real L=0.8 "length of box";
      parameter Real d=1.0 "damping constant";
      Parts.InertialSystem inertial;
      Parts.BoxBody boxBody(r={L,0,0});
      Joints.Revolute revolute(n={0,0,1});
      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;