Skip to content

Commit 5caf357

Browse files
ceraolodietmarw
authored andcommitted
Make group names shorter and clearer
Prior to this commit, the instancece names of the generators were very long, and therefore were truncated in diagrams. The length was not sue to special clarity purposes; it seemd just the consequence of some automatic naming algorithm. This commit introduces shorter names, leaving for the generators names at least the same meaninfulness, but allowing them to be visible in diagrams without zooming.
1 parent 7b8312f commit 5caf357

5 files changed

Lines changed: 380 additions & 398 deletions

File tree

Lines changed: 70 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,70 @@
1-
within OpenIPSL.Examples.IEEE14.Generation_Groups;
2-
model GroupBus1 "69kV/615MVA generation unit connected to bus 1"
3-
extends OpenIPSL.Electrical.Essentials.pfComponent;
4-
parameter Real vf0=1.122656195484139 "Initial field voltage";
5-
parameter Real vref0=1.065622531687790 "Reference voltage AVR";
6-
OpenIPSL.Electrical.Controls.PSAT.AVR.AVRTypeII AVR1(
7-
Ta=0.02,
8-
Kf=0.002,
9-
Tf=1,
10-
Ke=1,
11-
Te=0.2,
12-
Tr=0.001,
13-
vrmax=7.32,
14-
vrmin=0,
15-
Ka=200,
16-
v0=v_0) annotation (Placement(transformation(extent={{-8,0},{12,20}})));
17-
OpenIPSL.Electrical.Machines.PSAT.Order5_Type2 Syn1(
18-
Sn=615000000,
19-
Vn=69000,
20-
V_b=V_b,
21-
fn=60,
22-
ra=0,
23-
xd=0.8979,
24-
xq=0.646,
25-
x1d=0.2998,
26-
x2d=0.23,
27-
x2q=0.4,
28-
T1d0=7.4,
29-
T2d0=0.03,
30-
T2q0=0.033,
31-
M=2*5.148,
32-
D=2,
33-
v_0=v_0,
34-
angle_0=angle_0,
35-
P_0=P_0,
36-
Q_0=Q_0) annotation (Placement(transformation(extent={{40,-20},{80,20}})));
37-
OpenIPSL.Interfaces.PwPin pwPin annotation (Placement(transformation(extent={{100,-10},
38-
{120,10}}), iconTransformation(extent={{100,-10},{120,10}})));
39-
equation
40-
connect(AVR1.vf, Syn1.vf) annotation (Line(points={{14,10},{36,10}},
41-
color={0,0,127}));
42-
connect(Syn1.v, AVR1.v) annotation (Line(points={{82,6},{88,6},{88,-30},{-16,-30},
43-
{-16,4},{-10,4}}, color={0,0,127}));
44-
connect(Syn1.p, pwPin) annotation (Line(points={{80,0},{110,0}},
45-
color={0,0,255}));
46-
connect(Syn1.pm0, Syn1.pm) annotation (Line(points={{44,-22},{44,-26},{28,-26},
47-
{28,-10},{36,-10}}, color={0,0,127}));
48-
connect(AVR1.vref0, AVR1.vref) annotation (Line(points={{2,22},{2,26},{-16,26},
49-
{-16,16},{-10,16}}, color={0,0,127}));
50-
connect(AVR1.vf0, Syn1.vf0) annotation (Line(points={{2,-2},{2,-12},{20,-12},{
51-
20,26},{44,26},{44,22}}, color={0,0,127}));
52-
annotation (
53-
Icon(coordinateSystem(extent={{-100,-100},{100,100}}, preserveAspectRatio=
54-
false),graphics={Text(
55-
extent={{-93,6},{-24,-12}},
56-
lineColor={0,0,255},
57-
textStyle={TextStyle.Italic},
58-
textString=""),
59-
Text(extent={{-100,-34},{100,-50}},
60-
lineColor={28,108,200},
61-
fillColor={0,0,255},
62-
fillPattern=FillPattern.Solid,
63-
textString="%name"),
64-
Line(points={{-60,-20},{-20,20},{20,-20},{60,20}},
65-
color={28,108,200}),Ellipse(extent={{-100,-100},{100,100}}, lineColor=
66-
{28,108,200})}),
67-
Documentation(info="<html>
68-
<p>69kV/615MVA Generation unit connected to bus 1, and composed of the following component models:</p>
69-
<ul>
70-
<li><strong>Machine</strong>: 5th order type 2, from PSAT.</li>
71-
<li><strong>Exciter</strong>: type II, from PSAT.</li>
72-
</ul>
73-
</html>"));
74-
end GroupBus1;
1+
within OpenIPSL.Examples.IEEE14.Generation_Groups;
2+
model GroupBus1 "69kV/615MVA generation unit connected to bus 1"
3+
extends OpenIPSL.Electrical.Essentials.pfComponent;
4+
parameter Real vf0=1.122656195484139 "Initial field voltage";
5+
parameter Real vref0=1.065622531687790 "Reference voltage AVR";
6+
OpenIPSL.Electrical.Controls.PSAT.AVR.AVRTypeII AVR1(
7+
Ta=0.02,
8+
Kf=0.002,
9+
Tf=1,
10+
Ke=1,
11+
Te=0.2,
12+
Tr=0.001,
13+
vrmax=7.32,
14+
vrmin=0,
15+
Ka=200,
16+
v0=v_0) annotation (Placement(transformation(extent={{-8,0},{12,20}})));
17+
OpenIPSL.Electrical.Machines.PSAT.Order5_Type2 Syn1(
18+
Sn=615000000,
19+
Vn=69000,
20+
V_b=V_b,
21+
fn=60,
22+
ra=0,
23+
xd=0.8979,
24+
xq=0.646,
25+
x1d=0.2998,
26+
x2d=0.23,
27+
x2q=0.4,
28+
T1d0=7.4,
29+
T2d0=0.03,
30+
T2q0=0.033,
31+
M=2*5.148,
32+
D=2,
33+
v_0=v_0,
34+
angle_0=angle_0,
35+
P_0=P_0,
36+
Q_0=Q_0) annotation (Placement(transformation(extent={{40,-20},{80,20}})));
37+
OpenIPSL.Interfaces.PwPin pwPin annotation (Placement(transformation(extent={{100,-10},
38+
{120,10}}), iconTransformation(extent={{100,-10},{120,10}})));
39+
equation
40+
connect(AVR1.vf, Syn1.vf) annotation (Line(points={{14,10},{36,10}},
41+
color={0,0,127}));
42+
connect(Syn1.v, AVR1.v) annotation (Line(points={{82,6},{88,6},{88,-30},{-16,-30},
43+
{-16,4},{-10,4}}, color={0,0,127}));
44+
connect(Syn1.p, pwPin) annotation (Line(points={{80,0},{110,0}},
45+
color={0,0,255}));
46+
connect(Syn1.pm0, Syn1.pm) annotation (Line(points={{44,-22},{44,-26},{28,-26},
47+
{28,-10},{36,-10}}, color={0,0,127}));
48+
connect(AVR1.vref0, AVR1.vref) annotation (Line(points={{2,22},{2,26},{-16,26},
49+
{-16,16},{-10,16}}, color={0,0,127}));
50+
connect(AVR1.vf0, Syn1.vf0) annotation (Line(points={{2,-2},{2,-12},{20,-12},{
51+
20,26},{44,26},{44,22}}, color={0,0,127}));
52+
annotation (
53+
Icon(coordinateSystem(extent={{-100,-100},{100,100}}, preserveAspectRatio=
54+
false),graphics={Text(lineColor = {0, 0, 255}, extent = {{-93, 6}, {-24, -12}}, textString = "", textStyle = {TextStyle.Italic}),
55+
Text(origin={-7.1542,-4.28575},
56+
lineColor = {28, 108, 200}, fillColor = {0, 0, 255},
57+
fillPattern = FillPattern.Solid,
58+
extent={{
59+
-85.8458,-19.7143},{95.1542,-31.7143}},textString = "%name"),
60+
Line(points={{-60,0},{-20,40},{20,0},{60,40}},
61+
color={28,108,200}),Ellipse(lineColor = {28, 108, 200}, extent={{-100, -100},{100,100}})}),
62+
Documentation(info="<html>
63+
<p>69kV/615MVA Generation unit connected to bus 1, and composed of the following component models:</p>
64+
<ul>
65+
<li><strong>Machine</strong>: 5th order type 2, from PSAT.</li>
66+
<li><strong>Exciter</strong>: type II, from PSAT.</li>
67+
</ul>
68+
</html>"),
69+
Diagram(coordinateSystem(extent = {{-20, 40}, {120, -40}})));
70+
end GroupBus1;
Lines changed: 76 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,76 @@
1-
within OpenIPSL.Examples.IEEE14.Generation_Groups;
2-
model GroupBus2 "69kV/60MVA generation unit connected to bus 2"
3-
extends OpenIPSL.Electrical.Essentials.pfComponent;
4-
parameter Real vf0=2.718126892405429 "Initial field voltage";
5-
parameter Real vref0=1.181847826013889 "Reference voltage AVR";
6-
OpenIPSL.Electrical.Controls.PSAT.AVR.AVRTypeII aVR1TypeII1(
7-
Ta=0.02,
8-
Tf=1,
9-
Ke=1,
10-
Tr=0.001,
11-
Ka=20,
12-
Kf=0.001,
13-
Te=1.98,
14-
v0=v_0,
15-
vrmin=0,
16-
vrmax=4.38)
17-
annotation (Placement(transformation(extent={{-6,0},{14,20}})));
18-
OpenIPSL.Electrical.Machines.PSAT.Order6 Syn3(
19-
Sn=60000000,
20-
Vn=69000,
21-
V_b=V_b,
22-
fn=60,
23-
ra=0.0031,
24-
xq=0.98,
25-
x1d=0.1850,
26-
x1q=0.36,
27-
x2d=0.13,
28-
x2q=0.13,
29-
T1d0=6.1,
30-
T1q0=0.3,
31-
T2q0=0.099,
32-
M=2*6.54,
33-
D=2,
34-
v_0=v_0,
35-
xd=1.05,
36-
angle_0=angle_0,
37-
P_0=P_0,
38-
Q_0=Q_0) annotation (Placement(transformation(extent={{42,-20},{82,20}})));
39-
OpenIPSL.Interfaces.PwPin pwPin annotation (Placement(transformation(extent={{100,-10},
40-
{120,10}}), iconTransformation(extent={{100,-10},{120,10}})));
41-
equation
42-
connect(aVR1TypeII1.vf, Syn3.vf) annotation (Line(points={{16,10},{38,10}},
43-
color={0,0,127}));
44-
connect(Syn3.v, aVR1TypeII1.v) annotation (Line(points={{84,6},{90,6},{90,-32},
45-
{-14,-32},{-14,4},{-8,4}}, color={
46-
0,0,127}));
47-
connect(Syn3.p, pwPin) annotation (Line(points={{82,0},{110,0}},
48-
color={0,0,255}));
49-
connect(Syn3.pm0, Syn3.pm) annotation (Line(points={{46,-22},{46,-28},{28,-28},
50-
{28,-10},{38,-10}}, color={0,0,127}));
51-
connect(Syn3.vf0, aVR1TypeII1.vf0) annotation (Line(points={{46,22},{46,28},{
52-
24,28},{24,-28},{4,-28},{4,-2}}, color={0,0,127}));
53-
connect(aVR1TypeII1.vref0, aVR1TypeII1.vref) annotation (Line(points={{4,22},{
54-
4,28},{-14,28},{-14,16},{-8,16}}, color={0,0,
55-
127}));
56-
annotation (
57-
Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-120,-100},{
58-
120,100}})),
59-
Icon(coordinateSystem(extent={{-100,-100},{100,100}}, preserveAspectRatio=
60-
false), graphics={
61-
Text(extent={{-100,-34},{100,-50}},
62-
lineColor={28,108,200},
63-
fillColor={0,0,255},
64-
fillPattern=FillPattern.Solid,
65-
textString="%name"),
66-
Line(points={{-60,-20},{-20,20},{20,-20},{60,20}},
67-
color={28,108,200}),Ellipse(extent={{-100,-100},{100,100}}, lineColor=
68-
{28,108,200})}),
69-
Documentation(info="<html>
70-
<p>69kV/60MVA Generation unit connected to bus 2, and composed of the following component models:</p>
71-
<ul>
72-
<li><strong>Machine</strong>: 6th order, from PSAT.</li>
73-
<li><strong>Exciter</strong>: type II, from PSAT.</li>
74-
</ul>
75-
</html>"));
76-
end GroupBus2;
1+
within OpenIPSL.Examples.IEEE14.Generation_Groups;
2+
model GroupBus2 "69kV/60MVA generation unit connected to bus 2"
3+
extends OpenIPSL.Electrical.Essentials.pfComponent;
4+
parameter Real vf0=2.718126892405429 "Initial field voltage";
5+
parameter Real vref0=1.181847826013889 "Reference voltage AVR";
6+
OpenIPSL.Electrical.Controls.PSAT.AVR.AVRTypeII aVR1TypeII1(
7+
Ta=0.02,
8+
Tf=1,
9+
Ke=1,
10+
Tr=0.001,
11+
Ka=20,
12+
Kf=0.001,
13+
Te=1.98,
14+
v0=v_0,
15+
vrmin=0,
16+
vrmax=4.38)
17+
annotation (Placement(transformation(extent={{-6,0},{14,20}})));
18+
OpenIPSL.Electrical.Machines.PSAT.Order6 Syn3(
19+
Sn=60000000,
20+
Vn=69000,
21+
V_b=V_b,
22+
fn=60,
23+
ra=0.0031,
24+
xq=0.98,
25+
x1d=0.1850,
26+
x1q=0.36,
27+
x2d=0.13,
28+
x2q=0.13,
29+
T1d0=6.1,
30+
T1q0=0.3,
31+
T2q0=0.099,
32+
M=2*6.54,
33+
D=2,
34+
v_0=v_0,
35+
xd=1.05,
36+
angle_0=angle_0,
37+
P_0=P_0,
38+
Q_0=Q_0) annotation (Placement(transformation(extent={{42,-20},{82,20}})));
39+
OpenIPSL.Interfaces.PwPin pwPin annotation (Placement(transformation(extent={{100,-10},
40+
{120,10}}), iconTransformation(extent={{100,-10},{120,10}})));
41+
equation
42+
connect(aVR1TypeII1.vf, Syn3.vf) annotation (Line(points={{16,10},{38,10}},
43+
color={0,0,127}));
44+
connect(Syn3.v, aVR1TypeII1.v) annotation (Line(points={{84,6},{90,6},{90,-32},
45+
{-14,-32},{-14,4},{-8,4}}, color={
46+
0,0,127}));
47+
connect(Syn3.p, pwPin) annotation (Line(points={{82,0},{110,0}},
48+
color={0,0,255}));
49+
connect(Syn3.pm0, Syn3.pm) annotation (Line(points={{46,-22},{46,-28},{28,-28},
50+
{28,-10},{38,-10}}, color={0,0,127}));
51+
connect(Syn3.vf0, aVR1TypeII1.vf0) annotation (Line(points={{46,22},{46,28},{
52+
24,28},{24,-28},{4,-28},{4,-2}}, color={0,0,127}));
53+
connect(aVR1TypeII1.vref0, aVR1TypeII1.vref) annotation (Line(points={{4,22},{
54+
4,28},{-14,28},{-14,16},{-8,16}}, color={0,0,
55+
127}));
56+
annotation (
57+
Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-20,-40},{120,
58+
40}})),
59+
Icon(coordinateSystem(extent={{-100,-100},{100,100}}, preserveAspectRatio=
60+
false), graphics={
61+
Text(extent={{-98,-20},{100,-38}},
62+
lineColor={28,108,200},
63+
fillColor={0,0,255},
64+
fillPattern=FillPattern.Solid,
65+
textString="%name"),
66+
Line(points={{-60,0},{-20,40},{20,0},{60,40}},
67+
color={28,108,200}),Ellipse(extent={{-100,-100},{100,100}}, lineColor=
68+
{28,108,200})}),
69+
Documentation(info="<html>
70+
<p>69kV/60MVA Generation unit connected to bus 2, and composed of the following component models:</p>
71+
<ul>
72+
<li><strong>Machine</strong>: 6th order, from PSAT.</li>
73+
<li><strong>Exciter</strong>: type II, from PSAT.</li>
74+
</ul>
75+
</html>"));
76+
end GroupBus2;

0 commit comments

Comments
 (0)