Opened 4 years ago

Last modified 4 years ago

#5996 new enhancement

Graphical support to propagate parameters

Reported by: robert.hallqvist@… Owned by: adeas31
Priority: critical Milestone: 2.0.0
Component: OMEdit Version:
Keywords: paramters Cc: adeas31

Description

Graphical support to propagate model parameters to a higher level of abstraction would be very beneficial.

Change History (2)

comment:1 Changed 4 years ago by adeas31

  • Component changed from *unknown* to OMEdit
  • Owner changed from somebody to adeas31

Can you please provide more information? An example model or a test case would be very helpful.

comment:2 Changed 4 years ago by casella

  • Milestone changed from NeedsInput to 2.0.0
  • Priority changed from high to critical

This feature has been available in Dymola for a long time. If you have

model A
  B b;
end A;

model B
  parameter Sometype p = p_default "Some comment";
end B;

you can double click on b to set its parameters, right-click on the input field for the value of p and select Propagate parameter. Then, a window pops up to help build the declaration of the parameter within A that will then be passed on to b, so that eventualy you get

model A
  parameter Sometype p = p_default "Some comment";
  B b(p = p);
end A;

model B
  parameter Sometype p = p_default "Some comment";
end B;

The popup allows to change all the elements of the parameter definition in the containing model, e.g. change the type, the name, the default, and the comment, so that you may get something like

model A
  parameter SomeDerivedtype my_p = my_default "Some slightly different comment";
  B b(p = my_p);
end A;

model B
  parameter Sometype p = p_default "Some comment";
end B;
Last edited 4 years ago by casella (previous) (diff)
Note: See TracTickets for help on using tickets.