Professional Documents
Culture Documents
KHIT-GUNTUR Page 2 of 91
Electrical Simulation Lab Manual EEE
AIM: To study the responses of series RLC circuits for a given step, pulse & sinusoidal
inputs.
CIRCUIT DIAGRAMS:
Series RLC circuit for STEP input
1 R1 2 L1 3 4 R2 5 L2 6 7 R3 8 L3 9
50uH 2 OHMS 50uH 8 OHMS 50uH
1 OHM
V1 V2 V3
C1 C2 C3
10UF 10UF 10UF
V1 C1 V2 C2 V3 C3
10UF 10UF 10UF
V1 C1 V2 C2 V3 C3
10UF 10UF 10UF
0
SPECIFICATIONS:
KHIT-GUNTUR Page 3 of 91
Electrical Simulation Lab Manual EEE
Step input : V1 = 0, T1 =0, V2 = 1V, T2 = 1ns, V3 = 1V, T3 = 1ms.
Pulse input : V1 = -10V, V2 = 10V, TD = TR = TF = 1ns, PW = 40us, PER = 80us.
Sinusoidal input: VOFF = 0V, VAMPL = 169.7V, FREQ = 50 Hz.
THEORY:
S
1L
R S 1
LC
I
S2
L
I S
Vo S
CS
V0 t 1 V0 S
For Sinusoidal Input:
VS t Vm sin t
Vm
VS
S2 2
Vm S
I S
L S 2 2 S 2 R S 1
L
LC
I S
Vo S
CS
V0 t 1 V0 S
KHIT-GUNTUR Page 4 of 91
Electrical Simulation Lab Manual EEE
I S
1L
R S 1
LC
S2
L
I S
Vo S
CS
V0 t 1 V0 S
PROGRAMS:
STEP INPUT
KHIT-GUNTUR Page 5 of 91
Electrical Simulation Lab Manual EEE
L2 5 6 10UH
C2 6 0 10UF
R3 7 8 3OHMS
L3 8 9 10UH
C3 9 0 10UF
.TRAN 1US 240US
.PROBE
.END
SINUSOIDAL INPUT
PROCEDURE:
ANALYSIS BY PROGRAM:
KHIT-GUNTUR Page 6 of 91
Electrical Simulation Lab Manual EEE
ANALYSIS BY CIRCUIT:
RESULT:
REVIEW QUESTIONS:
1. What is Pspice?
2. Mention the differences between step, pulse and sinusoidal inputs?
3. What is the procedure to get transient response in Capture CIS?
4. What is the command to get graph as output?
5. Give the syntax for defining step, pulse and sinusoidal inputs in Pspice.
6. Give the syntax for defining an element in Pspice.
KHIT-GUNTUR Page 7 of 91
Electrical Simulation Lab Manual EEE
MODEL GRAPH:
1.0V
0.5V
0V
0s 100us 200us 300us 400us 500us 600us 700us 800us
V(3) V(6) V(9)
Time
10V
5V
0V
-5V
-10V
-15V
0s 40us 80us 120us 160us 200us 240us
V(3) V(6) V(9)
Time
100V
0V
-100V
-200V
0s 10ms 20ms 30ms 40ms 50ms 60ms
V(3) V(6) V(9)
Time
KHIT-GUNTUR Page 8 of 91
Electrical Simulation Lab Manual EEE
KHIT-GUNTUR Page 9 of 91
Electrical Simulation Lab Manual EEE
CIRCUIT DIAGRAMS:
Three Phase circuit with Balanced load
L1 L2 L3
3MH 3MH 3MH
2 4 6
R1 R2 R3 Vx
20 OHMS 20 OHMS 20 OHMS 0V
1 3 5
VS1 VS2 VS3
L1 L2 L3
3MH 6MH 9MH
2 4 6
R1 R2 R3 Vx
50 OHMS 10 OHMS 15 OHMS 0V
1 3 5
VS1 VS2 VS3
SPECIFICATIONS:
KHIT-GUNTUR Page 10 of 91
Electrical Simulation Lab Manual EEE
Sinusoidal input: VOFF = 0V, VAMPL = 169.7V, FREQ = 50 Hz.
THEORY:
If the neutral wire is not available for external connection the system is
called 3- is 3-wire connected system. The system so formed will supply equal line voltage
displaced 1200 from one another and acting simultaneously in the circuit like three
independent single phase sources in the same frame of a 3- alternator.
KHIT-GUNTUR Page 11 of 91
Electrical Simulation Lab Manual EEE
PROGRAMS:
BALANCED LOAD CONDITION
KHIT-GUNTUR Page 12 of 91
Electrical Simulation Lab Manual EEE
PROCEDURE:
FOR PROGRAM:
FOR CIRCUIT:
1. Open the Orcad PSPICE.
2. Select Capture
3. Open new project file from file menu
4. Enter the name of the new file
5. Then Select analog or mixed A/D
6. select ‘create a blank project from project file
7. Go to ‘place’ on menu bar line that get all required parts and select a part and
drop on new file
8. Draw the circuit diagram using wire.
9. Enter Ground potential at Zero value
10. Save the file.
11. Set the new simulation profile under PSPICE menu.
12. Enter the name where simulation results are required.
13. Select time domain analysis and set run time to a suitable value.
14. Simulate the file by selecting run from pspice menu
15. If the simulation is successful output wave form are displayed in the probe
window
RESULT:
REVIEW QUESTIONS:
1. Give the syntax for defining a sinusoidal voltage source with some phase angle?
2. Give the equations for calculating line and phase currents in a three phase system.
3. Explain about the commands ‘.PROBE’, ‘.END’.
4. What do you understand by doing this analysis?
5. Give the syntax for defining a source.
KHIT-GUNTUR Page 13 of 91
Electrical Simulation Lab Manual EEE
MODEL WAVEFORMS:
INPUT WAVEFORM
200V
100V
0V
-100V
-200V
0s 5ms 10ms 15ms 20ms 25ms 30ms 35ms 40ms
V(1) V(2) V(3)
Time
5A
0A
-5A
-10A
0s 5ms 10ms 15ms 20ms 25ms 30ms 35ms 40ms
I(L1) I(L2) I(L3)
Time
10A
0A
-10A
-20A
0s 5ms 10ms 15ms 20ms 25ms 30ms 35ms 40ms
I(L1) I(L2) I(L3)
Time
KHIT-GUNTUR Page 14 of 91
Electrical Simulation Lab Manual EEE
KHIT-GUNTUR Page 15 of 91
Electrical Simulation Lab Manual EEE
AIM: To analyze the single phase full converter with RL and RLE Loads.
SIMULATION TOOLS REQUIRED:
PC with PSPICE Software
CIRCUIT DIAGRAMS:
Single Phase full converter with RL load
7
3 4
R
XT1 XT3 10 OHMS
8
1 E
Vs 100V
2 9
6 5 L
100MH
XT4 XT2
0
Single Phase full converter with RLE load
3 4
R
XT1 XT3 10 OHMS
1 8
Vs
2
6 5 L
100MH
XT4 XT2
0
SPECIFICATIONS:
KHIT-GUNTUR Page 16 of 91
Electrical Simulation Lab Manual EEE
Sinusoidal input: VOFF = 0V, VAMPL = 169.7V, FREQ = 50 Hz.
T1 and T2: V1 = 0V, V2 = 100V, TD = 3333.34us, TR = TF = 1ns, PW = 100us, PER =
20ms. T3 and T4: V1 = 0V, V2 = 100V, TD = 13333.34us, TR = TF = 1ns, PW = 100us,
PER = 20ms. Firing circuit: RG = 50 Ώ, VX, VY = 0V, RT = 1 Ώ, CT = 10uf, RON =
0.0125, ROFF = 10E+5, VON = 0.5V, VOFF = 0V, IS = 2.2E-15, BV = 1800V, TT = 0
sec.
PROGRAMS:
WITH RL LOAD
KHIT-GUNTUR Page 17 of 91
Electrical Simulation Lab Manual EEE
WITH RLE LOAD
KHIT-GUNTUR Page 18 of 91
Electrical Simulation Lab Manual EEE
CIRCUIT DIAGRAMS FOR ANALYSIS USING CIRCUIT:
X1 X3
2N1595 2N1595
R1
10 OHMS
V1 = 0V VG1 V1 = 0V VG3
V2 = 100V V2 = 100V
TD = 3333.34US TD = 13333.34US
TR = 1NS TR = 1NS
VS VOFF = 0V TF = 1NS TF = 1NS
FREQ = 50HZ PW = 100US PW = 100US
VAMPL = 169.7V PER = 20000US PER = 20000US
X4 X2
2N1595 2N1595
L1
100 MH
V1 = 0V VG4 V1 = 0V VG2
V2 = 100V V2 = 100V
TD = 13333.34US TD = 3333.34US
TR = 1NS TR = 1NS
TF = 1NS TF = 1NS
PW = 100US PW = 100US
PER = 20000US PER = 20000US
KHIT-GUNTUR Page 19 of 91
Electrical Simulation Lab Manual EEE
Single Phase full converter with RL load
X1 X3
2N1595 2N1595
R1
10 OHMS
V1 = 0V VG1 V1 = 0V VG3
V2 = 100V V2 = 100V
TD = 3333.34US TD = 13333.34US
TR = 1NS TR = 1NS
VS VOFF = 0V TF = 1NS TF = 1NS E
FREQ = 50HZ PW = 100US PW = 100US
VAMPL = 169.7V PER = 20000US PER = 20000US
100 V
X4 X2
2N1595 2N1595
L1
100 MH
V1 = 0V VG4 V1 = 0V VG2
V2 = 100V V2 = 100V
TD = 13333.34US TD = 3333.34US
TR = 1NS TR = 1NS
TF = 1NS TF = 1NS
PW = 100US PW = 100US
PER = 20000US PER = 20000US
PROCEDURE:
KHIT-GUNTUR Page 20 of 91
Electrical Simulation Lab Manual EEE
10. Save the file.
11. Set the new simulation profile under PSPICE menu.
12. Enter the name where simulation results are required.
13. Select time domain analysis and set run time to a suitable value.
14. Simulation file by selects run from pspice menu
15. If the simulation is successful output wave are displayed in the probe window.
RESULT:
REVIEW QUESTIONS:
1. What is your conclusion about this experiment?
2. Briefly explain the operation of single phase full converter.
3. Give the syntaxes for defining the following elements:
i. Pulse voltage
ii. Sinusoidal voltage
iii. Thyristor
iv. Switch
4. Explain about the command ‘SUBCKT’.
5. How will you give specifications for diode?
KHIT-GUNTUR Page 21 of 91
Electrical Simulation Lab Manual EEE
MODEL GRAPHS FOR FULL CONVERTER:
INPUT WAVEFORM
200V
100V
0V
-100V
-200V
0s 10ms 20ms 30ms 40ms 50ms 60ms
V(1,2)
Time
100V
0V
-100V
-200V
0s 10ms 20ms 30ms 40ms 50ms 60ms
V(7)
Time
200V
100V
0V
-100V
0s 10ms 20ms 30ms 40ms 50ms 60ms
V(7)
Time
KHIT-GUNTUR Page 22 of 91
Electrical Simulation Lab Manual EEE
AIM: To analyze the single phase full converter with RL and RLE Loads.
CIRCUIT DIAGRAM:
1 2
R
10 OHMS
XT2 3
Vs
L
10MH
0
SPECIFICATIONS:
Sinusoidal input: VOFF = 0V, VAMPL = 169.7V, FREQ = 50 Hz.
T1: V1 = 0V, V2 = 100V, TD = 3333.34us, TR = TF = 1ns, PW = 100us, PER = 20ms.
T2: V1 = 0V, V2 = 100V, TD = 13333.34us, TR = TF = 1ns, PW = 100us, PER = 20ms.
Firing circuit: RG = 50 Ώ, VX, VY = 0V, RT = 1 Ώ, CT = 10uf, RON = 0.0125, ROFF =
10E+5, VON = 0.5V, VOFF = 0V, IS = 2.2E-15, BV = 1800V, TT = 0 sec.
THEORY:
Ac voltage controllers are thyristors based devices which convert fixed alternating
voltage directly to variable alternating voltage without a change in frequency. The circuit
consists to two thyristors connected in anti parallel.
The KVL for the circuit gives
KHIT-GUNTUR Page 23 of 91
Electrical Simulation Lab Manual EEE
Ldio
VS Vm sin t Rio --------- t
dt
The solution of this equation is of the form
Vm R t
io sin t Ae L
Z
1
Z R L
2 2 2
tan 1 L R
At t i.e. at t
. io = 0
PROGRAM:
KHIT-GUNTUR Page 24 of 91
Electrical Simulation Lab Manual EEE
2N1595
V1 = 0V
V2 = 100V
TD = 3333.34US
TR = 1NS
TF = 1NS
PW = 100US VG1
PER = 20000US
X2
R1
VS1
2N1595 10 OHMS
VOFF = 0V
VAMPL = 169.7V
FREQ = 50HZ V1 = 0V
V2 = 100V
TD = 13333.34US L1
TR = 1NS
VG2 TF = 1NS 10 MH
PW = 100US
PER = 20000US
PROCEDURE:
KHIT-GUNTUR Page 25 of 91
Electrical Simulation Lab Manual EEE
11. Set the new simulation profile under PSPICE menu.
12. Enter the name where simulation results are required.
13. Select time domain analysis and set run time to a suitable value.
14. Simulation file by selects run from pspice menu
15. If the simulation is successful output wave are displayed in the probe window.
RESULT:
REVIEW QUESTIONS:
KHIT-GUNTUR Page 26 of 91
Electrical Simulation Lab Manual EEE
MODEL WAVEFORMS:
INPUT WAVEFORM
200V
100V
0V
-100V
-200V
0s 10ms 20ms 30ms 40ms 50ms 60ms
V(1)
Time
OUTPUT WAVEFORM
200V
100V
0V
-100V
-200V
0s 10ms 20ms 30ms 40ms 50ms 60ms
V(2)
Time
KHIT-GUNTUR Page 27 of 91
Electrical Simulation Lab Manual EEE
KHIT-GUNTUR Page 28 of 91
Electrical Simulation Lab Manual EEE
THEORY:
The commands that are commonly used for DC analysis are .OP (DC
operating point), .TF (Small-signal transfer function) and .DC (Dc sweep). If the .OP
command is present, Pspice prints the currents and power dissipations of all voltage
sources. The small signal parameters of all non linear controlled sources and all the
semiconductor devices are also printed.
The .TF command calculates the parameters of Thevinin’s equivalent circuit
for the circuit file. The syntax is as follows: .TF Vout Vin.
A dc circuit is given in figure 1. We are using Pspice to calculate and print
voltage gain, input resistance, Thevinin’s output resistance and Thevinin’s voltage. The
output voltage V(2,4) is between nodes 2 and 4. The .TF command can calculate and print
dc gain, the input resistance and the output resistance. The voltage source VX acts as an
ammeter, and an independent source of 0V is normally connected to measure a current.
THEVININ’S EQUIVALENT CIRCUIT:
CIRCUIT DIAGRAM:
1 R1 2 R2 3
5 Ohms 10 Ohms
Vin = 10 V R3 R4 Is = 2mA
20 Ohms
V(2,4) 40 Ohms
R5 Vx
10 Ohms 5 0V 4
0
Figure 1: A dc circuit for determining Thevinin’s Equivalent
KHIT-GUNTUR Page 29 of 91
Electrical Simulation Lab Manual EEE
THEORITICAL CALCULATIONS: Find VTH, RTH.
PROGRAM:
CIRCUIT DIAGRAM:
1 R1 2 Ib 4
>
1K
RP
1.5 K
6 F1 = 40 Ib
Ro RL
Vx = 0V 100 K 2K
R2
Vin = 1V
20 K 3 5
Vy = 0V
RE
250
0
An amplifier circuit for determining Thevinin’s equivalent
KHIT-GUNTUR Page 30 of 91
Electrical Simulation Lab Manual EEE
PROGRAM:
PROCEDURE:
RESULT:
REVIEW QUESTIONS:
KHIT-GUNTUR Page 31 of 91
Electrical Simulation Lab Manual EEE
OUTPUT:
FOR PROGRAM 1:
SMALL-SIGNAL CHARACTERISTICS:
V(2,4)/VIN = 6.250E-01. Av = 0.625
INPUT RESISTANCE AT VIN = 2.000E+01. Rin = 20 Ω
OUTPUT RESISTANCE AT V(2,4) = 1.094E+01. Rth = 10.94 Ω
Thus, Thevinin’s voltage Vth is Av Vin = 0.625 x 10 = 6.25 V.
FOR PROGRAM 2:
SMALL-SIGNAL CHARACTERISTICS:
V(4)/VIN = -5.9695E+00 Av = -5.9695
INPUT RESISTANCE AT VIN = 8.313E+03 Rin = 8.313 kΩ
OUTPUT RESISTANCE AT V(4) = 8.840E+03 Rth = 1.992 kV
Thus, Thevinin’s voltage Vth is Av Vin = -5.969 x 1 = -5.969 V.
KHIT-GUNTUR Page 32 of 91
Electrical Simulation Lab Manual EEE
KHIT-GUNTUR Page 33 of 91
Electrical Simulation Lab Manual EEE
TRANSFER FUNCTION:
𝑠 + 2𝛿𝜔𝑛
𝑌(𝑠) =
(𝑠 + 2𝛿𝜔𝑛 𝑠 + 𝜔𝑛2 )𝑠
THEORY:
(i) Delay time (td) (ii) Rise time (tr) (iii) Peak time (tp)
(iv) Maximum overshoot, (Mp) (v) Settling time (ts) (vi) Steady state error (ess)
KHIT-GUNTUR Page 34 of 91
Electrical Simulation Lab Manual EEE
PROGRAM:
PROCEDURE:
RESULT:
REVIEW QUESTIONS:
KHIT-GUNTUR Page 35 of 91
Electrical Simulation Lab Manual EEE
MODEL GRAPH:
KHIT-GUNTUR Page 36 of 91
Electrical Simulation Lab Manual EEE
KHIT-GUNTUR Page 37 of 91
Electrical Simulation Lab Manual EEE
THEORY:
MATLAB has been collection of functions immediately useful to the
control engineer or system theorist complex arithmetic, eigen values, root finding, matrix
inversion and FFT are just a few examples of MATLAB important numerical tools. More
generally, MATLAB linear algebra, matrix computation and numerical analysis
capabilities provide a reliable foundation for control system engineering as well as many
other disciplines.
Root Locus Technique:
It is a simple technique for finding the roots of the characteristic equation
introduction by W. R. Evans. This technique provides a graphical method of plotting the
locus of the roots in the S-plane as a given system parameter is varied over the complete
range of values. The root locus is a powerful technique as it brings into focus the complete
dynamic response of the system. The root locus also provides a measure of sensitively of
roots to the variation in the parameter being considered. The root locus technique is
applicable for single as well as multiple loop systems. Characteristic equation of the
feedback is 1 + G(S) H(S)
G(S) H(S) Open loop transfer function
Bode Plot:
One of the most useful representations of a transfer function is a
logarithmic plot which consists of two graphs. One giving the logarithm of G ( j ) and
the other phase angle of G(j) both platted against frequency in logarithmic scale. These
plots are called bode plots. The transfer function G(j) is represented by
G (j) = G ( j ) e j
Taking natural logarithm of both sides.
KHIT-GUNTUR Page 38 of 91
Electrical Simulation Lab Manual EEE
ln G j lnG j j
The real part is the natural logarithm of magnitude and measured in basic
unit called neper the imaginary part is the phase characteristic.
In this representation the unit of magnitude 20 log G ( j ) is decibel
abbreviated as db,() is phase angle in degree.
Nyquist Plot:
Nyquist stability criterion relates the location of roots of the characteristic
equation to the open loop frequency response of a system. Here the stability study can be
carried out graphically from the open loop frequency response the nyquist stability criteria
is based on a theorem of complex variables due to Cauchy, commonly known as principle
of argument.
Nyquist stability criterion states that if the contour G(H) of the open loop
transfer function G(S) H(S) corresponding to the nyquist contour in the S-plane encircles
the point (-1+ja) in the contour clockwise direction as many times as the number of right
half S-plane pales of G(S) H(S) the closed loop system is stable.
TRANSFER FUNCTION:
THEORITICAL CALCULATIONS:
Draw Bode, Nyquist and Root locus plots for the given transfer function.
KHIT-GUNTUR Page 39 of 91
Electrical Simulation Lab Manual EEE
PROGRAMS:
BODE PLOT:
a= [242 1210];
b=[1 6 126 121 0];
h=tf(a,b);
bode(h);
NYQUIST PLOT:
a= [242 1210];
b=[1 6 126 121 0];
h=tf(a,b);
nyquist(h);
PROCEDURE:
RESULT:
KHIT-GUNTUR Page 40 of 91
Electrical Simulation Lab Manual EEE
MODEL GRAPHS: BODE PLOT
NYQUIST PLOT
KHIT-GUNTUR Page 41 of 91
Electrical Simulation Lab Manual EEE
REVIEW QUESTIONS:
1. How can you determine whether the system is stable or not using Bode plot?
2. How can you determine whether the system is stable or not using nyquist plot?
3. How can you determine whether the system is stable or not using root locus plot?
4. Explain the procedure to draw the above plots theoretically.
5. Which plot gives most accurate results?
KHIT-GUNTUR Page 42 of 91
Electrical Simulation Lab Manual EEE
KHIT-GUNTUR Page 43 of 91
Electrical Simulation Lab Manual EEE
AIM: To analyze a given linear system for steady state error with and without PI controller.
CIRCUIT DIAGRAM:
WITHOUT CONTROLLER
Step 10 s+8
Add Transfer Fcn 1
1 1
0.2s+1 0.5s+1 Scope
Transfer Fcn Transfer Fcn 2
-20
Gain
WITH CONTROLLER
Step 10 s+8
Add Transfer Fcn 1
1 1
0.2s+1 0.5s+1
Add 1
Transfer Fcn Transfer Fcn 2
Scope
20
Gain
1
7
s
Gain 1 Transfer Fcn 3
KHIT-GUNTUR Page 44 of 91
Electrical Simulation Lab Manual EEE
THEORY:
KHIT-GUNTUR Page 45 of 91
Electrical Simulation Lab Manual EEE
PROCEDURE:
RESULT:
REVIEW QUESTIONS:
KHIT-GUNTUR Page 46 of 91
Electrical Simulation Lab Manual EEE
MODEL GRAPH:
WITHOUT CONTOLLER
WITH CONTOLLER
KHIT-GUNTUR Page 47 of 91
Electrical Simulation Lab Manual EEE
KHIT-GUNTUR Page 48 of 91
Electrical Simulation Lab Manual EEE
CIRCUIT DIAGRAM:
THEORY:
A 5th harmonic filter is connected at a bus bar fed by a 60 Hz, 100 V inductive
source. A 5th harmonic (300 Hz, 1 A) current is injected at the bus bar. This linear system
consists of 3 states (2 inductor currents and 1 capacitor voltage), 2 inputs (Vs, Is) and 2
outputs (Current and Voltage Measurement). An Impedance Measurement block is used to
compute the impedance versus frequency of the circuit.
Demonstration:
1. Use the Powergui block to find the steady-state 60Hz and 300 Hz components
of voltage and current phasors. The values of the 3 states (phasors and initial values) can be
also obtained from the Powergui block.
KHIT-GUNTUR Page 49 of 91
Electrical Simulation Lab Manual EEE
2. Open the scope and start the simulation from the Simulation/Start menu. Notice
that the simulation starts in steady-state. Using the Powergui block, select Impedance vs
Frequency Measurement. A new window opens.
3. The measurement will be performed for the specified frequency range vector [0:
2:1000] (0 to 1000 Hz by steps of 2 Hz). Click on the Display button. The impedance is
displayed in a graphic window. Notice the series resonance at 300 Hz corresponding to the
tuned frequency of the filter.
PROCEDURE:
MODEL GRAPH:
RESULT:
KHIT-GUNTUR Page 50 of 91
Electrical Simulation Lab Manual EEE
REVIEW QUESTIONS:
1. What is your conclusion after doing this analysis?
2. What is the function of scope?
3. What is the procedure to add Current measurement block to the model?
4. What is POWERGUI?
5. What is the procedure to edit a part (for example voltage source)?
KHIT-GUNTUR Page 51 of 91
Electrical Simulation Lab Manual EEE
KHIT-GUNTUR Page 52 of 91
Electrical Simulation Lab Manual EEE
CIRCUIT DIAGRAMS:
INTEGRATOR CIRCUIT
RF
1MEG
C1
0.1U
1 R1
-
2.5K
2 OUT
V1
4
+
3
Rx RL
2.5K 100K
DIFFERENTIATOR CIRCUIT
RF
10K
1 R1 2 C1
-
100
0.4UF 3 out
4
+
5
Vin
Rx RL
10K 100K
KHIT-GUNTUR Page 53 of 91
Electrical Simulation Lab Manual EEE
THEORY:
INTEGRATOR:
A circuit in which the output voltage wave form is the integral of the input
voltage wave form is an integrator. The output voltage is directly proportional to the input
voltage and inversely proportional to the time constant Rc. If the input is a sine wave the
output will be cosine wave (or) if the input is a square wave the output will be a triangular
wave.
Applying Kirchhoff’s current equation at node V2
i1 iB iF
The relation between current and voltage across the capacitor is
dv
iC C
dt
Vin V2
C
d V2 V0
R1 dt
V1 V2 0
Vin d V0
C
R1 dt
C V0
1
t
V0
R1C V
0
in dt
DIFFERENTIATOR:
A differentiator circuit performs the mathematical operation
differentiation i.e, the output waveform is the derivative of the input waveform. The
differentiator may be constructed form a basic inverting amplifier of an input resistor R is
replaced by replaced by a capacitor C. The output of differentiator V0 is equal to the RC times
the negative instantaneous rate of change of the input voltage Vin with time, since the
KHIT-GUNTUR Page 54 of 91
Electrical Simulation Lab Manual EEE
differentiator performs the reverse of the integrator function. Cosine input wave will a sine
wave output.
The differentiator is similar and is most commonly used in wave shaping
circuit in an input. The expression for the output voltage can be obtained from Kirchhoff’s
current equation written at node V2.
iC ib i f
iB 0 , iC i f
d Vin V0 V V0
C1 2
dt Rf
dVin
V0 R f C1
dt
PROGRAMS:
INTEGRATOR:
KHIT-GUNTUR Page 55 of 91
Electrical Simulation Lab Manual EEE
.ENDS
.TRAN 50US 4MS
.PLOT TRAN V(4) V(1)
.PLOT AC VM(4) VP(4)
.PROBE
.END
DIFFERENTIATOR:
KHIT-GUNTUR Page 56 of 91
Electrical Simulation Lab Manual EEE
CIRCUIT DIAGRAMS FOR ANALYSING USIING CIRCUITS:
INTEGRATOR
RF
1MEG
C1
0.1U
V2
15V
4
R1 uA741
2 1
V-
- OS1
2.5K
6
OUT
V1 3 5
V+
+ OS2
U2
7
V3
Rx RL
2.5K 15V 100K
KHIT-GUNTUR Page 57 of 91
Electrical Simulation Lab Manual EEE
DIFFERENTIATOR
RF
10K
V2
15V
4
R1 C1 uA741
2 1
V-
- OS1
100
0.4UF 6
OUT
V4 3 5
V+
+ OS2
U2
7
V3
Rx R4
10K 15V 100K
PROCEDURE:
KHIT-GUNTUR Page 58 of 91
Electrical Simulation Lab Manual EEE
9. Enter Ground potential at Zero value.
10. Save the file.
11. Set the new simulation profile under PSPICE menu.
12. Enter the name where simulation results are required.
13. Select time domain analysis and set run time to a suitable value.
14. Simulation file by selects run from pspice menu
15. If the simulation is successful output wave are displayed in the probe window.
RESULT:
MODEL WAVEFORMS:
INTEGRATOR INPUT & OUTPUT WAVEFORMS
1.0V
0V
-1.0V
-2.0V
V(1)
5.0V
0V
SEL>>
-5.0V
0s 0.5ms 1.0ms 1.5ms 2.0ms 2.5ms 3.0ms 3.5ms 4.0ms
V(4)
Time
KHIT-GUNTUR Page 59 of 91
Electrical Simulation Lab Manual EEE
DIFFERENTIATOR INPUT & OUTPUT WAVEFORMS
1.0V
0.5V
SEL>>
0V
V(1)
5.0V
0V
-5.0V
0s 0.5ms 1.0ms 1.5ms 2.0ms 2.5ms 3.0ms 3.5ms 4.0ms
V(4)
Time
REVIEW QUESTIONS:
KHIT-GUNTUR Page 60 of 91
Electrical Simulation Lab Manual EEE
KHIT-GUNTUR Page 61 of 91
Electrical Simulation Lab Manual EEE
CIRCUIT DIAGRAM:
Vy 0V
Rg3 T3 D3
Rg1 T1 D1 12
8
11
7
3 Vx 4 R 5 L
10MH
Vs 0V 2.5 OHMS 6
100V
Rg4 T4 D4 Rg2 T2 D2
14 10
13 9
0
PWM Generator
R4
1 R1
5 100 KOHMS
1k
6 3
Ro
2 R2 75 OHMS
Vr Rin Co
2MEG 10pf
1k
Vc
KHIT-GUNTUR Page 62 of 91
Electrical Simulation Lab Manual EEE
Carrier and Reference signals
15 16 17
Rc1 Rc3 Rr
Vc1 2MEG Vc3 2MEG Vr 2MEG
SPECIFICATIONS:
VR: V1 = 50V, V2 = 0V, TD = 0, TR = TF = 8333.33us, PW = 1ns, PER = 16666.67us.
VC1: V1 = 0V, V2 = -30V, TD = 0, TR = TF = 1ns, PW = 8333.33us,
PER = 16666.67us. VC3: V1 = 0V, V2 = -30V, TD = 8333.33us, TR = TF = 1ns,
PW = 8333.33us, PER = 16666.67us.
Firing circuit: RG = 50 Ώ, VX, VY = 0V, RT = 1 Ώ, CT = 10uf, RON = 0.0125, ROFF =
10E+5, VON = 0.5V, VOFF = 0V, IS = 2.2E-15, BV = 1800V, TT = 0 sec. For Dt,
IS = e-15, BV = 1000V.
THEORY:
KHIT-GUNTUR Page 63 of 91
Electrical Simulation Lab Manual EEE
PROGRAM:
KHIT-GUNTUR Page 64 of 91
Electrical Simulation Lab Manual EEE
RF 5 3 100K
RO 6 3 75
CO 3 4 10PF
E1 6 4 0 5 2E+5
.ENDS PWM
.TRAN 10US 3MS 0 10US
.PROBE
.END
PROCEDURE:
MODEL WAVEFORM:
OUTPUT WAVEFORM
120V
80V
40V
-0V
-40V
-80V
-120V
0s 0.5ms 1.0ms 1.5ms 2.0ms 2.5ms 3.0ms
V(3,6)
Time
RESULT:
REVIEW QUESTIONS:
1. What is an inverter?
2. What is the procedure to trace a waveform?
3. What is the procedure to define a switch and diode?
4. What is subckt?
5. What is your conclusion after doing the analysis?
KHIT-GUNTUR Page 65 of 91
Electrical Simulation Lab Manual EEE
KHIT-GUNTUR Page 66 of 91
Electrical Simulation Lab Manual EEE
PSPICE ANALYSIS OF RESONANT PULSE COMMUTATION CIRCUIT
CIRCUIT DIAGRAMS:
Resonant Pulse Commutation Circuit
D1
100V
V
1 10 T1 4
Vy
Rm
Cs 11 Rs 0.5
T2
750 ohms 5
0.1UF
C 2 L Lm
3 5MH
Vs Dm
6.4UH
31.2UF
6
T3
Vx
7 8 9 0V
10 V
R1 R2 R3
Vg1 10 MEG Vg2 10 MEG Vg3 10 MEG
0
SPECIFICATIONS:
KHIT-GUNTUR Page 67 of 91
Electrical Simulation Lab Manual EEE
PROGRAM:
KHIT-GUNTUR Page 68 of 91
Electrical Simulation Lab Manual EEE
CIRCUIT DIAGRAM FOR ANALYSIS USING CIRCUIT:
D1
D1N5711
Vy X1
10 V 2N1595
V1 = 0V VG1 X2
V2 = 100V 2N1595
TD = 0 RM
TR = 1US
TF = 1US RG1 0.5
PW = 0.4MS
PER = 1MS
10 MEG
CS RS V1 = 0V VG2
VS V2 = 100V
TD = 0.4MS
0.1uf 750
TR = 1US
VOFF = 0 V TF = 1US
VAMPL = 169.7V PW = 0.6MS DM
FREQ = 50 HZ C L PER = 1MS LM
D1N5711
5MH
31.2uf 6.4 UH
RG2
10 MEG
X3 Vx
2N1595 10 V
V1 = 0V VG3
V2 = 100V
TD = 0
TR = 1US RG3
TF = 1US
PW = 0.2MS
10 MEG
PER = 1MS
PROCEDURE:
KHIT-GUNTUR Page 69 of 91
Electrical Simulation Lab Manual EEE
3. Open new project file from file menu
4. Enter the name of the new file
5. Then Select analog or mixed A/D
6. select ‘create a blank project from project file
7. Go to ‘place’ on menu bar line that get select a part and drop on new file.
8. Draw the circuit diagram using wire.
9. Enter Ground potential at Zero value.
10. Save the file.
11. Set the new simulation profile under PSPICE menu.
12. Enter the name where simulation results are required.
13. Select time domain analysis and set run time to a suitable value.
14. Simulation file by selects run from pspice menu
15. If the simulation is successful output wave are displayed in the probe window.
RESULT:
REVIEW QUESTIONS:
KHIT-GUNTUR Page 70 of 91
Electrical Simulation Lab Manual EEE
MODEL WAVEFORMS:
V (1, 2)
1.0KV
0.5KV
0V
-0.5KV
-1.0KV
1.4ms 1.6ms 1.8ms 2.0ms 2.2ms 2.4ms 2.6ms 2.8ms
V(1,2)
Time
I(C)
2.0KA
1.0KA
0A
-1.0KA
-2.0KA
1.4ms 1.6ms 1.8ms 2.0ms 2.2ms 2.4ms 2.6ms 2.8ms
I(C)
Time
I(VX)
200mA
100mA
0A
-100mA
-200mA
1.4ms 1.6ms 1.8ms 2.0ms 2.2ms 2.4ms 2.6ms 2.8ms
I(VX)
Time
KHIT-GUNTUR Page 71 of 91
Electrical Simulation Lab Manual EEE
KHIT-GUNTUR Page 72 of 91
Electrical Simulation Lab Manual EEE
CIRCUIT DIAGRAM:
Buck chopper
Vy T1 Le L
681.82UH 40.91UH
0V
R
RB 3 OHMS
250 OHMS Dm Ce
Vs 8.33UF
110V
Vg Vx 0V
10 V
SPECIFICATIONS:
VG: V1 = 0V, V2 = 20V, TD = 0, TR = TF = 0.1ns, PW = 27.28us, PER = 50us. For Ce,
IC = 60V. Firing circuit: RON = 0.1, ROFF = 10E+8, VON = 10V, VOFF = 5V, For DT:
IS = e-25, BV = 1000V. For DM, IS = 2.2e-15 , BV = 1000V, TT = 0.
THEORY:
A chopper is a high speed on (or) off switch. It connects source to load and
disconnects the load from source at a fast speed. If the average output voltage V0 is less
than the input voltage VS i.e, V0 < VS, then the corresponding chopper circuit is called step-
down chopper.
The principle of operation is as follows during the period in which transistor
(Tr ) is ON, the load voltage is equal to source voltage Vs. During the interval in which Tr
KHIT-GUNTUR Page 73 of 91
Electrical Simulation Lab Manual EEE
is off, the load current flows through the free wheeling diode FD and load voltage is there
fore zero during T off. In this manner, a chopper DC voltage is produced at the load
terminals. V0 VS
On time of transistor
Where = duty cycle =
Total Time
T0 N
T
V0 FTonVS
The load voltage V0 can be controlled by varying duty cycle the load voltage is
independent of load current.
PROGRAM:
BUCK CHOPPER
VS 1 0 DC 110V
VY 1 2 DC 0V
VG 7 3 PULSE(0 20 0 0.1NS 0.1NS 27.28US 50US)
RB 7 6 250OHMS
LE 3 4 681.28UH
CE 4 0 8.33UF IC=60V
L 4 8 40.91UH
R 8 5 3OHMS
VX 5 0 DC 0V
DM 0 3 DMOD
.MODEL DMOD D(IS=2.2E -15 BV=1000V TT=0)
XT1 2 3 6 3 DCSCR
.SUBCKT DCSCR 1 2 3 4
DT 5 2 DMOD
ST 1 5 3 4 SMOD
.MODEL DMOD D(IS=1E -25 BV=1000V)
.MODEL SMOD VSWITCH(RON=0.1 ROFF=10E+8 VON=10V VOFF=5V)
.ENDS DCSCR
.TRAN 1US 1.6MS 1.5MS 1US
.PROBE
.END
KHIT-GUNTUR Page 74 of 91
Electrical Simulation Lab Manual EEE
PROCEDURE:
RESULT:
1. What is a chopper?
2. What is the syntax for defining an element?
3. What is the procedure to define a switch and diode?
4. What is subckt?
5. What is your conclusion after doing the analysis?
KHIT-GUNTUR Page 75 of 91
Electrical Simulation Lab Manual EEE
MODEL WAVEFORMS:
80V
40V
0V
-40V
1.50ms 1.51ms 1.52ms 1.53ms 1.54ms 1.55ms 1.56ms 1.57ms 1.58ms 1.59ms
V(3) V(1)
Time
KHIT-GUNTUR Page 76 of 91
Electrical Simulation Lab Manual EEE
KHIT-GUNTUR Page 77 of 91
Electrical Simulation Lab Manual EEE
AIM: To find the load flow solution of a given power system using Gauss-Seidel and
Newton Raphson methods.
THEORY:
MA TLAB has a rich collection of functions immediately useful to the control
engineer or system theorist. Complex arithmetic, eigen values, root finding, matrix inversion,
and FFT are just a few examples of MATLAB important numerical tools. More generally,
MA TLAB linear algebra, matrix computation, and numerical analysis capabilities provide a
reliable foundation for control system engineering as well as many other disciplines.
Electrical power systems are combinations of electrical circuits and
electromechanical devices like motors and generators. Engineers working in this discipline
KHIT-GUNTUR Page 78 of 91
Electrical Simulation Lab Manual EEE
are constantly improving the performance of the systems. Requirements for drastically
increased efficiency have forced power system designers to use power electronic devices and
sophisticated control system concepts that tax traditional analysis tools and techniques.
Further complicating the analyst's role is the fact that the system is often so nonlinear that the
only way to understand it is through simulation. Land-based power generation from
hydroelectric, steam, or other devices is not the only use of power systems. A common
attribute of these systems is their use of power electronics and control systems to achieve
their performance objectives.
SimPowerSystems was designed to provide a modern design tool that will allow
scientists and engineers to rapidly and easily build models that simulate power systems.
SimPowerSystems uses the Simulink® environment, allowing a model to be built using
simple click and drag procedures. Not only can you draw the circuit topology rapidly, but
your analysis of the circuit can include its interactions with mechanical, thermal, control, and
other disciplines. This is possible because all the electrical parts of the simulation interact
with the extensive Simulink modeling library. Since Simulink uses MA TLAB@ as the
computational engine, designers can also use MA TLAB toolboxes and Simulink block sets.
Users can rapidly put SimPowerSystems to work. The libraries contain models of
typical power equipment such as transformers, lines, machines, and power electronics. These
models are proven ones coming from textbooks, and their validity is based on the experience
of the Power Systems Testing and Simulation Laboratory of Hydro-Quebec, a large North
American utility located in Canada. And for users who want to refresh their knowledge of
power system theory, there are also self-learning case studies.
Several computer programs have been developed for the power flow solution
of practical systems. Each method of solution consists of four programs. The program for the
Gauss-Seidel method is LF-gauss, which is preceded by LF-Y-bus, and is followed by bus-
out and line-flow. Programs LF-Y-bus, bus-out, and line-flow are designed to be used with
two more power flow programs. These are LF-Newton for the Newton-Raphson method and
decouple for the fast decoupled method. The following is a brief description of the programs
used in the Gauss-Seidel method.
LF-Y-Bus:
This program requires the line and transformer parameters and transformer tap
KHIT-GUNTUR Page 79 of 91
Electrical Simulation Lab Manual EEE
settings specified in the input file named linedata. It converts impedances to admittances and
obtains the bus admittance matrix. The program is designed to handle parallel lines.
LF-Gauss:
This program obtains the power flow solution by the Gauss - Seidel method
and requires the files named busdata and linedata. It is designed for the direct use of load and
generation in MW and Mvar, bus voltages in per unit, and angle in degrees. Loads and
generation are converted to per unit quantities on the base MVA selected. A provision is
made to maintain the generator reactive power of the voltage-controlled buses within their
specified limits. The violation of reactive power limit may occur if the specified voltage is
either too high or too low. After a few iterations (10th iteration in the Gauss method), the var
calculated at the generator buses are examined. If a limit is reached, the voltage magnitude is
adjusted in steps of 0.5 percent up to 5 percent to bring the var demand within the specified
limits.
Busout:
This program produces the bus output result in a tabulated form. The bus
output result includes the voltage magnitude and angle, real and reactive power of generators
and loads, and the shunt capacitor/reactor Mvar. Total generation and total load are also
included as outlined in the sample case.
Lineflow:
This program prepares the line output data. It is designed to display the active
and reactive power flow entering the line terminals and line losses as well as the net power at
each bus. Also included are the total real and reactive losses in the system. The output of this
portion is also shown in the sample case.
Data preparation:
In order to perform a power flow analysis by the Gauss-Seidel method in the
MATLAB environment, the following variables must be defined: power system base MVA,
power mismatch accuracy, acceleration factor, and maximum number of iterations. The name
(in lowercase letters) reserved for these variables are basemva, accuracy, accel and maxiter,
respectively.
Typical values are as follows:
Basemva = 100 ; Accel =1.6;
KHIT-GUNTUR Page 80 of 91
Electrical Simulation Lab Manual EEE
Accuracy = 0.001; Maxiter = 80;
The initial step in the preparation of input file is the numbering of each bus.
Buses are numbered sequentially. Although the numbers are sequentially assigned, the buses
need not be entered in sequence. In addition, the following data files are required.
BUS DATA FILE - Busdata:
The format for the bus entry is chosen to facilitate the required data for each
bus in a single row. The information required must be included in a matrix called busdata.
Column 1 is the bus number. Column 2 contains the bus code. Columns 3 and 4 are voltage
magnitude in per unit and phase angle in degrees. Columns 5 and 6 are load MW and Mvar.
Columns 7 through 10 are MW, Mvar, minimum Mvar and maximum Mvar of generation, in
that order. The last column is the injected Mvar of shunt capacitors. The bus code entered in
column 2 is used for identifying load, voltage-controlled, and slack buses as outlined below:
1. This code is used for the slack bus. The only necessary information for this
bus is the voltage magnitude and its phase angle. This code is used for load buses. The loads
are entered positive in megawatts and megavars. For this bus, initial voltage estimate must be
specified. This is usually 1 and 0 for voltage magnitude and phase angle, respectively. If
voltage magnitude and phase angle for this type of bus are specified, they will be taken as the
initial starting voltage for that bus instead of a flat start of 1 and O.
2. This code is used for the voltage-controlled buses. For this bus, voltage
magnitude, real power generation in megawatts, and the minimum and maximum limits of the
megavar demand must be specified.
KHIT-GUNTUR Page 81 of 91
Electrical Simulation Lab Manual EEE
PROGRAM:
GUASS-SIEDEL METHOD:
PROCEDURE:
GUASS-SIEDEL METHOD:
1. Open the MA TLAB Command window by clicking on the MA TLAB.exe icon.
2. Enter the programs LF-Y-Bus, LF-Gauss, busout and lineflow in the MA TLAB Text
Editor.
3. Prepare the line, transformer parameters and transformer tap settings data in a matrix
KHIT-GUNTUR Page 82 of 91
Electrical Simulation Lab Manual EEE
named linedata.
4. Run the programs bus, LF-Gauss, busout and lineflow in MA TLAB Command Window to
get the power flow solution using Gauss-Seidel Method.
2. Enter the programs LF-Bus, LF-Newton busout and lineflow in the MATLAB Text Editor.
3. Prepare the line, transformer parameters and transformer tap settings data in a matrix
named line data.
4. Run the programs LF-Y-Bus, LF-Newton, busout and line flow in MATLAB Command
Window to get the power flow solution using Newton-Raphson.
RESULT:
REVIEW QUESTIONS:
KHIT-GUNTUR Page 83 of 91
Electrical Simulation Lab Manual EEE
KHIT-GUNTUR Page 84 of 91
Electrical Simulation Lab Manual EEE
AIM: To find the total fault current and magnitude of bus voltages and line Currents
during
(i) Single line to ground fault. (ii) Line to line fault.
(iii) Double line to ground fault. (iv) Symmetrical 3phase fault.
THEORY:
MA TLAB has a rich collection of functions immediately useful to the
control engineer or system theorist. Complex arithmetic, eigen values, root-finding,
matrix inversion, and FFT are just a few examples of MATLAB important numerical
tools. More generally, MA TLAB linear algebra, matrix computation, and numerical
analysis capabilities provide a reliable foundation for control system engineering as well
KHIT-GUNTUR Page 85 of 91
Electrical Simulation Lab Manual EEE
as many other disciplines.
Electrical power systems are combinations of electrical circuits
and electromechanical devices like motors and generators. Engineers working in this
discipline are constantly improving the performance of the systems. Requirements for
drastically increased efficiency have forced power system designers to use power
electronic devices and sophisticated control system concepts that tax traditional analysis
tools and techniques. Further complicating the analyst's role is the fact that the system is
often so nonlinear that the only way to understand it is or other devices is not the only use
of power systems. A common attribute of these systems is their use of power electronics
and control systems to achieve their performance objectives.
SimPowerSystems was designed to provide a modern design tool that will
allow scientists and engineers to rapidly and easily build models that simulate power
systems. SimPowerSystems uses the Simulink@ environment, allowing a model to be
built using simple click and drag procedures. Not only can you draw the circuit topology
rapidly, but your analysis of the circuit can include its interactions with mechanical,
thermal, control, and other disciplines. This is possible because all the electrical parts of
the simulation interact with the extensive Simulink modeling library. Since Simulink uses
MATLAB@ as the computational engine, designers can also use MA TLAB toolboxes
and Simulink block sets.
Users can rapidly put SimPowerSystems to work. The libraries contain
models of typical power equipment such as transformers, lines, machines, and power
electronics. These models are proven ones coming from textbooks, and their validity is
based on the experience of the Power Systems Testing and Simulation Laboratory of
Hydro-Quebec, a large North American utility located in Canada. And for users who want
to refresh their knowledge of power system theory, there are also self-learning case
studies.
KHIT-GUNTUR Page 86 of 91
Electrical Simulation Lab Manual EEE
PROGRAM:
3 - Φ SYMMETRICAL FAULT:
KHIT-GUNTUR Page 87 of 91
Electrical Simulation Lab Manual EEE
LINE TO LINE FAULT:
Line-to-line fault analysis
Enter Faulted Bus No. -> 3
Enter Fault Impedance Zf = R + j*X in complex form (for
bolted fault enter
0).
Zf = O.l*j
Line-to-line fault at bus No.3
Total fault current = 3.2075 per unit
Bus Voltages during the fault in per unit
KHIT-GUNTUR Page 88 of 91
Electrical Simulation Lab Manual EEE
Line currents for fault at bus No.3
PROCEDURE:
3 - Φ SYMMETRICAL FAULT:
KHIT-GUNTUR Page 89 of 91
Electrical Simulation Lab Manual EEE
4. Run the programs Zbus1, Zbua2 and ILfault to get the bus voltages, fault current and
line currents during the fault.
5. Enter the faulted bus no. and fault impedance, after editing the zbus1 & Zbus2.
RESULT:
REVIEW QUESTIONS:
1. Briefly explain about different types of unsymmetrical faults?
2. What is a symmetrical fault?
3. Which type of fault is most severe?
4. What is your conclusion after doing the analysis?
KHIT-GUNTUR Page 90 of 91
Electrical Simulation Lab Manual EEE
END OF MANUAL
KHIT-GUNTUR Page 91 of 91