Opened 6 years ago
Last modified 7 months ago
#5105 new defect
Unable to set fixed=true through modifier field
Reported by: | massimo ceraolo | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OMEdit | Version: | v1.13.0-dev-nightly |
Keywords: | Cc: |
Description
Consider the enclosed RL3.mo model.
Using current OMEdit, it runs and correctly warns about initialization. With -d=initialization
we get:
[1] 10:51:27 Translation Warning Assuming fixed start value for the following 3 variables: inductor1.inductor[1].i:VARIABLE(start = 0.0 unit = "A" ) "Current flowing from pin p to pin n" type: Real [3] inductor1.inductor[2].i:VARIABLE(start = 0.0 unit = "A" ) "Current flowing from pin p to pin n" type: Real [3] inductor1.inductor[3].i:VARIABLE(start = 0.0 unit = "A" ) "Current flowing from pin p to pin n" type: Real [3]
The warning issue is solved writing in code i(each fixed=true)
in inductor1 definition:
Modelica.Electrical.MultiPhase.Basic.Inductor inductor1(L = fill(0.01, 3), i(each fixed=true));
This modification should be possible also through the Parameters|Modifiers tab of inductor1, but it results to be impossible. When when try, the following error message is issued:
[2] 10:56:14 Scripting Error The Modifier i(each fixed=true) format is invalid. The correct format is phi(start=1)
Attachments (1)
Change History (6)
by , 6 years ago
comment:1 by , 5 years ago
Milestone: | 1.14.0 → 1.16.0 |
---|
comment:3 by , 4 years ago
Milestone: | 1.17.0 → 1.18.0 |
---|
Retargeted to 1.18.0 because of 1.17.0 timed release.
comment:5 by , 7 months ago
This issue is still present.
Since the OMEdit user interface has been improved recently, with the addition of the "final/each" control, is it now a good time to address it?
Or it is invalid?
Releasing 1.14.0 which is stable and has many improvements w.r.t. 1.13.2. This issue is rescheduled to 1.16.0