Opened 12 years ago
Closed 12 years ago
#2108 closed defect (fixed)
OMedit alters code
Reported by: | massimo ceraolo | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | high | Milestone: | 1.9.0 |
Component: | OMEdit | Version: | trunk |
Keywords: | Cc: |
Description
I have the following code in a file:
model AlgebraicInv "Algebraic part of functional lossless inverter" Modelica.Electrical.Analog.Interfaces.Pin pin_p; Modelica.Electrical.Analog.Interfaces.NegativePin pin_n; Modelica.Electrical.MultiPhase.Interfaces.NegativePlug plug_n; Modelica.Electrical.MultiPhase.Interfaces.PositivePlug plug_p; Modelica.SIunits.Power Power; // Modelica.SIunits.Voltage Udc; Modelica.Blocks.Interfaces.RealInput u[3] annotation(Placement(visible = true, transformation(origin = {3,-120}, extent = {{20,-20},{-20,20}}, rotation = 90), iconTransformation(origin = {3,-120}, extent = {{20,-20},{-20,20}}, rotation = 90))); equation plug_p.pin[1:3].i = -plug_n.pin[1:3].i; pin_p.i + pin_n.i = 0; plug_p.pin[1:3].v - plug_n.pin[1:3].v = u[1:3]; Power = sum(plug_p.pin[i].v * plug_p.pin[i].i for i in 1:3); (pin_p.v - pin_n.v) * pin_p.i + Power = 0; end AlgebraicInv;
When it is loaded by OMedit a row is changed. From:
Modelica.Blocks.Interfaces.RealInput u[3];
into
Modelica.Blocks.Interfaces.RealInput u;
that makes the code incorrect.
Change History (3)
comment:1 by , 12 years ago
Component: | Backend → OMEdit |
---|---|
Owner: | changed from | to
comment:2 by , 12 years ago
Note:
See TracTickets
for help on using tickets.
Adeel... Why does OMEdit call:
All I tried to do was load the class