@@ -34,18 +34,15 @@ partial model SMIBAddOn
3434 annotation (Placement(transformation(extent={{60,-10},{80,10}})));
3535 Electrical.Sources.VoltageSourceReImInput voltageSourceReImInput
3636 annotation (Placement(transformation(extent={{96,-10},{76,10}})));
37- Modelica.Blocks.Sources.RealExpression realExpression
38- annotation (Placement(transformation(extent={{130,-14},{110,6}})));
39- Modelica.Blocks.Sources.RealExpression realExpression1(y= if time < = 50000
40- then 1 else 0.99 )
41- annotation (Placement(transformation(extent={{130,10},{110,30}})));
37+ Modelica.Blocks.Sources.RealExpression imagPart annotation (Placement(transformation(extent={{80,-30},{100,-10}})));
38+ Modelica.Blocks.Sources.RealExpression realPart(y= if time < = 50000 then 1 else 0.99 ) annotation (Placement(transformation(extent={{80,10},{100,30}})));
4239equation
4340 connect (FAULT.p,pwLine. p)
4441 annotation (Line(points={{28,0},{36,0},{36,6},{41,6}}, color={0,0,255}));
4542 connect (pwLine1.p,pwLine. p) annotation (Line(points={{41,-6},{36,-6},{36,6},
4643 {41,6}}, color={0,0,255}));
47- connect (pwFault.p,FAULT. p) annotation (Line(points={{40.6667,-28},{32,-28},{
48- 32,0},{28,0}}, color={0,0,255}));
44+ connect (pwFault.p,FAULT. p) annotation (Line(points={{40.6667,-28},{32,-28},{32,0},{28,0}},
45+ color={0,0,255}));
4946 connect (pwLine.n,GEN2. p)
5047 annotation (Line(points={{59,6},{64,6},{64,0},{70,0}}, color={0,0,255}));
5148 connect (pwLine1.n,GEN2. p) annotation (Line(points={{59,-6},{64,-6},{64,0},{
@@ -56,9 +53,6 @@ equation
5653 annotation (Line(points={{0,0},{5,0}}, color={0,0,255}));
5754 connect (voltageSourceReImInput.p, GEN2.p)
5855 annotation (Line(points={{75,0},{70,0}}, color={0,0,255}));
59- connect (voltageSourceReImInput.vIm, realExpression.y)
60- annotation (Line(points={{98,-4},{109,-4}}, color={0,0,127}));
61- connect (realExpression1.y, voltageSourceReImInput.vRe) annotation (Line(
62- points={{109,20},{104,20},{104,12},{106,12},{106,4},{98,4}}, color={0,0,
63- 127}));
56+ connect (voltageSourceReImInput.vIm, imagPart.y) annotation (Line(points={{98,-4},{104,-4},{104,-20},{101,-20}}, color={0,0,127}));
57+ connect (realPart.y, voltageSourceReImInput.vRe) annotation (Line(points={{101,20},{104,20},{104,4},{98,4}}, color={0,0,127}));
6458end SMIBAddOn;
0 commit comments