Skip to content

Commit 1d74ace

Browse files
authored
Attempt to fix #4559 by increasing RonDiode and GoffDiode (#4562)
* Increased Ron and Goff to make the system more numerically robust * Updated documentation
1 parent 7ef57dd commit 1d74ace

File tree

1 file changed

+3
-3
lines changed
  • Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines

1 file changed

+3
-3
lines changed

Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Braking.mo

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ model SMPM_Braking
6969
origin={-10,0},
7070
extent={{-10,-10},{10,10}},
7171
rotation=270)));
72-
Modelica.Electrical.PowerConverters.ACDC.DiodeBridge2mPulse diodeBridge2mPulse(m=m)
72+
Modelica.Electrical.PowerConverters.ACDC.DiodeBridge2mPulse diodeBridge2mPulse(m = m, RonDiode = 1e-4, GoffDiode = 1e-4)
7373
annotation (Placement(transformation(
7474
extent={{-10,10},{10,-10}},
7575
rotation=90,
@@ -149,13 +149,13 @@ equation
149149
connect(starM.pin_n, grounding.p)
150150
annotation (Line(points={{-70,-10},{-70,5},{-70,20}}, color={0,0,255}));
151151
annotation (experiment(StopTime=0.8, Interval=1E-4, Tolerance=1e-06), Documentation(
152-
info="<html>
152+
info= "<html>
153153
<p>
154154
A synchronous machine with permanent magnets starts braking from nominal speed by feeding a diode bridge,
155155
which in turn feeds a braking resistor.
156156
Since induced voltage is reduced proportional to falling speed, the braking resistance is set proportional
157157
to speed to achieve constant current and torque.</p>
158158
159-
<p>Default machine parameters are used</p>
159+
<p>Default machine parameters are used. The RonDiode and GoffDiode parameters of the diode bridge are both increased to 1e-4 to avoid numerical issues when the variable resistor voltage gets close to zero.</p>
160160
</html>"));
161161
end SMPM_Braking;

0 commit comments

Comments
 (0)