|
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; |
0 commit comments