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)

RL3.mo (1.9 KB ) - added by massimo ceraolo 6 years ago.

Download all attachments as: .zip

Change History (6)

by massimo ceraolo, 6 years ago

Attachment: RL3.mo added

comment:1 by Francesco Casella, 5 years ago

Milestone: 1.14.01.16.0

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

comment:2 by Francesco Casella, 4 years ago

Milestone: 1.16.01.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:3 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:4 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

comment:5 by massimo ceraolo, 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?

Note: See TracTickets for help on using tickets.