Create Behavior Content in the Model

To create some behavior content in the model, you need to instantiate classes to create components and connect them.

  1. In the Package Browser, expand Modelica > Mechanics > MultiBody and drag the World class to the diagram layer.

  2. From Modelica > Mechanics > MultiBody > Forces, drag the Spring class to the diagram layer.
  3. From Modelica > Mechanics > MultiBody > Parts, drag the Body class to the diagram layer.
  4. Connect the World component with the Spring component the following way:
    1. Click the connector of the World component.
      The context toolbar appears.



    2. In the context toolbar, click Connection .
    3. Click the connector of the Spring to connect it to the World component.
  5. Connect Spring with Body the same way:
    1. Click the connector of the Spring component.
      The context toolbar appears.
    2. Click Connection .
    3. Click the connector of Body to connect it to the Spring.

The components are now connected.