-
Select a scenario.
- Optional:
If needed,
set up the parameters for your simulation.
Note:
To simulate models containing Modelica code, select
Store complete Modelica results in the
General tab of the
Execution Setup dialog box.
-
From the
Scenario section of the
action bar,
depending on how you want to simulate, do the following:
- To simulate with updating links: click
Simulate and Generate Results
.
- To simulate without updating links: click
Compute Scenario Without Update
.
The
Simulate and Generate Results dialog box
appears.
- Optional:
You can click
Preview to display and monitor the simulation
without storing the results.
See
Simulating in a Preview Mode.
- Optional:
By default, the current scenario is selected for simulation. If
you want to simulate all the scenarios, click
Select All Scenarios
in the dialog box.
This also deactivates the
Preview button.
-
Click
OK.
The
Computation Status progress bar displays the
progress of the simulation.
If you have used the command
Simulate and Generate Results
an update of links is done before simulation. The update
must be successful to simulate with this command.
When the simulation is complete:
- If an error or warning is detected during the computation, the Incident
Diagnosis dialog box appears to let you understand,
analyze, and solve the problem. The diagnosis appears in the tree under Results of
Scenario. You can click Incident
Diagnosis
or double-click the diagnosis in the tree to open the Incident
Diagnosis dialog box. This
dialog box also displays the Start time,
the End time, and the
Duration of the simulation.
- If you simulate and generate results for the first time, the
Result category appears in the
tree,
and a
Result of Scenario node is created for
each simulated scenario.

- A
Modelica Complete Result node is by default
displayed under the
Result of Scenario node for each scenario.
The node contains the complete result for all Modelica behaviors in the
scenario.
If you do not want to use
Modelica Complete Result nodes, clear the
option
Store complete Modelica results in the
Execution Setup dialog box
- If the results are already generated, the
content of the
Result category is updated.
- If you have created probes, probe results
are also generated. See
About Probes.
- All the specifications defined under the
Scenario category are updated.
Note:
The
Scenario window is not closed when you
simulate.
You can now
analyze the simulation results or
animate the model.