Skip to content

Commit 6ed8d7d

Browse files
committed
Avoid generation of state events
1 parent c80ddbe commit 6ed8d7d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

OpenIPSL/Electrical/Loads/PSSE/Load_variation.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ protected
88
parameter Real PF=if q0 <= C.eps then 1 else p0/q0 "Ration between active and reactive power; Not Power Factor";
99
parameter Types.PerUnit d_Q=(p0 + d_P)/PF - q0;
1010
equation
11-
if time >= t1 and time <= t1 + d_t then
11+
if time >= t1 and time < t1 + d_t then
1212
kI*S_I.re*v + S_Y.re*v^2 + kP*(S_P.re + d_P) = p.vr*p.ir + p.vi*p.ii;
1313
kI*S_I.im*v + S_Y.im*v^2 + kP*(S_P.im + d_Q) = (-p.vr*p.ii) + p.vi*p.ir;
1414
else

OpenIPSL/Tests/BaseClasses/SMIBAddOn.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ partial model SMIBAddOn
3535
Electrical.Sources.VoltageSourceReImInput voltageSourceReImInput
3636
annotation (Placement(transformation(extent={{96,-10},{76,10}})));
3737
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}})));
38+
Modelica.Blocks.Sources.RealExpression realPart(y=if time < 50000 then 1 else 0.99) annotation (Placement(transformation(extent={{80,10},{100,30}})));
3939
equation
4040
connect(FAULT.p,pwLine. p)
4141
annotation (Line(points={{28,0},{36,0},{36,6},{41,6}}, color={0,0,255}));

0 commit comments

Comments
 (0)