Simple examples
Temporal Analysis
Start Simcenter Amesim, and build the following model, using Premier submodel:
Figure 18: Variable spring rate model
Note
Simcenter Amesim Run users can get this system through Help > Get demo, from the Tutorials directory.The file is called scrdemo.ame.
Save this model as scrdemo.ame in your working directory and set the following parameters:
Set the value of the parameter in FX00-1 to abs(x).
Set the value of the shaft speed in MECRL0A-1 to 100 rev/min.
Note
In this example, we will use the directory C:\AMETest as the working directory. If you use a different working directory, you will of course have to change the commands used in this tutorial accordingly.
In Simulation mode, select the File > Write files for simulation menu item to update the parameters.
Some general remarks:
Each time a parameter is changed manually in Simcenter Amesim, you must use the Write files for simulation command to refresh the parameters in the model files before using scripting functions.
When working with scripts, the current model must always be open in Simcenter Amesim or Simcenter Amesim Run in order to have all the necessary data files containing parameters and variables available to the functions. Another way to proceed is to use the AMELoad utility to open an existing model.
We will use some scripting functions to set the variable spring rate in the FXA01-1 component, run the simulation and analyze results.
Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Scripting/Creating_an_example_model · retrieved 2026-07-17