Skip to content

Commit 3b65e6b

Browse files
CI Test for PR modelica#4706
1 parent 66e8dc4 commit 3b65e6b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Modelica/Electrical/Analog/Examples/OvervoltageProtection.mo

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ model OvervoltageProtection "Example for Zener diodes"
2323
extent={{-10,-10},{10,10}},
2424
rotation=270,
2525
origin={62,4})));
26-
Semiconductors.ZDiode zDiode annotation (Placement(transformation(
26+
Semiconductors.ZDiode zDiode2 annotation (Placement(transformation(
2727
extent={{-10,-10},{10,10}},
2828
rotation=90,
2929
origin={-20,-20})));
@@ -38,22 +38,22 @@ equation
3838
points={{26,14},{62,14}}, color={0,0,255}));
3939
connect(RL.n, CL.n) annotation (Line(
4040
points={{26,-6},{62,-6}}, color={0,0,255}));
41-
connect(sineVoltage.n, zDiode.p) annotation (Line(
42-
points={{-66,-4},{-66,-30},{-20,-30}}, color={0,0,255}));
43-
connect(zDiode.p, ground.p) annotation (Line(
44-
points={{-20,-30},{-20,-62}}, color={0,0,255}));
45-
connect(zDiode.p, RL.n) annotation (Line(
46-
points={{-20,-30},{26,-30},{26,-6}}, color={0,0,255}));
41+
connect(sineVoltage.n, zDiode2.p)
42+
annotation (Line(points={{-66,-4},{-66,-30},{-20,-30}}, color={0,0,255}));
43+
connect(zDiode2.p, ground.p)
44+
annotation (Line(points={{-20,-30},{-20,-62}}, color={0,0,255}));
45+
connect(zDiode2.p, RL.n)
46+
annotation (Line(points={{-20,-30},{26,-30},{26,-6}}, color={0,0,255}));
4747
connect(zDiode1.p, Rv.n) annotation (Line(
4848
points={{-20,32},{-20,42},{-36,42}}, color={0,0,255}));
4949
connect(RL.p, Rv.n) annotation (Line(
5050
points={{26,14},{26,42},{-36,42}}, color={0,0,255}));
51-
connect(zDiode1.n, zDiode.n) annotation (Line(
52-
points={{-20,12},{-20,1},{-20,1},{-20,-10}}, color={0,0,255}));
51+
connect(zDiode1.n, zDiode2.n) annotation (Line(points={{-20,12},{-20,1},{-20,
52+
1},{-20,-10}}, color={0,0,255}));
5353
annotation (experiment(StopTime=0.4),
5454
Documentation(info="<html>
55-
<p>This example is a simple circuit for overvoltage protection. If the voltage zDiode_1.n.v is too high, the Diode zDiode_2 breaks through and the voltage gets down.</p>
56-
<p>The simulation end time should be set to 0.4. To get the typical behaviour please plot sineVoltage.p.v, RL.p.v, zDiode_2.n.v and zDiode_1.n.i.</p>
55+
<p>This example is a simple circuit for overvoltage protection. If the voltage zDiode1.n.v is too high, the Diode zDiode2 breaks through and the voltage gets down.</p>
56+
<p>The simulation end time should be set to 0.4. To get the typical behaviour please plot sineVoltage.p.v, RL.p.v, zDiode2.n.v and zDiode1.n.i.</p>
5757
</html>",revisions="<html>
5858
<ul>
5959
<li><em>February 02, 2009</em>

0 commit comments

Comments
 (0)