Академический Документы
Профессиональный Документы
Культура Документы
Hemanshu R. Pota
September 10, 2010
1 Introduction
For the half-wave rectifier shown in Figure 1, plot vL , vD , and iL for R = 10 , Ls = 100 mH
when (a) vs = 50 sin 250t V, and (b) vs is a 50 V peak 50 Hz square waveform. For the diode use
Is = 1014 A and VT = 26 mV.
D1
iD
iL
R
+
vD
vs +
Ls vL
(2)
Simple Integration
Simple Integration
50
2.5
vs
vd
40
2
30
20
iL (A)
1.5
10
10
0.5
20
30
0
40
0.5
0.005
0.01
0.015
0.02
Time (s)
0.025
0.03
0.035
0.04
50
0.005
0.01
0.015
0.02
Time (s)
0.025
0.03
0.035
0.04
The above mentioned fix for the stiff diode nonlinearity needs a good knowledge of the circuit
2 of 8
(3)
The above equation (3) is a linear version of the nonlinear diode equation iD = Is evD /VT 1 , and
for the (k + 1)st step, with known iD (k) and vD (k), the values of GD and IQ are obtained as
Is vD /VT
diD
=
e
(4)
GD (k) =
iD =iD (k)
dvD iD =iD (k)
VT
vD =vD (k)
vD =vD (k)
IQ (k) = iD GD (k)vD
(5)
1
GD (k)
(6)
(7)
h
(vL (k + 1) + vL (k)) = L (iL (k + 1) iL (k))
2
h
h
iL (k + 1) =
vL (k + 1) +
vL (k) + iL (k)
2L
2L
h
h
iL (k + 1) =
vL (k + 1) + ILQ (k) (where ILQ (k) =
vL (k) + iL (k))
2L
2L
(8)
(9)
(10)
3 of 8
(11)
(12)
h
(iC (k + 1) + iC (k)) = C (vC (k + 1) vC (k))
2
2C
2C
iC (k + 1) =
vC (k + 1)
vC (k) iC (k)
h
h
2C
2C
iC (k + 1) =
vC (k + 1) + ICQ (k) (where ICQ (k) = vC (k) iC (k))
h
h
(13)
(14)
(15)
h
The above representation (15) converts a capacitor to a resistor ( 2C
) in parallel with a current source
(ICQ (k)).
+ iD
i +
vD
vD
j
+ iL
1
GD
i +
vL L
IQ
vL
j
i +
2L
h
ILQ vC
+ iC
vC
C
j
h
2C
ICQ
V
I
V
I
i
LQ
i
CQ
2L
=
; 2Lh
=
; h2C 2Ch
=
h
GD GD
Vj
IQ
Vj
ILQ
Vj
ICQ
2L 2L
h
h
(16)
3 A Simple Example
The transient analysis for the half-wave rectifier shown in Figure 1 is performed here as SPICE would
do it. The first step is to replace the diode and the inductor by their equivalents given in Figure 4.
We obtain Figure 5 after replacing the original elements in Figure 1 with SPICE equivalents from
Figure 4.
IQ (k)
R
+
1
GM +GD (k)
iL (k + 1)
2Ls
h
vs (k + 1)
h
v (k)
2Ls L
+ iL (k)
0
Figure 5: SPICE Equivalent Half-wave Rectifier
The nodal equations for the circuuit in Figure 5 can be written as:
v1 (k + 1) v2 (k + 1)
= IQ (k)
R
v2 (k + 1) v1 (k + 1)
h
h
At node 2:
+
v2 (k + 1) +
v2 (k) + iL (k) = 0
R
2Ls
2Ls
In compact matrix notation the above two equations (17) and (18) can be written as
GD (k) + GM + R1
R1
IQ (k) + vs (k + 1) (GD (k) + GM )
v1 (k + 1)
=
h
R1
+ R1 v2 (k + 1)
2Lh s v2 (k) iL (k)
2Ls
(17)
(18)
(19)
Y (k)V (k + 1) = I(k)
The above matrix equation (19) is solved for v1 (k + 1) and v2 (k + 1). The obtained values
of the node voltages
v1 (k + 1) and v2 (k + 1) must also satisfy diode equation, i.e., iD (k + 1) =
vD (k+1)/VT
Is e
1 . The values of iD (k + 1) and vD (k + 1) can be obtained from the node voltages
v1 (k + 1) and v2 (k + 1). If iD (k + 1) and vD (k + 1) do not satisfy the diode equation then these
new values of iD (k + 1) and vD (k + 1) are used to obtain an updated estimate of GD (k) and IQ (k)
using equations (4) and (5). With these updated values of GD (k) and IQ (k) the matrix equation (19)
is solved again and the process is continued till there is a convergence. Note that GM is not a standard
part of the diode equivalent circuit but it a term added by SPICE to improve the convergence.
Using the above described algorithm, the obtained current iL is shown in Figure 6 and the voltages
vD and vs are shown in Figure 7. The matlab script used to obtain these plots is included below.
%Prob 7 - Power Electronics problem sheet
%This is the way spice would solve it
clear all
dt = 0.00001; tf = 0.04;
t = 0:dt:tf;
5 of 8
50
2.5
vD
v
40
30
20
iL (A)
1.5
10
10
0.5
20
30
0
40
0.5
0.005
0.01
0.015
0.02
Time (s)
0.025
0.03
0.035
0.04
50
0.005
0.01
0.015
0.02
Time (s)
0.025
0.03
0.035
0.04
forms of a complete description of an electrical network and devised the A matrix [2].
This in part emanated out of his studies of dynamical systems as described in Whittaker
and Watson. The A matrix is widely accepted as the forerunner of the state-variable description of an electrical network and was used in the early years of CAD as the basis of
equation formulation in CAD programs [38]. With subsequent developments, however,
it became clear that the state-variable approach, although very significant for theoretical
studies, is not the best basis for computer programs for circuit analysis. As brought out
below, the modified-nodal and sparse-tableau formulations are better. For one who has
observed the developments in this field throughout the 30 years of its existence, the fierce
disagreements of just ten years ago on this subject make for interesting and frustrating
memories.
The above paragraph is of special interest to people with control theory background. The genius
of the nodal matrix approach is that the Y matrix, such as in equation (19) above, can be assembled by
inspection. In a computer program one has to only read the nodes to which the element is connected
and then update the entries corresponding to those nodes from the Y matrix of each element. The
code needed to do this would be perhaps less than a few dozen lines. As compared to this, creating an
A matrix would be quite a challenge. SPICE would not have been able to analyse integrated circuits
with hundreds of thousands of transistors had it not taken the Y matrix approach.
For an N node network referenced to a ground node, normally called the Node 0, the Y matrix is
an N N matrix. To build the Y matrix, individual element Y matrices shown in equation (16) are
used. The update algorithm for the system Y matrix, due to an element connected between nodes i
and j, is as follows:
eq
5 Exercise
For the half-wave rectifier shown in Figure 8, plot vo , vD , iL , and is for R = 1 k, C = 10 F
when (a) vs = 50 sin 250t V, and (b) vs is a 50 V peak 50 Hz square waveform. For the diode use
Is = 1014 A and VT = 26 mV.
D1
+
vs +
is
vD
iL
vC
+
C
vo
References
[1] Andrei Vladimirescu. The SPICE Book. John Wiley & Sons, Inc., Brisbane, 1994.
[2] Ron M. Kielkowski. Inside SPICE: Overcoming the obstacles of circuit simulation. McGrawHill, Inc., Sydney, 1994. ISBN 0-07-911525-X.
[3] Donald O. Pederson. A historical review of circuit simulation. IEEE Trans on Circuits and
Systems, CAS-31(1):103111, January 1984.
[4] William J. McCalla and Donald O. Pederson. Elements of computer-aided circuit analysis. IEEE
Trans on Circuits Theory, CT-18(1):1426, January 1971.
[5] Arthur Richard Newton and Alberto L. Sangiovanni-Vincentelli. Relaxation-based electrical simulation. IEEE Trans on Computer-Aided Design, CAD-3(4):308331, October 1984.
8 of 8