From 1c97ed9e9aaee9fabd45ca092eb14a8c9b84c023 Mon Sep 17 00:00:00 2001 From: Francesco Casella Date: Tue, 4 Mar 2025 18:39:37 +0100 Subject: [PATCH 1/2] Increased Ron and Goff to make the system more numerically robust --- .../Examples/BasicMachines/SynchronousMachines/SMPM_Braking.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Braking.mo b/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Braking.mo index 895ff1e907..0513da0463 100644 --- a/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Braking.mo +++ b/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Braking.mo @@ -69,7 +69,7 @@ model SMPM_Braking origin={-10,0}, extent={{-10,-10},{10,10}}, rotation=270))); - Modelica.Electrical.PowerConverters.ACDC.DiodeBridge2mPulse diodeBridge2mPulse(m=m) + Modelica.Electrical.PowerConverters.ACDC.DiodeBridge2mPulse diodeBridge2mPulse(m = m, RonDiode = 1e-4, GoffDiode = 1e-4) annotation (Placement(transformation( extent={{-10,10},{10,-10}}, rotation=90, From a55de879440c594b0547cceccf4bfe843241f1b9 Mon Sep 17 00:00:00 2001 From: Francesco Casella Date: Tue, 4 Mar 2025 18:41:48 +0100 Subject: [PATCH 2/2] Updated documentation --- .../BasicMachines/SynchronousMachines/SMPM_Braking.mo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Braking.mo b/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Braking.mo index 0513da0463..10c04e755f 100644 --- a/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Braking.mo +++ b/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Braking.mo @@ -149,13 +149,13 @@ equation connect(starM.pin_n, grounding.p) annotation (Line(points={{-70,-10},{-70,5},{-70,20}}, color={0,0,255})); annotation (experiment(StopTime=0.8, Interval=1E-4, Tolerance=1e-06), Documentation( - info=" + info= "

A synchronous machine with permanent magnets starts braking from nominal speed by feeding a diode bridge, which in turn feeds a braking resistor. Since induced voltage is reduced proportional to falling speed, the braking resistance is set proportional to speed to achieve constant current and torque.

-

Default machine parameters are used

+

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.

")); end SMPM_Braking;