Importing and Modifying Initial Steady State Values from Result

You can create and modify (to a limited extent) the initial steady state of a scenario by importing the results from another scenario.

This task shows you how to:


Before you begin: Create a simulated scenario with Modelica from which you have to import.
Important:
  • This feature is only available for Modelica behaviors.
  • You cannot edit the imported values, but you can override them.

Import Initial Steady State Values from Result

You can create the initial state of a scenario by importing the results from another scenario.

  1. Select this command and import the initial steady state by one of the following methods:

    Note: The selected entity must be the result of a simulation where the variable names coincide with the parameter or state variable names of the current model. Otherwise, a warning appears indicating that the set of initial conditions could be inconsistent.

    • Select a node in the Variable Browser. The data to import is taken from the result file associated with this Variable Browser when importing.
      Tip: You can select the node in the Variable Browser and then this command.
    • Select a Modelica Complete Result node in the tree.
    • Select a Steady State Result node.
    • Click Select a file and browse for a .mat file.
    • Click Select a document and in the Content Chooser dialog box, search for a simulation result using top bar.

      The result is displayed in the text box of the Import Initial Steady State from Result dialog box. The data to be imported is taken from that result.

    The selection appears in the Import Initial Steady State from Result dialog box. The selected entity is immediately analyzed to determine the range of the timeline. When the minimum and maximum time values are known, they are used as boundaries for the range of the authorized time point, and the range widget is updated according to these boundaries.
  2. Click OK to start the import.
    The imported values are set as initial values in the current execution setup. When the import is finished, the excitation is visible in the tree, as an Initial Steady State node, in the following locations:
    • In the Scenario category.
    • In the Excitations category, to allow you to share the initial steady state values excitation with other scenarios.

    Double-click the Initial Steady State to open the Scenario window. It is updated as follows: The column Initial Steady State is displayed, with the imported initial values. The initial values are not editable from this panel.

Modify Imported Steady State Values

You can modify the Initial Steady State node in two ways. You can either override it by importing again or you can rename it. However, you cannot edit individual values.

Important: If you change or delete a forced value, it is also changed or deleted in all other scenarios where it is used. To create an excitations that is not shared, you have to copy it.
Important: To set different initial values for single values, use Forced Values.

To override present initial steady state, import again, as described above.

To rename an Initial Steady State node:

  1. In the tree, right-click the Initial Steady State node to be renamed, and select Properties.
  2. In the Properties dialog box, change the name.