Propagating Parameters

You can propagate a parameter, that is, you can automatically create a new parameter and a corresponding binding in the surrounding class. This conveniently enables using the parameter on a higher level.

Notes:

See Also
Displaying and Editing Modelica Parameters
  1. From the Component Browser or from the diagram, right-click the relevant component and select Edit Modelica Parameters .

    Tip: From the diagram, from the context toolbar, you can also select Edit Modelica Parameters .

    The dialog box for editing the component parameters appears to let you edit the component parameters and some other modifiers.
  2. In the dialog, click the small triangle after the field of the parameter you want to propagate 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.
  3. Optional: If need be, you can change the propagated parameter. To have all the options, edit it in the Parameter and Variable Editor rather than in the Propagate dialog box. For further information, see Defining Parameters and Editing Properties of Parameters.

    Note: If you just want to propagate the parameter, you do not have to change anything.

  4. Click OK.
    The binding equation appears in the parameter value field.
  5. Click OK.
    The parameter is propagated to the surrounding class. A binding annotation is created automatically.