| 1 | within ;
|
|---|
| 2 | model BridgeTriDym "Three-phase diode bridge"
|
|---|
| 3 | extends Modelica.Icons.Example;
|
|---|
| 4 | import Modelica.Electrical.Analog.Ideal;
|
|---|
| 5 | parameter Modelica.SIunits.Voltage VAC=400 "RMS line-to-line";
|
|---|
| 6 | parameter Modelica.SIunits.Frequency f=50 "line frequency";
|
|---|
| 7 | parameter Modelica.SIunits.Inductance LAC=60E-6 "line inductor";
|
|---|
| 8 | parameter Modelica.SIunits.Resistance Ron=1E-3 "diode forward resistance";
|
|---|
| 9 | parameter Modelica.SIunits.Conductance Goff=1E-3 "diode backward conductance";
|
|---|
| 10 | parameter Modelica.SIunits.Voltage Vknee=2 "diode threshold voltage";
|
|---|
| 11 | parameter Modelica.SIunits.Capacitance CDC=15E-6 "DC capacitance";
|
|---|
| 12 | parameter Modelica.SIunits.Current IDC=500 "load current";
|
|---|
| 13 |
|
|---|
| 14 | public
|
|---|
| 15 | Modelica.Electrical.Analog.Sources.SineVoltage SineVoltage1(freqHz=f,
|
|---|
| 16 | V=VAC*sqrt(2/3))
|
|---|
| 17 | annotation (Placement(transformation(extent={{-70,10},{
|
|---|
| 18 | -90,30}}, rotation=0)));
|
|---|
| 19 | Modelica.Electrical.Analog.Sources.SineVoltage SineVoltage2(
|
|---|
| 20 | freqHz=f,
|
|---|
| 21 | phase=-2/3*Modelica.Constants.pi,
|
|---|
| 22 | V=VAC*sqrt(2/3))
|
|---|
| 23 | annotation (Placement(transformation(extent={{-70,-10},{-90,
|
|---|
| 24 | 10}}, rotation=0)));
|
|---|
| 25 | Modelica.Electrical.Analog.Sources.SineVoltage SineVoltage3(
|
|---|
| 26 | freqHz=f,
|
|---|
| 27 | phase=-4/3*Modelica.Constants.pi,
|
|---|
| 28 | V=VAC*sqrt(2/3))
|
|---|
| 29 | annotation (Placement(transformation(extent={{-70,-30},{-90,
|
|---|
| 30 | -10}}, rotation=0)));
|
|---|
| 31 | Modelica.Electrical.Analog.Basic.Inductor Inductor1(L=LAC)
|
|---|
| 32 | annotation (Placement(transformation(extent={{-60,10},{-40,30}}, rotation=0)));
|
|---|
| 33 | Modelica.Electrical.Analog.Basic.Inductor Inductor2(L=LAC)
|
|---|
| 34 | annotation (Placement(transformation(extent={{-60,-10},{-40,10}}, rotation=0)));
|
|---|
| 35 | Modelica.Electrical.Analog.Basic.Inductor Inductor3(L=LAC)
|
|---|
| 36 | annotation (Placement(transformation(extent={{-60,-30},{-40,-10}}, rotation=0)));
|
|---|
| 37 | Ideal.IdealDiode IdealDiode1(
|
|---|
| 38 | Ron=Ron,
|
|---|
| 39 | Goff=Goff,
|
|---|
| 40 | Vknee=Vknee)
|
|---|
| 41 | annotation (Placement(transformation(
|
|---|
| 42 | origin={-20,40},
|
|---|
| 43 | extent={{-10,-10},{10,10}},
|
|---|
| 44 | rotation=90)));
|
|---|
| 45 | Ideal.IdealDiode IdealDiode2(
|
|---|
| 46 | Ron=Ron,
|
|---|
| 47 | Goff=Goff,
|
|---|
| 48 | Vknee=Vknee)
|
|---|
| 49 | annotation (Placement(transformation(
|
|---|
| 50 | origin={0,40},
|
|---|
| 51 | extent={{-10,-10},{10,10}},
|
|---|
| 52 | rotation=90)));
|
|---|
| 53 | Ideal.IdealDiode IdealDiode3(
|
|---|
| 54 | Ron=Ron,
|
|---|
| 55 | Goff=Goff,
|
|---|
| 56 | Vknee=Vknee)
|
|---|
| 57 | annotation (Placement(transformation(
|
|---|
| 58 | origin={20,40},
|
|---|
| 59 | extent={{-10,-10},{10,10}},
|
|---|
| 60 | rotation=90)));
|
|---|
| 61 | Ideal.IdealDiode IdealDiode4(
|
|---|
| 62 | Ron=Ron,
|
|---|
| 63 | Goff=Goff,
|
|---|
| 64 | Vknee=Vknee)
|
|---|
| 65 | annotation (Placement(transformation(
|
|---|
| 66 | origin={-20,-40},
|
|---|
| 67 | extent={{-10,-10},{10,10}},
|
|---|
| 68 | rotation=90)));
|
|---|
| 69 | Ideal.IdealDiode IdealDiode5(
|
|---|
| 70 | Ron=Ron,
|
|---|
| 71 | Goff=Goff,
|
|---|
| 72 | Vknee=Vknee)
|
|---|
| 73 | annotation (Placement(transformation(
|
|---|
| 74 | origin={0,-40},
|
|---|
| 75 | extent={{-10,-10},{10,10}},
|
|---|
| 76 | rotation=90)));
|
|---|
| 77 | Ideal.IdealDiode IdealDiode6(
|
|---|
| 78 | Ron=Ron,
|
|---|
| 79 | Goff=Goff,
|
|---|
| 80 | Vknee=Vknee)
|
|---|
| 81 | annotation (Placement(transformation(
|
|---|
| 82 | origin={20,-40},
|
|---|
| 83 | extent={{-10,-10},{10,10}},
|
|---|
| 84 | rotation=90)));
|
|---|
| 85 | Modelica.Electrical.Analog.Basic.Ground Ground1
|
|---|
| 86 | annotation (Placement(transformation(extent={{40,-80},{60,-60}}, rotation=0)));
|
|---|
| 87 | Modelica.Electrical.Analog.Basic.Inductor Ldc(L=50e-3)
|
|---|
| 88 | annotation (Placement(transformation(extent={{-10,-10},{10,10}}, rotation=270,
|
|---|
| 89 | origin={58,-12})));
|
|---|
| 90 | Modelica.Electrical.Analog.Basic.Resistor Rdc(R=10) annotation (Placement(
|
|---|
| 91 | transformation(
|
|---|
| 92 | extent={{-10,-10},{10,10}},
|
|---|
| 93 | rotation=270,
|
|---|
| 94 | origin={58,24})));
|
|---|
| 95 | equation
|
|---|
| 96 |
|
|---|
| 97 | connect(SineVoltage1.n, SineVoltage2.n)
|
|---|
| 98 | annotation (Line(points={{-90,20},{-90,0}}, color={0,0,255}));
|
|---|
| 99 | connect(SineVoltage2.n, SineVoltage3.n)
|
|---|
| 100 | annotation (Line(points={{-90,0},{-90,-20}}, color={0,0,255}));
|
|---|
| 101 | connect(SineVoltage1.p, Inductor1.p)
|
|---|
| 102 | annotation (Line(points={{-70,20},{-60,20}}, color={0,0,255}));
|
|---|
| 103 | connect(SineVoltage2.p, Inductor2.p)
|
|---|
| 104 | annotation (Line(points={{-70,0},{-67.5,0},{-67.5,1.22125e-015},{-65,
|
|---|
| 105 | 1.22125e-015},{-65,0},{-60,0}}, color={0,0,255}));
|
|---|
| 106 | connect(SineVoltage3.p, Inductor3.p)
|
|---|
| 107 | annotation (Line(points={{-70,-20},{-60,-20}}, color={0,0,255}));
|
|---|
| 108 | connect(IdealDiode1.p, IdealDiode4.n)
|
|---|
| 109 | annotation (Line(points={{-20,30},{-20,-30}}, color={0,0,255}));
|
|---|
| 110 | connect(IdealDiode2.p, IdealDiode5.n)
|
|---|
| 111 | annotation (Line(points={{-6.12323e-016,30},{-6.12323e-016,16},{0,0},{0,-30},
|
|---|
| 112 | {6.12323e-016,-30}}, color={0,0,255}));
|
|---|
| 113 | connect(IdealDiode3.p, IdealDiode6.n)
|
|---|
| 114 | annotation (Line(points={{20,30},{20,-30}}, color={0,0,255}));
|
|---|
| 115 | connect(IdealDiode1.n, IdealDiode2.n)
|
|---|
| 116 | annotation (Line(points={{-20,50},{6.12323e-016,50}}, color={0,0,255}));
|
|---|
| 117 | connect(IdealDiode2.n, IdealDiode3.n)
|
|---|
| 118 | annotation (Line(points={{6.12323e-016,50},{20,50}}, color={0,0,255}));
|
|---|
| 119 | connect(IdealDiode4.p, IdealDiode5.p)
|
|---|
| 120 | annotation (Line(points={{-20,-50},{-6.12323e-016,-50}}, color={0,0,255}));
|
|---|
| 121 | connect(IdealDiode5.p, IdealDiode6.p)
|
|---|
| 122 | annotation (Line(points={{-6.12323e-016,-50},{20,-50}}, color={0,0,255}));
|
|---|
| 123 | connect(Inductor1.n, IdealDiode1.p)
|
|---|
| 124 | annotation (Line(points={{-40,20},{-20,20},{-20,30}}, color={0,0,255}));
|
|---|
| 125 | connect(Inductor3.n, IdealDiode3.p)
|
|---|
| 126 | annotation (Line(points={{-40,-20},{20,-20},{20,30}}, color={0,0,255}));
|
|---|
| 127 | connect(Ground1.p, IdealDiode6.p) annotation (Line(
|
|---|
| 128 | points={{50,-60},{50,-50},{20,-50}},
|
|---|
| 129 | color={0,0,255},
|
|---|
| 130 | smooth=Smooth.None));
|
|---|
| 131 | connect(Ldc.n, IdealDiode6.p) annotation (Line(
|
|---|
| 132 | points={{58,-22},{58,-50},{20,-50}},
|
|---|
| 133 | color={0,0,255},
|
|---|
| 134 | smooth=Smooth.None));
|
|---|
| 135 | connect(Rdc.n, Ldc.p) annotation (Line(
|
|---|
| 136 | points={{58,14},{58,-2}},
|
|---|
| 137 | color={0,0,255},
|
|---|
| 138 | smooth=Smooth.None));
|
|---|
| 139 | connect(Inductor2.n, IdealDiode5.n) annotation (Line(
|
|---|
| 140 | points={{-40,0},{6.12323e-016,0},{6.12323e-016,-30}},
|
|---|
| 141 | color={0,0,255},
|
|---|
| 142 | smooth=Smooth.None));
|
|---|
| 143 | connect(IdealDiode3.n, Rdc.p) annotation (Line(
|
|---|
| 144 | points={{20,50},{40,50},{40,52},{58,52},{58,34},{58,34}},
|
|---|
| 145 | color={0,0,255},
|
|---|
| 146 | smooth=Smooth.None));
|
|---|
| 147 | annotation (
|
|---|
| 148 | Diagram(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{100,100}}),
|
|---|
| 149 | graphics),
|
|---|
| 150 | experiment(StopTime=0.1, NumberOfIntervals=1000),
|
|---|
| 151 | Documentation(info="<html>
|
|---|
| 152 | <p>The rectifier example shows a B6 diode bridge fed by a three phase sinusoidal voltage, loaded by a DC current.
|
|---|
| 153 | DC capacitors start at ideal no-load voltage, thus making easier initial transient.</p>
|
|---|
| 154 | <p>Simulate until T=0.1 s. Plot in separate windows:
|
|---|
| 155 | <br>uDC ... DC-voltage
|
|---|
| 156 | <br>iAC ... AC-currents 1..3
|
|---|
| 157 | <br>uAC ... AC-voltages 1..3 (distorted)
|
|---|
| 158 | <br>Try different load currents iDC = 0..approximately 500 A. You may watch losses (of the whole diode bridge) trying different diode parameters.</p>
|
|---|
| 159 | </html>",
|
|---|
| 160 | revisions="<html>
|
|---|
| 161 | <p><b>Release Notes:</b></p>
|
|---|
| 162 | <ul>
|
|---|
| 163 | <li><i>Mai 7, 2004 </i>
|
|---|
| 164 | by Anton Haumer<br> realized<br>
|
|---|
| 165 | </li>
|
|---|
| 166 | </ul>
|
|---|
| 167 | </html>"),
|
|---|
| 168 | uses(Modelica(version="3.2")),
|
|---|
| 169 | __Dymola_experimentSetupOutput);
|
|---|
| 170 | end BridgeTriDym;
|
|---|