-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with switching units of vector parameters using the GUI of OMEdit #10226
Comments
@casella I consider this to be an issue that needs a fix in the next stable version. A user who can not guess what the problem is, will fail working with OpenModelica and possibly discontinue working with it, as it requires sophisticated Modelica knowledge to resolve the issue, even if the translation process drops a clear hint:
|
@perost we need to extend the |
You can already set |
As I remember it works for the submodifier but not for the actual modifier e.g., how to set |
In the example model we have
As you say it only works for submodifiers, but setting |
Fixes OpenModelica#5395, Fixes OpenModelica#5405, Fixes OpenModelica#5489, Fixes OpenModelica#5737, Fixes OpenModelica#7750 and Fixes OpenModelica#10226 Apply the modifiers with one call of `setElementModifierValue`. Added a new button for final and each context menu. Improved the handling of modifiers.
…odelica#11019) Fixes OpenModelica#5395, Fixes OpenModelica#5405, Fixes OpenModelica#5489, Fixes OpenModelica#5737, Fixes OpenModelica#7750 and Fixes OpenModelica#10226 Apply the modifiers with one call of `setElementModifierValue`. Added a new button for final and each context menu. Improved the handling of modifiers.
Description
Polyphase models rely on parameter vectors. Consider the following Modelica model:
So, for example, the parametes of the quasi stsatic reistor model are
R_ref = {100,100,100}
If I change the unit of the resistances to
kOhm
the GUI applies
R_ref (displayUnit = "kOhm")= {100, 100, 100}
which causes an error when I try to simulate the model, aseach
is missing for thedisplayUnit
.Even switching back to the original unit
Ohm
does note resolve the issue.Steps to Reproduce
kOhm
each
toresistor(R_ref (displayUnit = "kOhm")= {100, 100, 100})
, resulting in:resistor(R_ref (each displayUnit = "kOhm")= {100, 100, 100})
Expected Behavior
The each shall be included by the GUI automatically when switching to a different unit
Version and OS
So this issue applies to the acutal nightly build version and back to version 19.2 (on Windows)
The text was updated successfully, but these errors were encountered: