From 6a3298c9bd3fa621edb2d660d58efd743736ec1a Mon Sep 17 00:00:00 2001 From: Dietmar Winkler Date: Thu, 14 Nov 2024 01:03:05 +0100 Subject: [PATCH] Whitespace clean up --- .../PowerFactory/WECC/PVD1/Controller.mo | 80 +++++++++---------- .../WECC/PVD1/GenerationTripping.mo | 4 +- .../PowerFactory/WECC/PVD1/PQPriority.mo | 20 ++--- .../PowerFactory/WECC/PVD1/Plant_PVD1.mo | 14 ++-- 4 files changed, 59 insertions(+), 59 deletions(-) diff --git a/OpenIPSL/Electrical/Solar/PowerFactory/WECC/PVD1/Controller.mo b/OpenIPSL/Electrical/Solar/PowerFactory/WECC/PVD1/Controller.mo index 71dcb634d..b6f1e0482 100644 --- a/OpenIPSL/Electrical/Solar/PowerFactory/WECC/PVD1/Controller.mo +++ b/OpenIPSL/Electrical/Solar/PowerFactory/WECC/PVD1/Controller.mo @@ -40,7 +40,7 @@ model Controller Placement(transformation(origin = {182, 90}, extent = {{-10, -10}, {10, 10}}))); Modelica.Blocks.Continuous.FirstOrder QCurrentController(T = Tg, initType = Modelica.Blocks.Types.Init.InitialOutput, k = -1, y_start = -Qref / u_0) annotation ( Placement(transformation(origin = {182, -70}, extent = {{-10, -10}, {10, 10}}))); - Modelica.Blocks.Interfaces.RealInput freq annotation (Placement(transformation(extent={{-240,130},{-200,170}}), iconTransformation(origin={-120,-60}, extent={{-20,-20},{20,20}}))); + Modelica.Blocks.Interfaces.RealInput freq annotation (Placement(transformation(extent={{-240,130},{-200,170}}), iconTransformation(origin={-120,-60}, extent={{-20,-20},{20,20}}))); Modelica.Blocks.Sources.Constant freq_ref(k = 1) annotation ( Placement(transformation(origin = {-182, 110}, extent = {{-10, -10}, {10, 10}}))); Modelica.Blocks.Math.Add add2(k1 = -1) annotation ( @@ -65,9 +65,9 @@ model Controller Modelica.Blocks.Sources.Constant reactive_power_reference(k = Qref) annotation ( Placement(transformation(origin = {-70, -110}, extent = {{-10, -10}, {10, 10}}))); Modelica.Blocks.Interfaces.RealOutput Ip annotation ( - Placement(transformation(origin = {210, 90}, extent = {{-10, -10}, {10, 10}}), iconTransformation(origin={110,60}, extent = {{-10, -10}, {10, 10}}))); + Placement(transformation(origin = {210, 90}, extent = {{-10, -10}, {10, 10}}), iconTransformation(origin={110,60}, extent = {{-10, -10}, {10, 10}}))); Modelica.Blocks.Interfaces.RealOutput Iq annotation ( - Placement(transformation(origin = {210, -70}, extent = {{-10, -10}, {10, 10}}), iconTransformation(origin={110,-60}, extent = {{-10, -10}, {10, 10}}))); + Placement(transformation(origin = {210, -70}, extent = {{-10, -10}, {10, 10}}), iconTransformation(origin={110,-60}, extent = {{-10, -10}, {10, 10}}))); Modelica.Blocks.Math.Add add4 annotation ( Placement(transformation(origin = {-50, 50}, extent = {{-10, -10}, {10, 10}}))); parameter Types.PerUnit Qref; @@ -89,23 +89,23 @@ model Controller Placement(transformation(origin = {150, -70}, extent = {{-10, -10}, {10, 10}}))); equation connect(It, compensation.u) annotation ( - Line(points={{-220,-70},{-162,-70}}, color = {0, 0, 127})); + Line(points={{-220,-70},{-162,-70}}, color = {0, 0, 127})); connect(compensation.y, add.u2) annotation ( Line(points = {{-139, -70}, {-130.5, -70}, {-130.5, -76}, {-122, -76}}, color = {0, 0, 127})); connect(Vt, add.u1) annotation ( - Line(points={{-220,-10},{-128,-10},{-128,-63},{-122,-63},{-122,-64}}, color = {0, 0, 127})); + Line(points={{-220,-10},{-128,-10},{-128,-63},{-122,-63},{-122,-64}}, color = {0, 0, 127})); connect(numerical_limit.u, Vt) annotation ( - Line(points={{-82,-10},{-220,-10}}, color = {0, 0, 127})); + Line(points={{-82,-10},{-220,-10}}, color = {0, 0, 127})); connect(numerical_limit.y, division.u2) annotation ( Line(points = {{-59, -10}, {-8, -10}, {-8, -36}, {78, -36}}, color = {0, 0, 127})); connect(division.y, qppriority.Iq) annotation ( - Line(points={{101,-30},{106,-30},{106,-5},{118,-5}}, color = {0, 0, 127})); + Line(points={{101,-30},{106,-30},{106,-5},{118,-5}}, color = {0, 0, 127})); connect(division1.u2, numerical_limit.y) annotation ( Line(points = {{78, 24}, {-8, 24}, {-8, -10}, {-59, -10}}, color = {0, 0, 127})); connect(division1.y, qppriority.Ip) annotation ( - Line(points={{101,30},{106,30},{106,5},{118,5}}, color = {0, 0, 127})); + Line(points={{101,30},{106,30},{106,5},{118,5}}, color = {0, 0, 127})); connect(freq, add2.u1) annotation ( - Line(points={{-220,150},{-142,150}}, color = {0, 0, 127})); + Line(points={{-220,150},{-142,150}}, color = {0, 0, 127})); connect(deadZone.y, frequency_droop.u) annotation ( Line(points = {{-79, 144}, {-62, 144}}, color = {0, 0, 127})); connect(freq_ref.y, add2.u2) annotation ( @@ -129,66 +129,66 @@ equation connect(PCurrentController.y, Ip) annotation ( Line(points = {{193, 90}, {210, 90}}, color = {0, 0, 127})); connect(active_power_reference.y, add4.u2) annotation ( - Line(points={{-139,30},{-80,30},{-80,44},{-62,44},{-62,44}}, color = {0, 0, 127})); + Line(points={{-139,30},{-80,30},{-80,44},{-62,44},{-62,44}}, color = {0, 0, 127})); connect(frequency_droop.y, add4.u1) annotation ( Line(points = {{-39, 144}, {-34, 144}, {-34, 104}, {-80, 104}, {-80, 56}, {-62, 56}}, color = {0, 0, 127})); connect(add4.y, division1.u1) annotation ( - Line(points={{-39,50},{52,50},{52,36},{78,36},{78,36}}, color = {0, 0, 127})); + Line(points={{-39,50},{52,50},{52,36},{78,36},{78,36}}, color = {0, 0, 127})); connect(product1.y, PCurrentController.u) annotation ( - Line(points={{161,90},{170,90},{170,90},{170,90}}, color = {0, 0, 127})); + Line(points={{161,90},{170,90},{170,90},{170,90}}, color = {0, 0, 127})); connect(product1.u2, qppriority.Ipcmd) annotation ( - Line(points={{138,84},{126,84},{126,20},{144,20},{144,6},{141,6},{141,5}}, color = {0, 0, 127})); + Line(points={{138,84},{126,84},{126,20},{144,20},{144,6},{141,6},{141,5}}, color = {0, 0, 127})); connect(frequency_tripping.TrpLow, product.u1) annotation ( - Line(points={{41,155},{58,155},{58,156},{58,156}}, color = {0, 0, 127})); + Line(points={{41,155},{58,155},{58,156},{58,156}}, color = {0, 0, 127})); connect(frequency_tripping.TrpHigh, product.u2) annotation ( - Line(points={{41,145},{58,145},{58,144},{58,144}}, color = {0, 0, 127})); + Line(points={{41,145},{58,145},{58,144},{58,144}}, color = {0, 0, 127})); connect(frequency_tripping.u, freq) annotation ( - Line(points={{18,150},{0,150},{0,184},{-188,184},{-188,150},{-220,150}}, color = {0, 0, 127})); + Line(points={{18,150},{0,150},{0,184},{-188,184},{-188,150},{-220,150}}, color = {0, 0, 127})); connect(voltage_tripping.u, Vt) annotation ( - Line(points={{18,110},{-128,110},{-128,-10},{-220,-10}}, color = {0, 0, 127})); + Line(points={{18,110},{-128,110},{-128,-10},{-220,-10}}, color = {0, 0, 127})); connect(voltage_tripping.TrpLow, product2.u1) annotation ( - Line(points={{41,115},{58,115},{58,116},{58,116}}, color = {0, 0, 127})); + Line(points={{41,115},{58,115},{58,116},{58,116}}, color = {0, 0, 127})); connect(voltage_tripping.TrpHigh, product2.u2) annotation ( - Line(points={{41,105},{56,105},{56,104},{58,104}}, color = {0, 0, 127})); + Line(points={{41,105},{56,105},{56,104},{58,104}}, color = {0, 0, 127})); connect(product.y, product3.u1) annotation ( - Line(points={{81,150},{90,150},{90,136},{98,136},{98,136}}, color = {0, 0, 127})); + Line(points={{81,150},{90,150},{90,136},{98,136},{98,136}}, color = {0, 0, 127})); connect(product2.y, product3.u2) annotation ( - Line(points={{81,110},{90,110},{90,124},{98,124},{98,124}}, color = {0, 0, 127})); + Line(points={{81,110},{90,110},{90,124},{98,124},{98,124}}, color = {0, 0, 127})); connect(product3.y, product1.u1) annotation ( - Line(points={{121,130},{128,130},{128,96},{138,96},{138,96}}, color = {0, 0, 127})); + Line(points={{121,130},{128,130},{128,96},{138,96},{138,96}}, color = {0, 0, 127})); connect(product4.y, QCurrentController.u) annotation ( - Line(points={{161,-70},{168,-70},{168,-70},{170,-70}}, color = {0, 0, 127})); + Line(points={{161,-70},{168,-70},{168,-70},{170,-70}}, color = {0, 0, 127})); connect(qppriority.Iqcmd, product4.u1) annotation ( - Line(points={{141,-5},{144,-5},{144,-52},{130,-52},{130,-64},{138,-64},{138,-64}}, color = {0, 0, 127})); + Line(points={{141,-5},{144,-5},{144,-52},{130,-52},{130,-64},{138,-64},{138,-64}}, color = {0, 0, 127})); connect(product4.u2, product3.y) annotation ( - Line(points={{138,-76},{112,-76},{112,100},{128,100},{128,130},{121,130},{121,130}}, color = {0, 0, 127})); + Line(points={{138,-76},{112,-76},{112,100},{128,100},{128,130},{121,130},{121,130}}, color = {0, 0, 127})); annotation ( - Diagram(coordinateSystem(extent = {{-200, -200}, {200, 200}}, initialScale = 0.05), graphics={ Text(origin = {-186, 179}, lineColor = {255, 0, 0}, extent = {{-8, 3}, {76, -9}}, textString = "Frequency filtering has to be done outside of this block", horizontalAlignment = TextAlignment.Left), Rectangle(origin = {-67, 141}, lineColor = {0, 170, 0}, pattern = LinePattern.Dash, lineThickness = 1, extent = {{-85, 21}, {51, -45}}), Text(origin = {-186, 179}, lineColor = {255, 0, 0}, extent = {{-8, 3}, {76, -9}}, textString = "Frequency filtering has to be done outside of this block", - horizontalAlignment = TextAlignment.Left), Text(origin = {-186, 179}, lineColor = {255, 0, 0}, extent = {{-8, 3}, {76, -9}}, textString = "Frequency filtering has to be done outside of this block", - horizontalAlignment = TextAlignment.Left), Text(origin = {-92, 171}, lineColor = {0, 170, 0}, - lineThickness = 1, extent = {{-8, 3}, {76, -9}}, textString = "Underfrequency Droop Control", - horizontalAlignment = TextAlignment.Left), Rectangle(origin = {-67, 141}, lineColor = {0, 170, 0}, pattern = LinePattern.Dash, - lineThickness = 1, extent = {{-85, 21}, {51, -45}}), Rectangle(origin = {-5, -71}, lineColor = {0, 170, 0}, pattern = LinePattern.Dash, - lineThickness = 1, extent = {{-85, 21}, {79, -57}}), Text(origin = {-120, -41}, lineColor = {0, 170, 0}, - lineThickness = 1, extent = {{30, -1}, {76, -9}}, textString = "Volt/Var Control", - horizontalAlignment = TextAlignment.Left)}), - Icon(graphics={ Rectangle(origin={-24.9099,25}, fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent={{-74.3452,75},{124.91,-125}}), + Diagram(coordinateSystem(extent = {{-200, -200}, {200, 200}}, initialScale = 0.05), graphics={ Text(origin = {-186, 179}, lineColor = {255, 0, 0}, extent = {{-8, 3}, {76, -9}}, textString = "Frequency filtering has to be done outside of this block", horizontalAlignment = TextAlignment.Left), Rectangle(origin = {-67, 141}, lineColor = {0, 170, 0}, pattern = LinePattern.Dash, lineThickness = 1, extent = {{-85, 21}, {51, -45}}), Text(origin = {-186, 179}, lineColor = {255, 0, 0}, extent = {{-8, 3}, {76, -9}}, textString = "Frequency filtering has to be done outside of this block", + horizontalAlignment = TextAlignment.Left), Text(origin = {-186, 179}, lineColor = {255, 0, 0}, extent = {{-8, 3}, {76, -9}}, textString = "Frequency filtering has to be done outside of this block", + horizontalAlignment = TextAlignment.Left), Text(origin = {-92, 171}, lineColor = {0, 170, 0}, + lineThickness = 1, extent = {{-8, 3}, {76, -9}}, textString = "Underfrequency Droop Control", + horizontalAlignment = TextAlignment.Left), Rectangle(origin = {-67, 141}, lineColor = {0, 170, 0}, pattern = LinePattern.Dash, + lineThickness = 1, extent = {{-85, 21}, {51, -45}}), Rectangle(origin = {-5, -71}, lineColor = {0, 170, 0}, pattern = LinePattern.Dash, + lineThickness = 1, extent = {{-85, 21}, {79, -57}}), Text(origin = {-120, -41}, lineColor = {0, 170, 0}, + lineThickness = 1, extent = {{30, -1}, {76, -9}}, textString = "Volt/Var Control", + horizontalAlignment = TextAlignment.Left)}), + Icon(graphics={ Rectangle(origin={-24.9099,25}, fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent={{-74.3452,75},{124.91,-125}}), Text( extent={{-100,100},{100,70}}, textString="%name", - lineColor={0,0,0}), Text( + lineColor={0,0,0}), Text( extent={{-96,66},{-78,48}}, lineColor={0,0,0}, - textString="Vt"), Text( + textString="Vt"), Text( extent={{-98,8},{-78,-12}}, lineColor={0,0,0}, - textString="It"), Text( + textString="It"), Text( extent={{-96,-52},{-76,-72}}, lineColor={0,0,0}, - textString="freq"), Text( + textString="freq"), Text( extent={{70,70},{90,50}}, lineColor={0,0,0}, - textString="Ip"), Text( + textString="Ip"), Text( extent={{70,-52},{90,-72}}, lineColor={0,0,0}, textString="Iq")}), diff --git a/OpenIPSL/Electrical/Solar/PowerFactory/WECC/PVD1/GenerationTripping.mo b/OpenIPSL/Electrical/Solar/PowerFactory/WECC/PVD1/GenerationTripping.mo index a0a153341..38cf4aa7b 100644 --- a/OpenIPSL/Electrical/Solar/PowerFactory/WECC/PVD1/GenerationTripping.mo +++ b/OpenIPSL/Electrical/Solar/PowerFactory/WECC/PVD1/GenerationTripping.mo @@ -43,7 +43,7 @@ equation reinit(umax, Lv2); end when; annotation ( - Icon(graphics={ Rectangle(fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent={{-100,100},{100,-100}}), Text(origin={32,83}, extent = {{-132, 7}, {68, -13}}, + Icon(graphics={ Rectangle(fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent={{-100,100},{100,-100}}), Text(origin={32,83}, extent = {{-132, 7}, {68, -13}}, textString="%name", - lineColor={0,0,0}), Text(extent={{38,59},{98,40}}, textString="TripLow"), Text(extent={{38,-40},{98,-60}}, textString="TripHigh"), Text(extent={{-96,9},{-56,-10}}, textString="Input")})); + lineColor={0,0,0}), Text(extent={{38,59},{98,40}}, textString="TripLow"), Text(extent={{38,-40},{98,-60}}, textString="TripHigh"), Text(extent={{-96,9},{-56,-10}}, textString="Input")})); end GenerationTripping; diff --git a/OpenIPSL/Electrical/Solar/PowerFactory/WECC/PVD1/PQPriority.mo b/OpenIPSL/Electrical/Solar/PowerFactory/WECC/PVD1/PQPriority.mo index 0d7104e32..097897554 100644 --- a/OpenIPSL/Electrical/Solar/PowerFactory/WECC/PVD1/PQPriority.mo +++ b/OpenIPSL/Electrical/Solar/PowerFactory/WECC/PVD1/PQPriority.mo @@ -3,17 +3,17 @@ model PQPriority "P-Q priority module" parameter Boolean PqFlag "Priority on current limit flag: 1=P prio.; 0 = Q prio."; parameter Types.PerUnit Imax "Maximum allowable total converter current"; Modelica.Blocks.Interfaces.RealInput Ip annotation ( - Placement(transformation(origin={-120,50}, extent = {{-20, -20}, {20, 20}}), iconTransformation(origin={-120,50}, extent = {{-20, -20}, {20, 20}}))); + Placement(transformation(origin={-120,50}, extent = {{-20, -20}, {20, 20}}), iconTransformation(origin={-120,50}, extent = {{-20, -20}, {20, 20}}))); Modelica.Blocks.Interfaces.RealInput Iq annotation ( - Placement(transformation(origin={-120,-50}, extent = {{-20, -20}, {20, 20}}), iconTransformation(origin={-120,-50}, extent = {{-20, -20}, {20, 20}}))); + Placement(transformation(origin={-120,-50}, extent = {{-20, -20}, {20, 20}}), iconTransformation(origin={-120,-50}, extent = {{-20, -20}, {20, 20}}))); Modelica.Blocks.Interfaces.RealOutput Iqcmd annotation ( Placement(transformation(origin = {110, -50}, extent = {{-10, -10}, {10, 10}}), iconTransformation(origin = {110, -50}, extent = {{-10, -10}, {10, 10}}))); Modelica.Blocks.Interfaces.RealOutput Ipcmd annotation ( Placement(transformation(origin = {110, 50}, extent = {{-10, -10}, {10, 10}}), iconTransformation(origin = {110, 50}, extent = {{-10, -10}, {10, 10}}))); Modelica.Blocks.Nonlinear.VariableLimiter IpLimiter annotation ( - Placement(transformation(origin={20,50}, extent = {{-10, -10}, {10, 10}}))); + Placement(transformation(origin={20,50}, extent = {{-10, -10}, {10, 10}}))); Modelica.Blocks.Nonlinear.VariableLimiter IqLimiter annotation ( - Placement(transformation(origin={20,-50}, extent = {{-10, -10}, {10, 10}}))); + Placement(transformation(origin={20,-50}, extent = {{-10, -10}, {10, 10}}))); Modelica.Blocks.Sources.RealExpression Imax_(y=Imax) annotation (Placement(transformation(extent={{102,-10},{82,10}}))); Modelica.Blocks.Math.Feedback diffQ annotation (Placement(transformation(extent={{20,-20},{0,0}}))); Modelica.Blocks.Math.Product Ipcmd2 annotation (Placement(transformation(extent={{60,20},{40,40}}))); @@ -30,13 +30,13 @@ model PQPriority "P-Q priority module" Modelica.Blocks.Math.Feedback diffP annotation (Placement(transformation(extent={{20,20},{0,0}}))); equation connect(IqLimiter.y, Iqcmd) annotation ( - Line(points={{31,-50},{110,-50}}, color = {0, 0, 127})); + Line(points={{31,-50},{110,-50}}, color = {0, 0, 127})); connect(IpLimiter.y, Ipcmd) annotation ( - Line(points={{31,50},{110,50}}, color = {0, 0, 127})); + Line(points={{31,50},{110,50}}, color = {0, 0, 127})); connect(Ip, IpLimiter.u) annotation ( - Line(points={{-120,50},{8,50}}, color = {0, 0, 127})); + Line(points={{-120,50},{8,50}}, color = {0, 0, 127})); connect(Iq, IqLimiter.u) annotation ( - Line(points={{-120,-50},{8,-50}}, color = {0, 0, 127})); + Line(points={{-120,-50},{8,-50}}, color = {0, 0, 127})); connect(IpLimiter.y, Ipcmd2.u2) annotation (Line(points={{31,50},{68,50},{68,24},{62,24}}, color={0,0,127})); connect(Iqcmd2.u1, IqLimiter.y) annotation (Line(points={{62,-36},{68,-36},{68,-50},{31,-50}}, color={0,0,127})); @@ -60,8 +60,8 @@ equation connect(diffP.u2, Ipcmd2.y) annotation (Line(points={{10,18},{10,30},{39,30}}, color={0,0,127})); connect(diffP.y, Iqmax_.u1) annotation (Line(points={{1,10},{-20,10},{-20,0},{-56,0},{-56,-22},{-50,-22}}, color={0,0,127})); annotation ( - Icon(graphics={ Rectangle(fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent = {{-100, 100}, {100, -100}}), Text(origin={20,90}, extent={{-120,0},{80,-20}}, + Icon(graphics={ Rectangle(fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent = {{-100, 100}, {100, -100}}), Text(origin={20,90}, extent={{-120,0},{80,-20}}, textString="%name", - lineColor={0,0,0}), Text(extent={{-100,60},{-60,40}}, textString="Ipref"), Text(extent={{-100,-40},{-60,-60}}, textString="Iqref"), Text(extent={{58,60},{98,40}}, textString="Ipcmd"), Text(extent={{58,-40},{98,-60}}, + lineColor={0,0,0}), Text(extent={{-100,60},{-60,40}}, textString="Ipref"), Text(extent={{-100,-40},{-60,-60}}, textString="Iqref"), Text(extent={{58,60},{98,40}}, textString="Ipcmd"), Text(extent={{58,-40},{98,-60}}, textString="Iqcmd")})); end PQPriority; diff --git a/OpenIPSL/Electrical/Solar/PowerFactory/WECC/PVD1/Plant_PVD1.mo b/OpenIPSL/Electrical/Solar/PowerFactory/WECC/PVD1/Plant_PVD1.mo index 87b180ab6..062c24558 100644 --- a/OpenIPSL/Electrical/Solar/PowerFactory/WECC/PVD1/Plant_PVD1.mo +++ b/OpenIPSL/Electrical/Solar/PowerFactory/WECC/PVD1/Plant_PVD1.mo @@ -63,21 +63,21 @@ model Plant_PVD1 OpenIPSL.Interfaces.PwPin p annotation ( Placement(transformation(origin = {110, 0}, extent = {{-10, -10}, {10, 10}}), iconTransformation(origin = {110, 0}, extent = {{-10, -10}, {10, 10}}))); OpenIPSL.Electrical.Solar.PowerFactory.WECC.PVD1.Controller pvd1(Ddn = Ddn, Ft0 = Ft0, Ft1 = Ft1, Ft2 = Ft2, Ft3 = Ft3, Imax = Imax, PqFlag = PqFlag, Pref = P_0 / M_b, Qmn = Qmn, Qmx = Qmx, Qref = Q_0 / M_b, Tg = Tg, Vt0 = Vt0, Vt1 = Vt1, Vt2 = Vt2, Vt3 = Vt3, Xc = Xc, dqdv = dqdv, fdbd = fdbd, fr_recov = fr_recov, u_0 = v_0, v0 = v0, v1 = v1, vr_recov = vr_recov) annotation ( - Placement(transformation(origin={-40,0}, extent = {{-20, -20}, {20, 20}}))); + Placement(transformation(origin={-40,0}, extent = {{-20, -20}, {20, 20}}))); OpenIPSL.Electrical.Solar.PowerFactory.General.ElmGenstat static_generator(M_b = M_b, angle_0 = angle_0, pll_connected = false, v_0 = v_0) annotation ( - Placement(transformation(origin={40,0}, extent={{-20,-20},{20,20}}))); + Placement(transformation(origin={40,0}, extent={{-20,-20},{20,20}}))); OpenIPSL.Electrical.Solar.PowerFactory.General.StaVmea staVmea(angle_0=angle_0, fn=fn) annotation (Placement(transformation(origin={40,-60}, extent={{20,-20},{-20,20}}))); equation connect(static_generator.p, p) annotation ( - Line(points={{62,0},{110,0}}, color = {0, 0, 255})); + Line(points={{62,0},{110,0}}, color = {0, 0, 255})); connect(pvd1.Ip, static_generator.id_ref) annotation ( - Line(points={{-18,12},{0,12},{0,16},{22,16}}, color = {0, 0, 127})); + Line(points={{-18,12},{0,12},{0,16},{22,16}}, color = {0, 0, 127})); connect(pvd1.Iq, static_generator.iq_ref) annotation ( - Line(points={{-18,-12},{0,-12},{0,8},{22,8}}, color = {0, 0, 127})); + Line(points={{-18,-12},{0,-12},{0,8},{22,8}}, color = {0, 0, 127})); connect(static_generator.v, pvd1.Vt) annotation ( - Line(points={{62,16},{70,16},{70,40},{-72,40},{-72,14},{-68,14},{-68,12},{-64,12}}, color = {0, 0, 127})); + Line(points={{62,16},{70,16},{70,40},{-72,40},{-72,14},{-68,14},{-68,12},{-64,12}}, color = {0, 0, 127})); connect(static_generator.i, pvd1.It) annotation ( - Line(points={{62,8},{80,8},{80,46},{-80,46},{-80,0},{-64,0}}, color = {0, 0, 127})); + Line(points={{62,8},{80,8},{80,46},{-80,46},{-80,0},{-64,0}}, color = {0, 0, 127})); connect(staVmea.p, p) annotation (Line(points={{62,-60},{80,-60},{80,0},{110,0}}, color={0,0,255})); connect(staVmea.fe, pvd1.freq) annotation (Line(points={{18,-72},{-80,-72},{-80,-12},{-64,-12}}, color={0,0,127})); annotation (Icon(graphics={