AmesimKnowledge

Simple examples

Mechanical example

We will follow the library workflow for the model creation steps.

Procedure

  1. From the Simcenter Amesim GUI, select Tools > Modelica Editor

  2. In the Modelica Editor, click on the New Class button to create a new root level package for your library. If you already have a local library in which to save this model (e.g., you followed the example in Creating a new Modelica model), you can skip to step 4

  3. Click on the Save button to save this new library to a file named MyLibrary.mo

  4. From the library tree, right-click on MyLibrary and select New Class to create a new model named MSD

  5. Click on the Properties button to set the canvas size to 200 x 100, then use the Zoom to fit button . This will make it easier to view the components on the sketch.

  6. In the library tree, expand the Modelica Standard Library to locate the Mechanics.Translational.Components and Mechanics.Translational.Sources packages

  7. Drag and drop the following components from the library tree onto the Diagram view of your MSD model:

    Modelica.Mechanics.Translational.Sources.StepForce

    Modelica.Mechanics.Translational.Components.Mass

    Modelica.Mechanics.Translational.Components.SpringDamper

    Modelica.Mechanics.Translational.Components.Fixed

  8. Connect the components as shown below:

  9. Select the mass component on the sketch, and use the Parameter view to set mass = 1.5

  10. Select the springdamper component on the sketch, and use the Parameter view to set c = 1 and d = 2

Results

At this point, you have created a complete RLC circuit model. The parameter changes you just made will appear in the icons of some of the components.

Figure 53: Completed mass spring damper model

Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Modelica_Platform/xid1180151 · retrieved 2026-07-17