Opened 8 years ago
Closed 6 years ago
#4008 closed defect (fixed)
OMEdit: Can't change AC1ph_DC ACvoltage source fType_par parameter in the dialog
Reported by: | Sup3rGeo | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | blocker | Milestone: | 1.14.0 |
Component: | OMEdit | Version: | |
Keywords: | Cc: | Rüdiger Franke |
Description
Hi,
When I try to use the source ACvoltage from the AC1ph_DC blocks, I never get to set the fType_par to false (the dialog shows it grayed, read-only) regardless of the setting of fType_sys and scType_par parameters (that can be changed).
Therefore I can't get to use an ACvoltage with variable frequency in my models.
Thank you.
Change History (8)
comment:1 by , 8 years ago
Component: | *unknown* → OMEdit |
---|---|
Owner: | changed from | to
Summary: | Can't change AC1ph_DC ACvoltage source fType_par parameter in the dialog → OMEdit: Can't change AC1ph_DC ACvoltage source fType_par parameter in the dialog |
comment:2 by , 8 years ago
Milestone: | Future → 2.0.0 |
---|---|
Priority: | high → blocker |
comment:3 by , 8 years ago
When I try to use the source ACvoltage from the AC1ph_DC blocks, I never get to set the fType_par to false (the dialog shows it grayed, read-only) regardless of the setting of fType_sys and scType_par parameters (that can be changed).
This is probably related to #2661
comment:4 by , 8 years ago
The situation has become worse with the current master versions of OpenModelica and PowerSystems.
The Windows version of OMEdit crashes when browsing the PowerSystems library. The Linux version shows the following corruted message multiple times:
Scripting Notification Stack overflow detected and was not caught. Send us a bug report at https://trac.openmodelica.org/OpenModelica/newticket Include the following trace: [bt] Execution path: Stack overflow detected a
The two Booleans fType_par
and fType_sys
have meanwhile been replaced with the enumeration parameter PowerSystems.Types.SourceFrequency fType
:
type SourceFrequency = enumeration( Parameter "Parameter f", Signal "Signal omega_in", System "System defined") "Options for specification of frequency";
The new parameter fType
does not show up in the Dialog at all. Moreover OMEdit raises:
Scripting Error Unable to find component voltage2.omega_in while parsing connection {theta_dq0.y,voltage2.omega_in, ""}.
The connection is not drawn. See PowerSystems.Examples.Spot.Introduction.Frequency
.
comment:5 by , 8 years ago
The crash / stack overflow was caused by an unnecessary import statement. It is fixed with https://github.com/modelica/PowerSystems/commit/92edf4af6ac185cc6af63d95fd4b4e54ebe5cb3c
The problems listed in comment:2 remain -- in particular the units chaos, besides evaluation of annotations.
comment:6 by , 7 years ago
Cc: | added |
---|
The original problem reported here should be fixed (with a workaround) after comment:2:ticket:2661. Other issues (e.g. those reported in #3951) should have been fixed as well.
@rfranke, could you assess what is still wrong and report here?
comment:8 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The original issue is already reported in #2661, so this ticket is a duplicate of that from this point of view. This should be fixed in 1.14.0.
Other issues should have been fixed in the meantime.
That's a good point.
ftype_par
is declared withannotation(Evaluate=true, Dialog(enable=not fType_sys))
. It appears that OMEdit does not evaluate the actual value offType_sys
when rendering the parameter dialog.Dialog(enable ...)
is not specific to the PowerSystems library, but commonly used in many Modelica models.In case you are interested in a "rocky horror picture show", you might open
PowerSystems.Examples.Spot.Introduction.Frequency
in OMEdit and see:+
and-
navigation elements in the tree view of the Libraries pane on mouseover (just not nice, but see below). My Linux version (v1.10.0-dev.134+gb85235d) does it right.voltage1
to open the parameter dialog -- my Windows version of OMEdit will destroy the diagram layout -- my Linux version keeps the position of the icon in the diagramV_nom
, just "V" -- "kV" would be nice.f
the alternative unit "Bq".f
is bound to the parametersystem.f
. What is the meaning of changing the display unit of a variable name?Once you got around all these things, you finally find out that
fType_par
is always disabled, independent of the actual value offType_sys
. It appears that OMEdit generally lacks the evaluation of parameters when rendering graphics or parameter dialogs.Unit issues have been reported in another ticket (#3951).