AmesimKnowledge

Working with the Modelica Editor

Defining the exposed parameters and variables in Simcenter Amesim

When you add a Modelica component to a Simcenter Amesim sketch, by default, all the parameters and variables are exposed. However, two filtering options available from the toolbar allow you to define which parameters and variables are exposed in Simcenter Amesim.

Figure 40: Filtering buttons

Warning

When a Modelica component is exported to Simcenter Amesim, you cannot filter or hide the non-internal variables contained in the model. This is a limitation of the compiler itself.

Non-internal variables include:

  • Input variables

  • Output variables

  • State variables

  • Runtime option parameters

The string filter button with the text field

When you activate the filter button, a text field becomes editable, allowing you to write a specific string or several strings separated with a space.

The filtering rules here follow the GLOB patterns specification. For more details about the GLOB pattern specification, see

For example if you type name* in the text field, all the variables beginning with "name" will be exposed in Simcenter Amesim. If you type x* y*, all the internal variables beginning with the letter x or y will be exposed.

Remember that GLOB syntax includes brackets as a wildcard definition, so when matching with Modelica array variables you must escape the brackets using a backslash: x\\ [1\\ will expose all x[1 array variables.

Figure Figure 41 shows an example of a model filtered by component name: ParoiNord* and ParoiSud*.

Figure 41: Filter button activated

In this example, only non-internal variables are displayed, except for the ParoiNord and ParoiSud components.

The top-layer filter button

You can activate the top-layer filter button to expose only the parameters and variables declared at the top layer of your model, including the parameters and variables of the components declared at the top level. This is the easiest way to reduce the number of exposed variables for simulation.

Figure 42: Top-layer filter button

Note

The string filter and the top-layer filter buttons cannot be enabled simultaneously.

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