Opened 7 years ago

Last modified 15 months ago

#4645 closed enhancement

Use blank pixels around lines to enhance readability — at Version 8

Reported by: massimo ceraolo Owned by: Adeel Asghar
Priority: blocker Milestone: 1.22.0
Component: OMEdit Version: v1.13.0-dev-nightly
Keywords: Cc:

Description (last modified by massimo ceraolo)

In MA ticket 2162 there have been a discussion on the diode symbol. The IEC has the disadvantage that an erroneous connection between anode and cathode is hardly visible. Dropping that line solves this, but is against the effort of making Modelica symbols as IEC compliant as possible.
The decision was to keep the IEC symbol.

However it may occur to newbies that a line is inadvertently drawn between anode and cathode. This is crazy but happens. It produces an issue which is difficult to spot.

Dymola solves this using a graphical representation which does some difference between a correct diode and a short circuit diode (Dymola.png)
OMEdit does not make any difference (OM.png).

I think that Dymla simply uses some blank pixels at the sides of connecting lines: in this way the lines are "detached" from any underlying other drawing element.

Is it possible to consider something also for OMEdit?
Not only would this enhance readability of diodes and GTOs, but, more in general, readability of all diagrams in which connecting lines are drawn over other elements.
Important is the case of connecting lines intersections: compare the way intersections are viewed in Dynmola and OM for the file "crossingLines.mo"

Change History (13)

by massimo ceraolo, 7 years ago

Attachment: Dymola.png added

by massimo ceraolo, 7 years ago

Attachment: OM.png added

comment:1 by Adeel Asghar, 7 years ago

I think the MA ticket number is wrong.

comment:3 by massimo ceraolo, 7 years ago

Description: modified (diff)

comment:4 by Martin Sjölund, 7 years ago

What's the Modelica code used for the screenshots?

in reply to:  4 comment:5 by massimo ceraolo, 7 years ago

Replying to sjoelund.se:

What's the Modelica code used for the screenshots?

model DIODES
  Modelica.Electrical.Analog.Ideal.IdealDiode diode annotation (Placement(
        transformation(
        extent={{-10,-10},{10,10}},
        rotation=90,
        origin={-12,0})));
  Modelica.Electrical.Analog.Ideal.IdealDiode diode_SHORTED annotation (
      Placement(transformation(
        extent={{-10,-10},{10,10}},
        rotation=90,
        origin={12,0})));
equation 
  connect(diode_SHORTED.n, diode_SHORTED.p)
    annotation (Line(points={{12,10},{12,-10}}, color={0,0,255}));
end DIODES;

Last edited 7 years ago by massimo ceraolo (previous) (diff)

comment:6 by massimo ceraolo, 7 years ago

Description: modified (diff)

comment:7 by massimo ceraolo, 7 years ago

Probably what dymola does is just writing at the sides of connecting lines two rows of blank pixels. In this way the lines are "detached" from any underlying other drawing element.

comment:8 by massimo ceraolo, 7 years ago

Description: modified (diff)
Summary: Enhance diode and GTO viewUse blank pixels around lines to enhance readability

by massimo ceraolo, 7 years ago

Attachment: CrossingLines.mo added

by massimo ceraolo, 7 years ago

Attachment: CrossingLinesDYM.png added

by massimo ceraolo, 7 years ago

Attachment: CrossingLinesOM.png added
Note: See TracTickets for help on using tickets.