AmesimKnowledge

Simple examples

Electrical example

In this section, you will create a simple RLC electrical circuit, then simulate and post-process it.

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

Procedure

  1. Open the Modelica Editor from the Simcenter AmesimTools menu.

    The Modelica Editor opens.

  2. Add an empty Modelica "model" from the library tree (click the New icon from the toolbar).

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

  4. In the library tree, expand the Modelica Standard Library to locate the Electrical.Analog.Basic and Electrical.Analog.Sources packages:

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

    Modelica.Electrical.Analog.Basic.Ground

    Modelica.Electrical.Analog.Basic.Resistor

    Modelica.Electrical.Analog.Basic.Inductor

    Modelica.Electrical.Analog.Basic.Capacitor

    Modelica.Electrical.Analog.Sources.StepVoltage

  6. Select the stepvoltage component and rotate it 90 degrees clockwise. You can do this with the Rotate Right button , by using the rotate anchor arrows (click on the component to toggle between stretch anchors and rotate anchors), or by directly modifying the Placement annotations in the source code. The result is that the blue electrical connector (positive pin) will face down towards the ground component.

  7. Connect the components as shown below:

  8. Select the resistor component on the sketch, and use the Parameter view to set R = 1

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

  10. Select the capacitor component on the sketch, and use the Parameter view to set C = 2

  11. Select the stepvoltage component on the sketch, and use the Parameter view to set startTime = 1.0 and V = 12

Results

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

Figure 51: Completed RLC circuit model

You can now save your newly created Modelica model.

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