Scripted Simulation
Overview
A Scripted Simulation is an advanced method for simulating a model. The script is a set of Adams Solver commands that can change the model or Adams Solver settings during the simulation. Simulation scripts are useful when you have come up with a good set of simulation parameters that you want to reuse with your model.
Creating a Simulation Script
To create a script for a simulation:
From the Simulation Tool Palette, select the Scripted Simulation tool.

- Enter a name for the Scenario.
- Optionally enter a description for the Scenario.
- Do one of the following options to enter script commands:
- Manually enter valid Adams Solver commands in the Script Command window.
- Import an Adams Solver Commands file (.acf) from disk by selecting the Import ACF button.
- Optionally validate the syntax and the model by selecting the Model Verify button.
- Run the Simulation by selecting the Run Script button.

Modifying a Simulation Script
You can modify any simulation script in the modeling database.
To modify a script for a simulation:
- Select the Studies tab in the Model Display Panel.
- Select the Simulation Settings for the Scenario.
- Modify the script as desired.

Importing an Adams Solver Command File (.acf)
You can import an Adams Solver command file (.acf) and run it as an Adams Solver command script. This is a useful option if you want to reuse a set of commands for your model(s).
To import a command file:
- From the Scripted Simulation tool, select the Import ACF button.
- Select the .acf file from disk.
- Select Open.

Syntax Highlighting
The script command window has syntax highlighting to help guide and validate Adams Solver syntax. This can be useful when there a large number of commands are entered.

Running a Scripted Simulation
To run a scripted simulation, select the Run Script button.
- Log in to post comments
