Propagating Parameters to Top Level

You can propagate a parameter to top level, that is, you can automatically create new parameters and corresponding bindings in the surrounding classes up to the top-level component. This conveniently enables using the parameter from the top level.

In this scenario, you propagate the parameter T_Ref of a resistor to top level.


Before you begin: Create a logical structure with a Dymola behavior containing a resistor according to Creating a Functional or Logical Structure with a Dymola Behavior Containing a Modelica Component.
See Also
About Working with Parameters in Dymola Behaviors
  1. To work with the parameters of the resistor, display the Modelica Parameters Edition dialog box of the resistor.

    For more information, see Displaying the Edit Component Parameters Dialog Box.

    Tip: You must use Step 2 in the reference where you display the behavior in an immersive window since the parameters are not top-level parameters in the behavior.

  2. In the dialog, click the small triangle after the field of the parameter T_Ref and select any of the following commands:

    Tip: You can also right-click the parameter field.

    • Propagate <parameter name> to ensure that you use a previous propagation of the same parameter from another component of the same class, if any.
    • Propagate to be able to change the name of the parameter to propagate to, even if the parameter is already propagated from another component of the same class.
    A Propagate dialog box is displayed, except if the command Propagate <parameter name> in used in a case where the parameter already has been propagated from another component of the same class. In the latter case, the binding equation is added without any previous dialog box.
    Note: For this scenario, you get the same result with both commands.
  3. Optional: If need be, you can change the propagated parameter..

    Note: If you just want to propagate the parameter, you do not have to change anything. This is the case in this scenario.

  4. Click OK.
    The binding equation appears in the parameter value field.
  5. Click OK.
    The following is the result:
    • The parameter is propagated to the surrounding class. A binding annotation is created automatically.
      Note: This is only visible in Functional & Logical Design.
    • In the tree, under the top-level logical component, a new Dymola behavior with the model name CompositeBehavior is created, with the propagated parameter under it.
      Notes:
      • The CompositeBehavior item can be seen as only a container for the propagated parameters. You cannot create such a behavior like creating other behaviors and you cannot enter Dymola Behavior Modeling from this behavior.
        Note: Changed values of parameters and Knowledgeware parameters are also located here. For more information, see Editing Parameter Values in Dymola Behaviors.
      • You can double-click the propagated parameter to display the Parameter and Variable Edition dialog box for it.
        Note: You can also right-click the parameter and select <parameterName> object > Definition to display the dialog.