Simulating a Model, Handling Simulations History, and Comparing Simulation Results in a Cockpit

You can simulate a model inside a cockpit view. You can also display historical simulation results, and you can compare simulation results.


Before you begin: Create a study from a study template that contains at least one cockpit. For more information on how to create a study, see Create a Study from an Existing Study Template.
See Also
About Cockpit
Managing Properties
Editing Parameters and Variables
  1. Depending on how you created the study:
    • If you have created a study from a Cockpit view, you are in the cockpit.
    • If you have created a study from the Advanced View, select a cockpit from the Study browser, under Template Data.

      The work area splits and the cockpit appears on the right half side of the widget.

  2. If you have a parametric task category in the cockpit, you can edit the values (ranges) of the input parameters using .

    For more information, see Define Parameter Range.

    Note: The input parameters values of a parametric task are treated differently than parameters in other categories:
    • The tooltip for the value shows the range values, but not if you have made any changes. That is, no "default values" are displayed. This also means that you cannot reset the values.
    • Changes are not indicated with markers.
    • There is no Menu column for this category.

  3. Edit the parameter values in the other categories as required.

    Note: If an acceptance range is defined for the value, color coding displays the status of the value related to the acceptance range:
    Value Highlight Color
    Value within range Green
    Value outside range Red
    Value is an expression Orange
    The acceptance range is displayed in the Acceptance Range column. To see that column, click any table header and activate the display of that column.
    Important: When you edit or reset a parameter, all the occurrences of the parameter in the cockpit are updated or reset. For example, when you reset a parameter in the parameter's category, the parameter is also reset in the variables area of the cockpit.
    Tip: You can hover over a parameter to see its default value and acceptance range (if any).

  4. Optional: To reset the parameter in the categories:
    1. Click under the Menu column.
    2. Select Reset .
  5. Click Simulate .

    The Credit for Simulation dialog box appears to inform you of the number of credits the simulation consumes. It also displays the number of credits that you have left.

    Notes:
    • If you select Do not show this dialog again and later want to display it again, you can do that by, in the preferences setup, activating the option Display 'Credit for Simulation' popup message. For more information, see Customizing Preferences Setup.
    • Depending on CPU time and memory consumption, extra credits may be required. If so, messages appear that allow you to accept extra costs or cancel the simulation.

    The following is the result:
    • The simulation status is updated to Simulation up-to-date in green color if the simulation is executed successfully.
    • An animation player is available for animating the simulated results. For more information, see About Animation.
    • A new simulation result appears under the assessment that you simulated, if the simulation was successful. An icon shows that this was the latest simulation result.
  6. Edit variables and parameters and run additional simulations.

    For editing parameters and variables, see Editing Parameters and Variables.

    Important: To edit variables and parameters, you must select an assessment, not a historical simulation result. Assessments are marked with bold in the simulations list.

    For each new successful simulation, a new simulation result appears under the simulated assessment. Each simulation result has the name of the simulated assessment, and an index number that is increased for each new simulation.
    Notes:
    • By default, the maximum number of simulation results is 20. You cannot increase this number, but you can decrease it from the Simulation Setup, see Setting up a Simulation.
    • The latest simulation result is located closest to the assessment, and is indicated by .
    • If you have reached the maximum number of simulation results, and try to simulate once more, a warning appears where you can select one of:
      • Open Simulation History Manager to delete historical simulations you don´t need.
      • Delete Oldest Simulation and Run.

        To always do this, you can activate Always choose this option.

        Note: To undo this action, you can use the preferences setup, the Popup Messages tab. Here you can re-activate Display 'Too many Simulations saved' warning message. For more information, see Customizing Preferences Setup.

    • You cannot change variables or parameters of historical simulations, they are read-only.
    • Each new simulation also gets a time stamp. For clarity, the time stamp is not shown directly. To display the time stamp, see next step.
  7. You can display and manage historical simulation results:
    1. To select the simulation result to be active, that is, displayed, click that simulation result.

      Notes:
      • To see what simulation result is currently active, look at the display in the upper left corner of the window. The name of the currently active simulation result is displayed.
      • All displayed information about parameter values etc. are the values of the currently active simulation result.
        Important: The historical simulation results are read-only. To change variables and parameters, you must select assessments. Assessments are marked with bold in the simulation list.
      • By default, the newest simulation result is active.

    2. Optional: For the active simulation result, you can:

      • Edit the name by clicking Edit assessment or simulation, and then edit the Name field.
      • Display the time stamp by clicking Edit assessment or simulation.
      • Display information about what parameters were modified before running the simulation by clicking Edit assessment or simulation.
      • Delete the simulation result by clicking Delete.
      Important: Instead of working with the historical simulations one by one, you can manage all historical simulations for the current model at the same time in a separate window. To do so, open the Simulation History Manager. For more information, see Working with the Simulation History Manager.

      Note: This is the easiest way to manage what simulations to keep.

  8. If you have performed several simulations, you can compare them. You do that with help of the Simulation History Manager:

    Important: You cannot compare simulations in a cockpit that contains a parametric task.

    1. From the top section of the left pane in the cockpit, click Open Simulation History Manager .
    2. In the Simulation History Manager window that appears, in the Compare column, select the simulations to compare.

      Notes:
      • You can select several simulations from different assessments.
      • To change the name of a simulation, click the name and edit it.
      • To see the changed parameters for a simulation, click for that simulation.
      • For more information about the Simulation History Manager window, see Working with the Simulation History Manager.

      In the Compare column, a color is specified for each selected simulation, to be able to differentiate between them.
      Note: The colors are saved in the model.
    3. Optional: To change any color, click it to open a color editor.
    4. Validate your selections by clicking OK.
      The Simulation History Manager disappears and you enter the comparison mode of the cockpit. The result is:
      • The top section of the left pane is changed to only contain:
        • One command to display the Simulation History Manager. You can use this command to edit your present comparison selection, for example, to change what simulations to compare, to change colors of compared simulations, and to edit simulation names.
        • One command to leave the comparison mode.
      • A Comparison legend section appears under the top section in the top left pane. This section displays the selected simulations to compare, and the corresponding colors.
        Note: To edit anything, you must open the Simulation History Manager window and edit in that window.
      • In the parameter categories, you get a new column for each result you compare with. The following is valid:
        • The column headers show the name and color of the simulations.
        • Modified parameters of compared simulations are marked by a blue label.
        • You cannot change any value.
      • You cannot simulate in the comparison mode, the Simulation command is not present.
      • You can run animations to compare the simulations.
      • Diagram areas and text areas display only the simulations that are compared.
        Note: For diagram areas, to select which of the compared simulations that should be animated in the diagram, you can click the lower left corner to display a list where you can select the simulation to animate.
      • For the result areas, the result is displayed for each simulation you compare with. This means that the following elements are added to the corresponding chart depending on the chart type:
        • Line chart : Curves from the compared simulations.
        • Bar chart : Bars from the compared simulations.
        • Table chart : Columns from the compared simulations.
        • Gauge chart : Needles from the compared simulations.
      • For variable areas, you get a new column for each result you compare with.
    5. To leave the comparison mode, click Exit Comparison.

Result: