@@ -4,6 +4,17 @@ package IEEE_CIGRE
44
55 package SCRX9
66 extends Modelica.Icons.ExamplesPackage;
7+ package ReadMe "Read this before running the model."
8+ extends Modelica.Icons.Information;
9+ annotation (Documentation(info="<html>
10+ <p>This model tests the implemenation of "IEEE ..." [refHao.]</p>
11+ <p><br>To run this model, first set the solver to "Euler" and the fixed time step to "0.005".</p>
12+ <p>In Dymola the experiment annotation shoul result in the additional attributes.</p>
13+ <p><br> __Dymola_fixedstepsize=0.005,</p>
14+ <p> __Dymola_Algorithm="Euler"</p>
15+ </html>" ));
16+ end ReadMe;
17+
718 model SCRX9GridFault
819 "SCRX9 exciter implemented using DLL is tested under grid fault."
920 extends OpenIPSL.Tests.BaseClasses.SMIB(pwFault(t1= 2 , t2= 2.15 ));
@@ -146,7 +157,9 @@ package IEEE_CIGRE
146157 Interval=0.005,
147158 Tolerance=1e-09,
148159 __Dymola_fixedstepsize=0.005,
149- __Dymola_Algorithm="Euler" ));
160+ __Dymola_Algorithm="Euler" ), Documentation(info="<html>
161+ <p>This model tests the implemenation of "IEEE ..." [refHao.]</p>
162+ </html>" ));
150163 end SCRX9GridFault;
151164
152165 end SCRX9;
@@ -307,73 +320,73 @@ package IEEE_CIGRE
307320 __Dymola_Algorithm="Rkfix4" ));
308321 end GFM_InitNoFault;
309322
310- model GFM_InitLine
311- "This GFM controller and Grid is initialized with initial condiction from termination of GFM_Test."
312- constant Real line_inductance = 0 ;
313- constant Real line_resistance = 0.1 ;
314323
315- OpenIPSL.Electrical.Controls.IEEE_CIGRE.GFM.GridComponents.GFM_GFL_IBR_Init_SS
316- gFM_GFL_IBR_Init_SS
317- annotation (Placement(transformation(rotation=0,
318- extent={{-62,-30},{-2,30}})));
319324
320- Modelica.Blocks.Sources.Constant Qref(k= 0 )
321- annotation (Placement(transformation(extent={{-92,-6},{-80,6}})));
322- Modelica.Blocks.Sources.Constant Vref(k= 1 )
323- annotation (Placement(transformation(extent={{-92,-24},{-80,-12}})));
324- Modelica.Blocks.Sources.Step Pref(
325- height= 0 ,
326- offset= 0.5 ,
327- startTime= 10 )
328- annotation (Placement(transformation(extent={{-92,12},{-80,24}})));
329- OpenIPSL.Electrical.Controls.IEEE_CIGRE.GFM.GridComponents.GridWithFault gridWithFault_Init(FaultVoltage= 0.5 , FaultTime= 1 )
330- annotation (Placement(
331- transformation(rotation=0, extent={{74,-30},{134,30}})));
332- Modelica.Electrical.Analog.Basic.Resistor resistor(R= line_resistance)
333- annotation (Placement(transformation(extent={{24,-10},{44,10}})));
334- Modelica.Electrical.Analog.Basic.Resistor resistor1(R= line_resistance)
335- annotation (Placement(transformation(extent={{24,-28},{44,-8}})));
336- Modelica.Electrical.Analog.Basic.Resistor resistor2(R= line_resistance)
337- annotation (Placement(transformation(extent={{24,8},{44,28}})));
338- equation
325+ end GFM;
339326
340- connect (Qref.y, gFM_GFL_IBR_Init_SS.Q_ref_pu)
341- annotation (Line(points={{-79.4,0},{-62,0}}, color={0,0,127}));
342- connect (Vref.y, gFM_GFL_IBR_Init_SS.V_ref_pu)
343- annotation (Line(points={{-79.4,-18},{-62,-18}}, color={0,0,127}));
344- connect (Pref.y, gFM_GFL_IBR_Init_SS.P_ref_pu)
345- annotation (Line(points={{-79.4,18},{-62,18}}, color={0,0,127}));
346- connect (gridWithFault_Init.p1, resistor.n)
347- annotation (Line(points={{74,0},{44,0}}, color={0,0,255}));
348- connect (gFM_GFL_IBR_Init_SS.n1, resistor.p)
349- annotation (Line(points={{-2,0},{24,0}}, color={0,0,255}));
350- connect (resistor2.p, gFM_GFL_IBR_Init_SS.n2)
351- annotation (Line(points={{24,18},{-2,18}}, color={0,0,255}));
352- connect (resistor2.n, gridWithFault_Init.p)
353- annotation (Line(points={{44,18},{74,18}}, color={0,0,255}));
354- connect (gFM_GFL_IBR_Init_SS.n, resistor1.p)
355- annotation (Line(points={{-2,-18},{24,-18}}, color={0,0,255}));
356- connect (resistor1.n, gridWithFault_Init.p2)
357- annotation (Line(points={{44,-18},{74,-18}}, color={0,0,255}));
358- annotation (Icon(coordinateSystem(preserveAspectRatio=false), graphics={
359- Ellipse(lineColor = {75,138,73},
360- fillColor={255,255,255},
361- fillPattern = FillPattern.Solid,
362- extent={{-100,-100},{100,100}}),
363- Polygon(lineColor = {0,0,255},
364- fillColor = {75,138,73},
365- pattern = LinePattern.None,
366- fillPattern = FillPattern.Solid,
367- points={{-36,60},{64,0},{-36,-60},{-36,60}})}), Diagram(
368- coordinateSystem(preserveAspectRatio=false)),
369- experiment(
370- StopTime=5,
371- Interval=1e-05,
372- __Dymola_fixedstepsize=1e-05,
373- __Dymola_Algorithm="Euler" ));
374- end GFM_InitLine;
327+ model GFM_InitLine
328+ "This GFM controller and Grid is initialized with initial condiction from termination of GFM_Test."
329+ constant Real line_inductance = 0 ;
330+ constant Real line_resistance = 0.1 ;
375331
332+ OpenIPSL.Electrical.Controls.IEEE_CIGRE.GFM.GridComponents.GFM_GFL_IBR_Init_SS
333+ gFM_GFL_IBR_Init_SS
334+ annotation (Placement(transformation(rotation=0,
335+ extent={{-62,-30},{-2,30}})));
376336
337+ Modelica.Blocks.Sources.Constant Qref(k= 0 )
338+ annotation (Placement(transformation(extent={{-92,-6},{-80,6}})));
339+ Modelica.Blocks.Sources.Constant Vref(k= 1 )
340+ annotation (Placement(transformation(extent={{-92,-24},{-80,-12}})));
341+ Modelica.Blocks.Sources.Step Pref(
342+ height= 0 ,
343+ offset= 0.5 ,
344+ startTime= 10 )
345+ annotation (Placement(transformation(extent={{-92,12},{-80,24}})));
346+ OpenIPSL.Electrical.Controls.IEEE_CIGRE.GFM.GridComponents.GridWithFault gridWithFault_Init(FaultVoltage= 0.5 , FaultTime= 1 )
347+ annotation (Placement(
348+ transformation(rotation=0, extent={{74,-30},{134,30}})));
349+ Modelica.Electrical.Analog.Basic.Resistor resistor(R= line_resistance)
350+ annotation (Placement(transformation(extent={{24,-10},{44,10}})));
351+ Modelica.Electrical.Analog.Basic.Resistor resistor1(R= line_resistance)
352+ annotation (Placement(transformation(extent={{24,-28},{44,-8}})));
353+ Modelica.Electrical.Analog.Basic.Resistor resistor2(R= line_resistance)
354+ annotation (Placement(transformation(extent={{24,8},{44,28}})));
355+ equation
377356
378- end GFM;
357+ connect (Qref.y, gFM_GFL_IBR_Init_SS.Q_ref_pu)
358+ annotation (Line(points={{-79.4,0},{-62,0}}, color={0,0,127}));
359+ connect (Vref.y, gFM_GFL_IBR_Init_SS.V_ref_pu)
360+ annotation (Line(points={{-79.4,-18},{-62,-18}}, color={0,0,127}));
361+ connect (Pref.y, gFM_GFL_IBR_Init_SS.P_ref_pu)
362+ annotation (Line(points={{-79.4,18},{-62,18}}, color={0,0,127}));
363+ connect (gridWithFault_Init.p1, resistor.n)
364+ annotation (Line(points={{74,0},{44,0}}, color={0,0,255}));
365+ connect (gFM_GFL_IBR_Init_SS.n1, resistor.p)
366+ annotation (Line(points={{-2,0},{24,0}}, color={0,0,255}));
367+ connect (resistor2.p, gFM_GFL_IBR_Init_SS.n2)
368+ annotation (Line(points={{24,18},{-2,18}}, color={0,0,255}));
369+ connect (resistor2.n, gridWithFault_Init.p)
370+ annotation (Line(points={{44,18},{74,18}}, color={0,0,255}));
371+ connect (gFM_GFL_IBR_Init_SS.n, resistor1.p)
372+ annotation (Line(points={{-2,-18},{24,-18}}, color={0,0,255}));
373+ connect (resistor1.n, gridWithFault_Init.p2)
374+ annotation (Line(points={{44,-18},{74,-18}}, color={0,0,255}));
375+ annotation (Icon(coordinateSystem(preserveAspectRatio=false), graphics={
376+ Ellipse(lineColor = {75,138,73},
377+ fillColor={255,255,255},
378+ fillPattern = FillPattern.Solid,
379+ extent={{-100,-100},{100,100}}),
380+ Polygon(lineColor = {0,0,255},
381+ fillColor = {75,138,73},
382+ pattern = LinePattern.None,
383+ fillPattern = FillPattern.Solid,
384+ points={{-36,60},{64,0},{-36,-60},{-36,60}})}), Diagram(
385+ coordinateSystem(preserveAspectRatio=false)),
386+ experiment(
387+ StopTime=5,
388+ Interval=1e-05,
389+ __Dymola_fixedstepsize=1e-05,
390+ __Dymola_Algorithm="Euler" ));
391+ end GFM_InitLine;
379392end IEEE_CIGRE;
0 commit comments