Simulating and Generating Results

You can simulate a model with or without updating links and generate results.

Note: If you simulate without updating links:
  • Broken or unsynchronized links are allowed when simulating the model.
  • Knowledge relations inside the model are not updated. Whenever possible, simulate after an update.
Therefore, whenever possible, simulate after an update.

You can simulate the following:

  • Functional models
  • Logical models
  • Logical-physical models (a model containing both physical products and logical components)
  • Stand-alone Dymola behavior models


Before you begin: Create a behavior experience.
Important:
  • To simulate, a valid compiler must be installed. See Compiler for more information.
  • To simulate logical-physical models (models containing both physical products and logical components), you must have the Mechanical Systems Experience app.
See Also
About Behavior Experience
  1. Select a scenario.
  2. 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.

  3. 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 .
      Tip: You can also right-click a Scenario node and click Simulate and Generate Results . If you have simulated previously, you can even right-click a Result of Scenario node and click Simulate and Generate Results .
    • To simulate without updating links: click Compute Scenario Without Update .
    The Simulate and Generate Results dialog box appears.
  4. Optional: You can click Preview to display and monitor the simulation without storing the results. See Simulating in a Preview Mode.
  5. 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.

  6. 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.
      Important: Only the result of Dymola behaviors and context behaviors can be stored in Modelica complete results. The result of FMUs inserted directly in the functional or logical model cannot be stored. However, the result of FMUs inserted into Dymola behaviors or Context behaviors can be stored.
      Tip: To access the Variable Browser, double-click the Modelica Complete Result node. You can also right-click the Modelica Complete Result node and select Open Variable Browser. For more information about the Variable Browser, see Working with the Variable Browser.

      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.
      Note: Traces and swept volumes are not updated when you use the Simulate and Generate Results capability. See Creating Traces and Creating Swept Volumes.
    • 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.