AmesimKnowledge

Getting Started with AMEPilot and the Export module > Polynomial integrator

Running the simulation

Before you run a simulation outsideSimcenter Amesim using AMEPilot AMEPilot running a simulation , run a normal simulation insideSimcenter Amesim. Plot a graph of the output from the integrator.

Figure 7: Output from integrator with normal run

Clearly the function being integrated is x which is the default value in FX00. Keep Simcenter Amesim and polynomialIntegrator.ame open and keep your graph displayed. You are ready to run AMEPilot.

Step1: Set the parameters you want for the run using an ASCII file

Export setup template files

Procedure

  1. In the directory where you saved polynomialIntegrator.ame, make a copy of the file polynomialIntegrator_.in.tpl and rename it to polynomialIntegrator_.in.

  2. Edit polynomialIntegrator_.in using your preferred text editor.

The file contains the following lines:

a 1

b 1

c 1

  1. Change it to

a 3

b 2

c 1

  1. Save it.

Applying simple integration the result we should get is:

Step 2: Run the simulation

Procedure

  1. Open a command line window for your operating system.

  2. Change to the directory where polynomialIntegrator.ame is stored.

  3. Ensure that an environment variable AME is set and points to the directory where Simcenter Amesim is installed.

  4. Ensure that your PATH environment variable is set up so that AMEPilot can be accessed.

  5. Launch the following command: AMEPilot ./polynomialIntegrator

Step 3: Read the results

When the command is completed, the results are available in the file named polynomialIntegrator_.out.

Procedure

  1. Open the file with your preferred editor.

The contents of the file is: integralValue 1.11000000000004e+003

  1. Update your plot in Simcenter Amesim and compare it with the figure above.

Results

Figure 8: Output from integrator using AMEPilot

Clearly the parameters defined in the Export facility are being used. You can try other sets of coefficients for the polynomial by changing the values associated with a, b and c.

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