Opened 4 years ago
Last modified 4 years ago
#5996 new enhancement
Graphical support to propagate parameters
Reported by: | 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 , 4 years ago
Component: | *unknown* → OMEdit |
---|---|
Owner: | changed from | to
comment:2 by , 4 years ago
Milestone: | NeedsInput → 2.0.0 |
---|---|
Priority: | high → 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;
Can you please provide more information? An example model or a test case would be very helpful.