Opened 4 years ago

Last modified 4 years ago

#5996 new enhancement

Graphical support to propagate parameters

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

Description

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

Change History (2)

comment:1 by Adeel Asghar, 4 years ago

Component: *unknown*OMEdit
Owner: changed from somebody to Adeel Asghar

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

comment:2 by Francesco Casella, 4 years ago

Milestone: NeedsInput2.0.0
Priority: highcritical

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 parameter, 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, 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;
Version 0, edited 4 years ago by Francesco Casella (next)
Note: See TracTickets for help on using tickets.