Simulation Lab Manual
Simulation Lab Manual
Simulation Lab Manual
TECH
YEAR/SEM : I – II
EEE Page 1
948 EPS & EPE M.TECH
LIST OF EXPERIMENTS
EEE Page 2
948 EPS & EPE M.TECH
(1) DETERMINATION OF STABILITY OF A DYNAMIC SYSTEM
PROCEDURE:
1. Click on matlab icon, then the matlab window will open.
2. In the tool bar from file choose a blank M-File then the file will open.
3. Enter the program and click on the run option.
4. The output (or) result will be display in main matlab window.
PROGRAM:
(A) ROOT LOCUS:
num=[1];
den=[1 5 6 0];
s=tf(num,den)
rlocus(s)
(B) BODE PLOT:
num=[10];
den=[0.02 1.02 1 0];
s=tf(num,den)
bode(s)
EEE Page 3
948 EPS & EPE M.TECH
THEORETICAL CALCULATIONS:
EEE Page 4
948 EPS & EPE M.TECH
EEE Page 5
948 EPS & EPE M.TECH
EEE Page 6
948 EPS & EPE M.TECH
RESULT: Thus the stability of a system using root locus, bode plot and nyquist plot with
transfer function were determined.
EEE Page 7
948 EPS & EPE M.TECH
(2) Y-BUS FORMATION USING MATLAB
PROCEDURE:
1. Click on matlab icon, then the matlab window will open.
2. In the tool bar from file choose a blank M-File then the file will open.
3. Enter the program and click on the run option.
4. The output (or) result will be display in main matlab window.
PROGRAM:
zdata=[1 2 0.05 0.15
1 3 0.1 0.3
2 3 0.15 0.45
2 4 0.1 0.3
3 4 0.05 0.15];
Y= ybus(zdata)
THEORETICAL CALCULATIONS:
EEE Page 8
948 EPS & EPE M.TECH
RESULT: Thus the YBUS determined for the given Power System network and verified with
the MATLAB results.
EEE Page 9
948 EPS & EPE M.TECH
3) LOAD FLOW ANALYSIS BY NEWTON RAPHSON AND GAUSS SEIDAL
METHOD USING MATLAB
AIM: To obtain load flow analysis by gauss seidal and Newton raphson method using
matlab.
PROCEDURE:
1. Click on matlab icon, then the matlab window will open.
2. In the tool bar from file choose a blank M-File then the file will open.
3. Enter the program and click on the run option.
4. The output (or) result will be display in main matlab window.
PROGRAM:
(a) Gauss-seidel Method:
basemva=100;
accuracy=0.0001;
maxiter=30;
acceleration=1.6;
busdata=[1 1 1.04 0 0 0 00000
2 0 1.0 0 50 -20 0 0 0 0 0
3 0 1.0 0 -100 50 0 0 0 0 0
4 0 1.0 0 30 -10 0 0 0 0 0];
linedata=[1 2 0.05 0.15 0 1
1 3 0.10 0.30 0 1
2 3 0.15 0.45 0 1
2 4 0.10 0.30 0 1
3 4 0.05 0.15 0 1];
lfybus
lfgauss
busout
EEE Page 10
948 EPS & EPE M.TECH
lineflow
EEE Page 11
948 EPS & EPE M.TECH
RESULT: Thus, the Load Flow Analysis of a given power system network is obtained by
Gauss-Seidel and Newton- Raphson method using MATLAB.
EEE Page 12
948 EPS & EPE M.TECH
4) LOAD FLOW ANALYSIS BY FAST DECOUPLED METHOD USING MATLAB
AIM: To obtain load flow analysis by fast decoupled method using matlab.
PROCEDURE:
1. Click on matlab icon, then the matlab window will open.
2. In the tool bar from file choose a blank M-File then the file will open.
3. Enter the program and click on the run option.
4. The output (or) result will be display in main matlab window.
PROGRAM:
basemva=100;
accuracy=0.0001;
maxiter=30;
acceleration=1.6;
busdata=[1 1 1.04 0 0 0 0 0 0 0 0
2 0 1.0 0 50 -20 0 0 0 0 0
3 0 1.0 0 -100 50 0 0 0 0 0
4 0 1.0 0 30 -10 0 0 0 0 0];
linedata=[1 2 0.05 0.15 0 1
1 3 0.10 0.30 0 1
2 3 0.15 0.45 0 1
2 4 0.10 0.30 0 1
3 4 0.05 0.15 0 1];
lfybus
decouple
busout
lineflow
RESULT: Thus, the Load Flow Analysis of a given power system network is obtained by
fast decoupled method using MATLAB.
EEE Page 13
948 EPS & EPE M.TECH
(5) TRANSFORMATION OF A GIVEN DYNAMIC SYSTEM FROM INPUT OR
OUTPUT MODEL TO STATE SPACE
AIM: To obtain the state space model for the given transfer function of a system and transfer
function model for the given state space mode of a system using MATLAB.
PROCEDURE:
1. Click on matlab icon, then the matlab window will open.
2. In the tool bar from file choose a blank M-File then the file will open.
3. Enter the program and click on the run option.
4. The output (or) result will be display in main matlab window.
PROGRAM:
(1a) TRANSFER FUNCTION MODEL TO STATE SPACE MODEL:
num=[3 3]
den=[1 9 24 20]
s=tf(num,den)
[a b c d]=tf2ss(num,den)
a=[-5 -1
3 -1]
b=[2
EEE Page 14
948 EPS & EPE M.TECH
5]
c=[1 2]
d=[0]
[num,den]=ss2tf(a,b,c,d)
a=[0 1 0
001
-6 -11 -6]
b=[0
0
1]
c=[1 0 0]
d=[0]
[num,den]=ss2tf(a,b,c,d)
THEORETICAL CALCULATIONS:
EEE Page 15
948 EPS & EPE M.TECH
EEE Page 16
948 EPS & EPE M.TECH
RESULT: Thus the transfer function for the given state model and state model for the given
transfer function are obtained by using MATLAB.
EEE Page 17
948 EPS & EPE M.TECH
(6) STEP RESPONSE OF TWO AREA SYSTEM WITH INTEGRAL CONTROL
AND ESTIMATION OF TIE LINE POWER DEVIATION USING SIMULINK
AIM: To obtain the step response of two area system with integral control and estimation of
tie line power deviation using simulink.
BLOCK DIAGRAM:
PROCEDURE:
1. Click on matlab icon, then the matlab window will open.
2. In the tool bar from file choose a model then the window will open.
3. Click on the library browser on the tool bar then drag the required components.
4. Connect the blocks and click on the run option.
5. Click on scope the result will be displayed.
EEE Page 18
948 EPS & EPE M.TECH
EEE Page 19
948 EPS & EPE M.TECH
RESULT: Therefore, the step response of two area systems with integral control and
estimation of tie-line power deviation using simulink were obtained.
EEE Page 20
948 EPS & EPE M.TECH
(7) STEP RESPONSE OF TWO AREA SYSTEM WITH INTEGRAL CONTROL
AND ESTIMATION OF TIE LINE AND FREQUENCY DEVIATION USING
SIMULINK
AIM: To obtain the step response of two area system with integral control and estimation of
tie line frequency deviation using simulink.
BLOCK DIAGRAM:
PROCEDURE:
1. Click on matlab icon, then the matlab window will open.
2. In the tool bar from file choose a model then the window will open.
3. Click on the library browser on the tool bar then drag the required components.
4. Connect the blocks and click on the run option.
5. Click on scope the result will be displayed.
EEE Page 21
948 EPS & EPE M.TECH
EEE Page 22
948 EPS & EPE M.TECH
RESULT: Therefore, the step response of two area systems with integral control and
estimation of tie-line frequency deviation using simulink were obtained.
EEE Page 23
948 EPS & EPE M.TECH
(8) TRANSIENT STABILITY ANALYSIS USING MATLAB
AIM: To determine the transient stability analysis of single machine system by equal area
criterian.
PROCEDURE:
1. Click on matlab icon, then the matlab window will open.
2. In the tool bar from file choose a blank M-File then the file will open.
3. Enter the program and click on the run option.
4. The output (or) result will be display in main matlab window.
PROGRAM:
CASE 1: SUDDEN INCREASE IN MECHANICAL INPUT:
A) With zero initial mechanical power:
P=0.0;e=1.35;v=1.0;x=0.65;
eacpower(p,e,v,x)
EEE Page 24
948 EPS & EPE M.TECH
eacfault(p,e,v,x1,x2,x3)
EEE Page 25
948 EPS & EPE M.TECH
EEE Page 26
948 EPS & EPE M.TECH
EEE Page 27
948 EPS & EPE M.TECH
EEE Page 28
948 EPS & EPE M.TECH
EEE Page 29
948 EPS & EPE M.TECH
EEE Page 30
948 EPS & EPE M.TECH
EEE Page 31
948 EPS & EPE M.TECH
EEE Page 32
948 EPS & EPE M.TECH
EEE Page 33
948 EPS & EPE M.TECH
(9) SHORT CIRCUIT ANALYSIS USING MATLAB
AIM: To Conduct short circuit analysis for given power system using MATLAB for LG,
LL, LLG and 3Φ faults.
PROCEDURE:
1. Click on matlab icon, then the matlab window will open.
2. In the tool bar from file choose a blank M-File then the file will open.
3. Enter the program and click on the run option.
4. The output (or) result will be display in main matlab window.
5. Enter the fault bus number and Zf=j*0.1 and continue for the remaining buses and faults.
PROGRAM:
zdata0=[0 1 0 0.40
0 2 0 0.10
1 2 0 0.30
1 3 0 0.35
2 3 0 0.7125];
zdata1=[0 1 0 0.25
0 2 0 0.25
1 2 0 0.125
1 3 0 0.15
2 3 0 0.25];
zdata2 = zdata1;
zbus1= zbuild(zdata1)
zbus2 = zbus1
zbus0=zbuild(zdata0)
symfault(zdata1,zbus1)
lgfault(zdata0,zbus0,zdata1,zbus1,zdata2,zbus2)
llfault(zdata1,zbus1,zdata2,zbus2)
EEE Page 34
948 EPS & EPE M.TECH
dlgfault(zdata0,zbus0,zdata1,zbus1,zdata2,zbus2)
EEE Page 35
948 EPS & EPE M.TECH
EEE Page 36
948 EPS & EPE M.TECH
EEE Page 37
948 EPS & EPE M.TECH
EEE Page 38
948 EPS & EPE M.TECH
RESULT: Thus the Fault Current and other parameters were determined for the given
power system network for different types of faults and results were compared with the
MATLAB results.
EEE Page 39
948 EPS & EPE M.TECH
(10) STEADY STATE TRANSIENT SIMULATION OF A LINEAR CIRCUIT
AIM: To obtain the steady state and transient simulation of voltage and currents of given
line (or) circuit simulation power tool box.
PROCEDURE:
1. Click on matlab icon, then the matlab window will open.
2. In the tool bar from file choose a model then the window will open.
3. Click on the library browser on the tool bar then drag the required components.
4. Connect the blocks and click on the run option.
5. Click on scope the result will be displayed and check the values in powergui as a steady
state voltages and currents.
CIRCUIT DIAGRAM:
EEE Page 40
948 EPS & EPE M.TECH
Vs=187.29kv, Rs=2.654 ohms, Ls=0.08419 H,
Rt=5.25 ohms, Lt=0.138 H, C=0.967*10-6 F,
RL=235.11 ohms, LL=881.66H, Rb=0.01 ohms
RESULT: The steady state and transient simulation of voltage and currents of given line (or)
circuit simulation power tool box is obtained.
EEE Page 41
948 EPS & EPE M.TECH
(11) SIMULATION OF DOUBLE AREA CRITERIA
PROCEDURE:
1. Click on matlab icon, then the matlab window will open.
2. In the tool bar from file choose a model then the window will open.
3. Click on the library browser on the tool bar then drag the required components.
4. Connect the blocks and click on the run option.
5. Click on scope the result will be displayed.
CIRCUIT DIAGRAM:
EEE Page 42
948 EPS & EPE M.TECH
EXPECTED WAVEFORM:-
RESULT: Thus simulated the double area criteria using matlab software.
EEE Page 43
948 EPS & EPE M.TECH
(12) SIMULATION OF SINGLE AREA CRITERIA
PROCEDURE:
1. Click on matlab icon, then the matlab window will open.
2. In the tool bar from file choose a model then the window will open.
3. Click on the library browser on the tool bar then drag the required components.
4. Connect the blocks and click on the run option.
5. Click on scope the result will be displayed.
CIRCUIT DIAGRAM:
SINGLE AREA WITH PI CONTROLLER:
EEE Page 44
948 EPS & EPE M.TECH
EXPECTED WAVEFORM:
EEE Page 45
948 EPS & EPE M.TECH
EXPECTED WAVEFORM:
RESULT: Thus simulated the single area criteria with and without PI controller using
matlab.
EEE Page 46
948 EPS & EPE M.TECH
(13) SIMULATION OF AUTOMATIC VOLTAGE REGULATOR
PROCEDURE:
1. Click on matlab icon, then the matlab window will open.
2. In the tool bar from file choose a model then the window will open.
3. Click on the library browser on the tool bar then drag the required components.
4. Connect the blocks and click on the run option.
5. Click on scope the result will be displayed.
CIRCUIT DIAGRAM:
EEE Page 47
948 EPS & EPE M.TECH
EXPECTED WAVEFORM:
EEE Page 48
948 EPS & EPE M.TECH
(14) ARMATURE AND FIELD CONTROL OF DC MOTOR
AIM: To simulate the armature and field control of dc motor using matlab.
PROCEDURE:
1. Click on matlab icon, then the matlab window will open.
2. In the tool bar from file choose a model then the window will open.
3. Click on the library browser on the tool bar then drag the required components.
4. Connect the blocks and click on the run option.
5. Click on scope the result will be displayed.
CIRCUIT DIAGRAM:
(A) ARMATURE CONTROL OF DC MOTOR:
EEE Page 49
948 EPS & EPE M.TECH
EXPECTED WAVEFORM:
EEE Page 50
948 EPS & EPE M.TECH
EXPECTED WAVEFORM:
RESULT: Thus simulated the armature and field control of dc motor using matlab.
EEE Page 51
948 EPS & EPE M.TECH
(15) SIMULATION OF SWING EQUATION
PROCEDURE:
1. Click on matlab icon, then the matlab window will open.
2. In the tool bar from file choose a model then the window will open.
3. Click on the library browser on the tool bar then drag the required components.
4. Connect the blocks and click on the run option.
5. Click on scope the result will be displayed.
CIRCUIT DIAGRAM:
EEE Page 52
948 EPS & EPE M.TECH
EXPECTED WAVEFORM:
EEE Page 53