Skip to content

Commit cab86e5

Browse files
ceraolodietmarw
authored andcommitted
Enhance visibility of P and Q values
Prior to this ticket, the power of BaseLoad was written as P + j Q in one row. Unfortunately, the available space is limited, and therefore these values were hardly seen in thiagrams. The situation was worsened by the fact that the width of the text rectangle containing the label did not span the entire icon width. This commit introduces three changes: 1. puts the values of P and Q in two lines to gain them more space 2. enlarges the text rectangle to contribute to give more space for display as well 2. converts the text colour into black, since the de-facto standard used in the Modelica Standard Library is to use black for parameter values.
1 parent 4ba683a commit cab86e5

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

OpenIPSL/Electrical/Loads/PSAT/BaseClasses/baseLoad.mo

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ equation
2626
annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},
2727
{100,100}}), graphics={Line(points={{-100,100},{100,100},{0,-100},{
2828
-100,100}}, color={28,108,200}),Text(
29-
extent={{-60,80},{60,40}},
30-
lineColor={28,108,200},
31-
textString="%P_0+j%Q_0"),Text(
29+
extent={{-100,80},{100,56}},
30+
lineColor={0,0,0},
31+
textString="%P_0"), Text(
3232
extent={{-150,-110},{150,-150}},
3333
lineColor={0,0,255},
34-
textString="%name")}));
34+
textString="%name"), Text(
35+
extent={{-100,32},{100,6}},
36+
lineColor={0,0,0},
37+
textString="%Q_0")}));
3538
end baseLoad;

0 commit comments

Comments
 (0)