WOLFRAM SYSTEMMODELER TUTORIAL

Simulation CenterOptions

Introduction | Options | Experiment Browser | Plot Windows | 3D Animation | Initializing Experiments | FFT Analysis | Importing and Exporting | Keyboard Shortcuts | Input Variable Data Files | CombiTimeTable File | Simulation Settings Files | Simulation Result Files | Communication with Simulation

The Options dialog box can be reached from the Tools menu. All settings available in the Options dialog box are automatically saved when closing the dialog box and are restored the next time Simulation Center is started.

The Options dialog box.

Simulation CenterGeneral View

If option Automatically simulate after a successful rebuild is enabled, the experiment is automatically simulated after a successful rebuild.

2.gif

The General view under the Simulation Center group of the Options dialog box.

Default Experiment View

If the model does not contain embedded experiment settings (see here for information on how to embed experiment settings in a model), all new experiments, when created, will be initialized with the default experiment settings.

If the default experiment settings are changed in the Options dialog box, all new experiments created after that change will receive the new settings. Please note that changing the default experiment settings in the Options dialog box has no effect on the active experiment. See this section for more information on experiment settings and how to change the settings of a specific experiment.

3.gif

The Default Experiment view of the Options dialog box.

Debug Output View

To enable debug output for a simulation, choose Tools Options to open the Options dialog box and select the Debug Output view. The amount of debug output can be controlled by setting a verbosity level in combination with enabling output for different subsystems of the simulation. The verbosity level can take one of the following values: Minimal, Normal, or Verbose. Debug output can be enabled for the following subsystems:

  • Initialization solver
  • Event handling
  • Dynamic state changes
  • Settings
  • Nonlinear systems solver
  • Linear systems solver
  • Communication
  • ModelicaMessage

4.gif

The Debug Output view of the Options dialog box.

Plot View

The Plot view of the Options dialog box.

Legend

  • Use experiment name as prefix: if enabled, all legends are prefixed with the experiment.
  • Use shortest unique name: if enabled, as many path components as possible will be stripped from the variable name. For example, if we have the variables a.b.r and a.c.r, their legend text will be b.r and c.r.

Real-Time Plot

When running a real-time simulation, the simulation result is streamed to the plot using a network protocol, and the plot is updated frequently. Here it is possible to set how long of a history to keep for the plotted variables and how often the plot should be updated.

  • Buffer length: specifies how long of a history, in seconds, to keep for the plotted variables.
  • Plot update frequency: specifies how many times per second the plot should be updated.

GlobalGeneral View

By default, SystemModeler places simulation executables and associated files in the system temporary directory. By enabling Custom Build Directory and choosing a custom directory, these files will instead be placed in the chosen directory.

6.gif

The General view under the Global group of the Options dialog box.

Translation View

The Translation view of the Options dialog box.

Options

  • Tearing: a technique used to reduce large sparse systems of equations to smaller denser systems. It can significantly improve the runtime performance of a model.

Dynamic State Selection

If enabled, a state selection algorithm that may introduce dynamic states is used. It is possible to enable it for all classes or only for classes that use the specified libraries.

Log

  • Selected states: if enabled, information about which states are selected during the translation phase is written to the build log.
  • Index reduction: if enabled, information about which equations are differentiated due to index reduction during the translation phase is written to the build log.

Introduction | Options | Experiment Browser | Plot Windows | 3D Animation | Initializing Experiments | FFT Analysis | Importing and Exporting | Keyboard Shortcuts | Input Variable Data Files | CombiTimeTable File | Simulation Settings Files | Simulation Result Files | Communication with Simulation