AmesimKnowledge

Getting Started with AMEPilot and the Export module > Polynomial integrator

Using Compound Output Parameters

Compound Output Parameters

Export setup Compound Output Parameters

Let's imagine we are not only interested in computing the integration on the whole interval [0,10]. We also want to be able to compute this integration on any interval [startTime, stopTime] included in [0,10]

An easy way of doing this is to use compound output parameters.

Step 1: Setting compound parameters

Procedure

  1. Open the Export Parameters Setup dialog box with the menu Interfaces > Export Setup .

  2. Add two new inputs with the Add button named startTime and stopTime with default values respectively 0 and 10.

Figure 9: New inputs

  1. Go to Simulation mode.

  2. Add the output of FX00 to the Simple Output Parameters list and rename it P.

Figure 10: Simple Output Parameters

  1. Select the Compound Output Parameters tab.

  2. Click on the Add button.

A new line appears.

  1. Change the name to restrictedInteg.

  2. Click twice on the expression cell. Enter the following expression: integ(restrict(P, startTime, stopTime))

You can use the expression editor as explained in Expression editor.

  1. Click on the Save button.

Figure 11: Compound Output Parameters

Step 2: Set the print interval and run the simulation

Procedure

  1. As the compound output parameter accuracy depends on the print interval, set a smaller print interval: for instance 0.01 (see Setting Run parameters section of the Simcenter Amesim Reference Manual for details about setting this).

  2. Change the contents of the file polynomialIntegrator_.in to:

a 3

b 2

c 1

startTime 0

stopTime 10

  1. To do this, you can either:

add the two last lines to the one used previously, or

remove this file and make a copy of the file polynomialIntegrator_.in.tpl and rename it to polynomialIntegrator_.in.

  1. Run the simulation using AMEPilot and load the polynomialIntegrator_.out file into an editor.

The results are:

integralValue 1.11000000000004e+003

P 3.21000000000000e+002

restrictedInteg 1.11000050000000e+003

  1. Now change the startTime to 2 and the stopTime to 8.

Note that in this case we have:

  1. Run the simulation with AMEPilot.

The contents of polynomialIntegrator_.out is then conform to our expectation:

integralValue 1.11000000000004e+003

P 3.21000000000000e+002

restrictedInteg 5.70000299999993e+002

Results

Note

Simple Output Parameters are values obtained directly from the results file.

Compound Outputs Parameters are obtained by post processing a valid expression involving Simple Output Parameters, Input Parameters and other Compound Output Parameters.

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