Setting up a Simulation

You can define the preferences to be applied during a simulation.

These preferences are applied to the simulations performed during the session, and can also be stored in the Modelica model.

Notes:
  • For the handling of simulation results, for example, 3D animation, you can also set general options. To specify such options, select Me > Preferences > App Preferences > 3D Modeling > Systems Modeling and Execution > Dymola Behavior Modeling , the Results tab. For more information, see Native Apps Preferences Guide: Results.
  • The model might be suitable for sparse solvers. If so, a message appears when you simulate the model. The message appears in the Messages Reporting window, the Simulation tab, the Translation part of the message tree. For more information, see Dymosim Integrators, section "Advanced Algorithms".
    Note: The message line is Sparse solver handling possible: false. Click the line to see the full message.

  1. From the Component Browser or from the diagram, select a model.
  2. From the Behavior Authoring section of the action bar, click Simulation Setup .

    Tips:
    • You can select a model either before or after selecting the command.
    • You can also access this command from the Simulation section of the action bar.

    The Simulation Setup dialog box appears, organized in tabs.
  3. Select the tab corresponding to the preferences to be customized.
  4. Set these preferences according to your needs.

    Tip: These tabs and preferences are described in Simulation Setup Dialog Box.

  5. Optional: You can, in the dialog box, click:
    • Store setup in model: to add this simulation setup in the selected model (added in an annotation in the Modelica text).
      Important: The experiment data stored into the model are:
      • Start time, stop time,
      • Output interval, integration algorithm, tolerance, fixed step size, maximum run time
      • Output selection: variables, grid method, event.
    • Clear setup in model: to remove all simulation setup from the selected model (and from the Modelica text).
  6. Click OK to save the preferences and exit the Simulation Setup dialog box.

    Tip: To reset your modifications and restore the default preferences, click Reset.