Sunteți pe pagina 1din 60

SIMULATION LAB MANUAL

EEE DEPARTMENT

SRI VASAVI ENGINEERING COLLEGE


PEDETADEPALLI
P age |1

Experiment No: 01
Simulation of Transient Response Of RLC Circuits

AIM: To study the responses of series RLC circuits for a given step,
pulse & sinusoidal inputs.
SIMULATION TOOLS REQUIRED:
 PC with PSPICE Software

Circuit Diagram:

Circuit Diagram for Series RLC circuit


P age |2

Program:
I. Response To Pulse Input
SIMPLE RLC CIRCUIT FOR PULSE INPUT
V1 1 0 PULSE(-220 220 0 1NS 1NS 100US 200US)
R1 1 2 2OHM
L1 2 3 50UH
C1 3 0 10UF
.TRAN 1US 400US
.PLOT TRAN V(3) I(R1)
.PROBE
.END

Output Waveform:

Output Waveforms for Pulse Input


P age |3

II. Response To Step Input


Program:
SIMPLE RLC CIRCUIT FOR STEP INPUT
V1 1 0 PWL(0 0 1NS 1V 1MS 1V)
R1 1 2 2
L1 2 3 50UH
CI 3 0 10UF
.TRAN 1US 400US
.PLOT TRAN V(3) I(R1)
.PROBE
.END

Output Waveform:

Output Waveforms for Step Input


P age |4

III. Response to sinusoidal input:


Program:
SIMPLE RLC CIRCUIT FOR SINUSOIDAL INPUT
V1 1 0 SIN(0 10V 5KHZ)
R1 1 2 2
L1 2 3 50UH
C1 3 0 10UF
.TRAN 1US 400US
.PLOT TRAN V(3) I(R1)
.PROBE
.END

Output Waveform:

Output Waveforms for Sinusoidal Input


P age |5

PROCEDURE:
1. Write the program in a new text file in PSpice AD.
2. Save the file using the Extension .cir.
3. Activate the file by opening it.
4. Run the simulation process using blue button.
5. By clicking Add Trace icon, get the required waveform.

Result:
P age |6

Experiment No: 02

Analysis of three phase circuit representing the generator transmission


line and load. Plot three phase currents & neutral current

AIM: To study the analysis of simple three phase circuit for


balanced and unbalanced loads.
SIMULATION TOOLS REQUIRED:
 PC with PSPICE Software
Circuit Diagram:
I. For Balanced Load
P age |7

II. For Unbalanced Load:

PROCEDURE:
1. Write the program in a new text file in PSpice AD.
2. Save the file using the Extension .cir.
3. Activate the file by opening it.
4. Run the simulation process using blue button.
5. By clicking Add Trace icon, get the required waveform.
P age |8

PROGRAM:
I. THREE PHASE BALANCED CIRCUIT
THREE PHASE BALANCED CIRCUIT
VAN 1 0 AC 120V SIN(0 169.7V 60HZ)
VBN 2 0 AC 120V SIN(0 169.7V 60HZ 0 0 120DEG)
VCN 3 0 AC 120V SIN(0 169.7V 60HZ 0 0 240DEG)
RA 1 4 0.5OHM
RB 2 5 0.5OHM
RC 3 6 0.5OHM
RX 4 7 1
RY 5 8 1
RZ 6 9 1
R1 7 10 10
R2 8 10 10
R3 9 10 10
VX 10 0 DC 0V
.TRAN 5US 50MS
.AC LIN 1 60HZV 120HZ
.PRINT AC IM(RA) IP(RA) VM(7,10) VP(7,10)
.PRINT AC IM(RB) IP(RB) VM(8,10) VP(8,10)
.PRINT AC IM(RC) IP(RC) VM(9,10) VP(9,10)
.PRINT AC IM(VX) IP(VX)
.PROBE
.END
P age |9

II. THREE PHASE UNBALANCED CIRCUIT


PROGRAM:
THREE PHASE UNBALANCED CIRCUIT
VAN 1 0 AC 120V SIN(0 169.7V 60HZ)
VBN 2 0 AC 120V SIN(0 169.7V 60HZ 0 0 120DEG)
VCN 3 0 AC 120V SIN(0 169.7V 60HZ 0 0 240DEG)
RA 1 4 0.5
RB 2 5 0.5
RC 3 6 0.5
RX 4 7 1
RY 5 8 1
RZ 6 9 1
R1 7 10 5
R2 8 11 10
R3 9 12 10
C1 10 12 150UF
L2 11 12 120MH
VX 12 0 DC 0V
.TRAN 5US 50MS
.AC LIN 1 60HZV 120HZ
.PRINT AC IM(RA) IP(RA) VM(7,12) VP(7,12)
.PRINT AC IM(RB) IP(RB) VM(8,12) VP(8,12)
.PRINT AC IM(RC) IP(RC) VM(9,12) VP(9,12)
.PROBE
.END
P a g e | 10

Output Waveforms:

I. THREE PHASE BALANCED CIRCUIT


P a g e | 11

II. THREE PHASE UNBALANCED CIRCUIT

Result:
P a g e | 12

Experiment No: 03
Simulation of Single–Phase Full Converter Using RLE Loads And
Single Phase Ac Voltage Controller Using RL Loads
AIM: To analyze the Single Phase Full Converter With RLE Load
and Single Phase Ac Voltage Controller Using RL Load

SIMULATION TOOLS REQUIRED:


 PC with PSPICE Software

Circuit Diagram:

Circuit Diagram for Single Phase Full Converter with RLE Load
P a g e | 13

PROGRAM:
I. Single–Phase Full Converter Using RLE Load

SINGLE PHESE FULL CONVERTER CIRCUIT WITH R-L-E LOAD


VS1 1 2 SIN(0 169.7V 60HZ)
R 7 8 10
L 8 9 20MH
VDC 9 0 DC 10V
C 7 10 793UF
RA 10 0 0.1
VG1 3 7 PULSE(0 10V 2777.7US 1NS 1NS 100US 16666.7US)
VG3 4 7 PULSE(0 10V 11111.1US 1NS 1NS 100US 16666.7US)
VG2 5 2 PULSE(0 10V 2777.7US 1NS 1NS 100US 16666.7US)
VG4 6 1 PULSE(0 10V 11111.1US 1NS 1NS 100US 16666.7US)
XT1 1 7 3 7 SCR
XT2 0 2 5 2 SCR
XT3 2 7 4 7 SCR
XT4 0 1 6 1 SCR
.SUBCKT SCR 1 2 3 2
S1 1 5 6 2 SMOD
RG 3 4 50
VX 4 2 DC 0V
VY 5 2 DC 0V
RT 6 2 1
CT 6 2 10
F1 2 6 POLY(2) VX VY 0 50 11
.MODEL SMOD VSWITCH(RON=0.01 ROFF=10E+5 VON=0.5V VOFF=0V)
.ENDS SCR
.OPTIONS ABSTOL=1.00N RELTOL=1.0M VNTOL=0.1M ITL5=10000
.TRAN 1US 60MS
.PROBE
.END
P a g e | 14

Output Waveform:

Output Waveform for Single Phase Full Converter with RLE Load

Circuit Diagram:

Circuit Diagram for Single Phase A.C Voltage Controller with RL Load
P a g e | 15

II. Single Phase AC Voltage Controller Using RL Load:


PROGRAM:
SINGLE PHASE AC VOLTAGE CONTROLLER CIRCUIT WITH RL LOAD
VS1 1 0 SIN(0 169.7 60HZ)
R1 2 3 2.5
L1 3 0 6.5MH
CS 1 6 0.1UF
RS 6 4 750
VG1 4 2 PULSE(0 10V 4166.7US 1NS 1NS 100US 16666.7US)
VG2 5 1 PULSE(0 10V 12500US 1NS 1NS 100US 16666.7US)
XT1 1 2 4 2 SCR
XT2 2 1 5 1 SCR
.SUBCKT SCR 1 2 3 2
S1 1 5 6 2 SMOD
RG 3 4 50
VX 4 2 DC 0V
VY 5 2 DC 0V
RT 2 6 1
CT 6 2 10UF
F1 2 6 POLY(2) VX VY 0 50 11
.MODEL SMOD VSWITCH(RON=0.01 ROFF=10E+5 VON=0.5V VOFF=0V)
CS 1 6 0.1UF
RS 6 4 750
.ENDS SCR
.TRAN 10US 33.33MS
.PROBE
.END
P a g e | 16

Output Waveform:

Output Waveform for A.C. Voltage Controller with RL Load

PROCEDURE:
1. Write the program in a new text file in PSpice AD.
2. Save the file using the Extension .cir
3. Activate the file by opening it.
4. Run the simulation process using blue button.
5. By clicking Add Trace icon, get the required waveform.

Result:
P a g e | 17

Experiment No: 04
Simulation of Boost and Buck converters
AIM: To analyze Buck and Boost choppers using PSPICE
SIMULATION TOOLS REQUIRED:
 PC with PSPICE Software
Circuit Diagram:

Circuit Diagram For Buck Converter


P a g e | 18

Program:
I. BUCK Converter
BUCK CHOPPER
VS 1 0 DC 110V
VY 1 2 DC 0V
VG 7 3 PULSE(0V 20V 0 0.1NS 0.1NS 27.28US 50US)
RB 7 6 250
LE 3 4 681.824UH
CE 4 0 8.33UF
L 4 8 40.91UH
R 8 5 3
VX 5 0 DC 0V
DM 0 3 DMOD
.MODEL DMOD D(IS=2.2E-15 BV=1800 TT=0)
Q1 2 6 3 QMOD
.MODEL QMOD NPN (IS=6.73UF BF=416.4 BR=0.7371 CJC=3.638P
CJE=4.493P TR=239.5N TF=301.2P)
.TRAN 1US 1.6MS 1.5MS 1US UIC
.PROBE
.OPTIONS ABSTOL=1.00N RELTOL=0.01 VNTOL=0.1 ITL5=50000
.END

Circuit Diagram:

Circuit Diagram for Boost Coverter


P a g e | 19

II. BOOST Converter


Program:
BOOST CONVERTER
VS 1 0 DC 5V
VY 1 2 DC 0V
VG 7 0 PULSE(0V 6V 0 0.1NS 0.1NS 26.7US 40US)
RG 7 0 10MEG
RB 7 6 10K
R 5 0 100
C 5 0 220UF IC=12V
L 2 3 150UH
VX 4 5 DC 0V
DM 3 4 DMOD
.MODEL DMOD D(IS=2.2E-15 BV=1200V IBV=13E-3 CJO=0
TT=0)
M1 3 6 0 0 IRF150
.MODEL IRF150 NMOS(VTO=2.83 KP=31.2 L=1U W=30M
CGDO=0.418N CGSO=2.032N)
.TRAN 0.1US 2MS 1.8MS UIC
.PROBE
.OPTIONS ABSTOL=1.00N RELTOL=0.01 VNTOL=0.1
ITL5=40000
.FOUR 25KHZ I(VY)
.END

PROCEDURE:
1. Write the program in a new text file in PSpice AD.
2. Save the file using the Extension .cir.
3. Activate the file by opening it.
4. Run the simulation process using blue button.
5. By clicking Add Trace icon, get the required waveform.
P a g e | 20

Output Waveforms:
Buck Converter

Boost Converter

Result:
P a g e | 21

Experiment No: 05
Integrator & Differentiator Circuits Using OP–Amp
AIM: To simulate an Op-amp based Integrator & Differentiator
circuits using Pspice.
SIMULATION TOOLS REQUIRED:
 PC with PSPICE Software

Circuit Diagram:

Circuit Diagram for Integrator


P a g e | 22

Circuit Diagram for Differentiator

PROCEDURE:
1. Write the program in a new text file in PSpice AD.
2. Save the file using the Extension .cir.
3. Activate the file by opening it.
4. Run the simulation process using blue button.
5. By clicking Add Trace icon, get the required waveform.
P a g e | 23

Programs:
I. INTEGRATOR
ANALYSIS OF INTEGRATOR CIRCUIT
VIN 1 0 PWL(0 0 1NS -1V 1MS -1V 1.0001MS 1V 2MS 1V 2.0001MS -
1V 3MS -1V 3.0001MS 1V 4MS 1V)
R1 1 2 2.5K
RF 2 4 1MEG
RX 3 0 1KOHM
RL 4 0 10K
C1 2 4 0.1UF
XA1 2 3 4 0 OPAMP
.SUBCKT OPAMP 1 2 7 4
RI 1 2 2.0E6
GB 4 3 1 2 0.1M
R1 3 4 10K
C1 3 4 1.5619UF
EA 4 5 3 4 2E+5
R0 5 7 75
.ENDS
.TRAN 50US 4MS
.PLOT TRAN V(4) V(1)
.PLOT AC VM(4) VP(4)
.PROBE
.END
P a g e | 24

II. DIFFERENTIATOR
ANALYSIS OF DIFFERENTIATOR CIRCUIT
VIN 1 0 PWL(0 0 1MS 1 2MS 0 3MS 1 4MS 0)
R1 1 2 100
RF 3 4 10K
RX 5 0 10K
RL 4 0 100K
C1 2 3 0.4UF
XA1 3 5 4 0 OPAMP
.SUBCKT OPAMP 1 2 7 4
RI 1 2 2.0E6
GB 4 3 1 2 0.1M
R1 3 4 10K
C1 3 4 1.5619UF
EA 4 5 3 4 2E+5
RO 5 7 75
.ENDS OPAMP
.TRAN 10US 4MS
.PLOT TRAN V(4) V(1)
.PROBE
.END
P a g e | 25

Output Waveforms:
I. Integrator

II. Differentiator

Result:
P a g e | 26

Experiment No: 06
Simulation of Single Phase Inverter with PWM Control
AIM: PSPICE analysis of single phase inverter with PWM control.
SIMULATION TOOLS REQUIRED:
 PC with PSPICE Software
Circuit Diagram:
P a g e | 27

Program:
PULSE WIDTH MODULATION
VS 1 0 DC 100V
VR 17 0 PULSE(50V 0V 0 833.33US 833.33US 1NS 1666.67US)
RR 17 0 2MEG
VC1 15 0 PULSE(0 -30V 0 1NS 1NS 8333.33US 16666.67US)
RC1 15 0 2MEG
VC3 16 0 PULSE(0 -30V 8333.33US 1NS 1NS 8333.33US 16666.67US)
RC3 16 0 2MEG
R 4 6 2.5
VX 3 4 DC 0V
VY 1 2 DC 0V
D1 3 2 DMOD
D2 0 6 DMOD
D3 6 2 DMOD
D4 0 3 DMOD
.MODEL DMOD D (IS=2.2E-15 BV=1800V TT=0)
Q1 2 7 3 QMOD
Q2 6 9 0 QMOD
Q3 2 11 6 QMOD
Q4 3 13 0 QMOD
.MODEL QMOD NPN (IS=6.734F BF=416.4 CJC=3.638P CJE=4.493P)
RG1 8 7 100
RG2 10 9 100
RG3 12 11 100
RG4 14 13 100
XPW1 17 15 8 3 PWM
XPW2 17 15 10 0 PWM
XPW3 17 16 12 6 PWM
XPW4 17 16 14 0 PWM
.SUBCKT PWM 1 2 3 4
R1 1 5 1K
R2 2 5 1K
RIN 5 0 2MEG
RF 5 3 100K
RO 6 3 75
P a g e | 28

CO 3 4 10PF
E1 6 4 0 5 2E+5
.ENDS PWM
.TRAN 10US 16.67MS 0 10US
.PROBE
.OPTIONS ABSTOL=1.00N RELTOL=0.01 VNTOL=0.1 ITL5=20000
.FOUR 60HZ V(3,6)
.END

Output Waveform:

PWM Inverter
P a g e | 29

PROCEDURE:
1. Write the program in a new text file in PSpice AD.
2. Save the file using the Extension .cir.
3. Activate the file by opening it.
4. Run the simulation process using blue button.
5. By clicking Add Trace icon, get the required waveform.

Result:
P a g e | 30

Experiment No: 07
Modeling of Transformer and Simulation of Lossy Transmission
Line
Aim: Modeling Of Transformer and Simulation of Lossy
Transmission Line
Simulation Tools Required:
 PC with PSPICE Software
Modelling of Transformer
Circuit Diagram:

PROCEDURE:
1. Write the program in a new text file in PSpice AD.
2. Save the file using the Extension .cir.
3. Activate the file by opening it.
4. Run the simulation process using blue button.
5. By clicking Add Trace icon, get the required waveform.
P a g e | 31

Theoretical Calculations
P a g e | 32

Program:
MODELLING OF TRNSFORMER
VIN 1 0 SIN(0V 120V 50HZ)
VY 1 5 DC 0V
R1 5 2 0.5
L1 2 0 0.5MH
L2 4 0 0.5MH
K12 L1 L2 0.999
R2 4 6 0.5
RL 6 7 150
VX 7 0 DC 0V
.TRAN 10US 35MS
.AC LIN 2 60HZ 120HZ
.PRINT AC IM(VY) IP(VY) IM(RL) IP(RL)
.PROBE
.END

Simulation of Lossy Transmission Line

Circuit Diagram:
P a g e | 33

Program:

SIMULATION OF LOSSY TRANSMISSION LINE


V1 1 0 PULSE(0 1V 0 1NS 1NS 1U 20U)
R1 1 2 50
R2 1 3 50
T1 2 0 4 0 Z0=50 TD=10U
T2 3 0 5 0 LEN=2564 R=0.025 L=0.195UH G=0 C=78PF
R3 4 0 50
R4 5 0 50
.TRAN 1US 20US
.PROBE
.END

Output Waveforms:

I. Modelling of Transformer
P a g e | 34

II. Simulation of Lossy Transmission Line

PROCEDURE:
1. Write the program in a new text file in PSPICE AD.
2. Save the file using the Extension .cir
3. Activate the file by opening it.
4. Run the simulation process using blue button.
5. By clicking Add Trace icon, get the required waveform.

Result:
P a g e | 35

Experiment No: 08

STABILITY ANALYSIS OF LINEAR TIME


INVARIANT SYSTEMS
(Bode, Root Locus, Nyquist plots using MATLAB)
AIM: To analyze the stability of given linear time invariant systems
using MATLAB.
SIMULATION TOOLS REQUIRED:
 PC with MATLAB Software

Transfer Function-1:
G(s) =
. . . .

Program:
%Bode plot, Root Locus & Nyquist Plots for Transfer Function-1%
clc;
clear all;
a=[150 90 12];
b=[1 12.02 47.24 60.94 1.2 0]
h=tf(a,b);
bode(h);
figure;
nyquist(h);
figure;
rlocus(h);
P a g e | 36

Transfer Function-2:

Program:

%Bode plot, Root Locus & Nyquist Plots for Transfer Function-2%
clc;
clear all;
a=[1 2.2 5];
b=[1 9.5 2.8 20 15 0]
h=tf(a,b);
bode(h);
figure;
nyquist(h);
figure;
rlocus(h);

PROCEDURE:
1. Open the MATLAB command window clicking on the MATLAB
icon.
2. Click on file menu and open new M file.
3. Enter the MATLAB code.
4. Click on the debug menu and run the code.
5. Then copy the obtained plot
P a g e | 37

Theoretical Calculation for Transfer Function 1&2:


P a g e | 38
P a g e | 39
P a g e | 40
P a g e | 41
P a g e | 42
P a g e | 43
P a g e | 44
P a g e | 45

Model Graphs:
For Transfer Function-1
P a g e | 46
P a g e | 47
P a g e | 48

For Transfer Function-2


P a g e | 49
P a g e | 50

Result:
P a g e | 51

Experiment No: 09
Simulation Of D.C Separately Excited Motor Using
Transfer Function Approach
Aim: To analyze the stability of linear time Invarient system using
MATLAB.

SIMULATION TOOLS REQUIRED:


 PC with MATLAB Software
PROCEDURE:
1. Open the Simulink library browser in MATLAB.
2. Open a new page to create model.
4. Construct the block diagrams using the devices in the library
browser.
5. Save the file and click the simulation button (black) to start
simulation.
6. Click the scope to view the output response

Block Diagram:
P a g e | 52

Simulink Model Diagram:

Model Graphs:

Result:
P a g e | 53

Experiment No: 10

Transient Analysis of Single Machine Connected to


Infinite Bus (SMIB)
Aim: To Perform Transient and Small Signal Analysis on a given machine connected to
an Infinite Bus.

SIMULATION TOOLS REQUIRED:


 PC with MATLAB Software

Theoretical Calculations:
Question:
P a g e | 54

Solution:
P a g e | 55
P a g e | 56

Program:
%Transient Stability of Single Machine Connected to an Infinite Bus%
clc;
clear all;
E=1.35;
V=1.0;
H=9.94;
X=0.65;
Pm=0.6;
D=0.138;
fo=60;
Pmax=E*V/X;
do=(asin(Pm/Pmax));
Ps=Pmax*cos(do);
Wn=sqrt(3.14*60/(H*Ps));
Z=D/2*sqrt(3.14*60/(H*Ps));
Wd=Wn*sqrt(1-Z^2);
fd=Wd/(2*3.14);
tan=1/(Z*Wn);
th=acos(Z);
Ddo=10*3.14/180;
t=0:0.01:3;
Dd=Ddo/sqrt(1-Z^2)*exp(-Z*Wn*t).*sin(Wd*t+th);
d=(do+Dd)*(180/3.14);
P a g e | 57

Dw=Wn*Ddo/sqrt(1-Z^2)*exp(-Z*Wn*t).*sin(Wd*t);
f=fo+Dw/(2*3.14);
plot(t,d);
title('variation of rotor angle');
xlabel('tsec');
ylabel('delta degree');
plot(t,f);
grid
xlabel('tsec');
ylabel('frequency as hertz');
title('variation of generator frequency');

PROCEDURE:
1. Open the MATLAB command window clicking on the MATLAB
icon.
2. Click on file menu and open new M file.
3. Enter the MATLAB code.
4. Click on the debug menu and run the code.
5. Then copy the obtained plot
P a g e | 58

Model Graphs:
P a g e | 59

Result:

S-ar putea să vă placă și