AmesimKnowledge

Tutorial

Running a simulation

Running a simulation

API running a simulation

To start a simulation from your script, you use the function AMERunSimulation AMERunSimulation

API AMERunSimulation .

Warning

You are strongly advised to compile the code just before running the simulation, in order to be certain that the compiled version of your model used for simulation is up to date. See Compiling the code.

Copy

# Start simulation
print ('')
print ('Running "FlatTwin" system simulation...')

AMEGenerateCode()
AMERunSimulation()

Add this function to your script and then run it. The script produces the FlatTwin.ame system with a simulation run. You can open it in Simcenter Amesim to check the output.

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