Documente Academic
Documente Profesional
Documente Cultură
LIST OF EXPERIMENTS
EXPERIMENT-1
SIMULATION OF DYNAMIC RESPONSE OF
PARALLEL RLC CIRCUIT
OBJECTIVES:
1) To investigate dynamic response of parallel RLC circuit
BACKGROUND
Consider the implementation and verification of the simple parallel RLC circuit
shown in Fig. 1.1. It has the following circuit equations:
Eq (1.1)
Eq (1.2)
Eq (1.3)
Choosing the inductor current and capacitor voltage as state of the system, the
above circuit equation can be written in terms of the two states and the input
voltage as follows:
Eq (1.4)
PROCEDURE
1) For determining the analytical results that we will use to verify the
simulation, we will consider the transient response of the RLC
circuit to be a step function voltage.
2) Start up MATLAB and SIMULINK, double-click on the SIMULINK
file menu and use the open file command to select and open the S2
file containing the model of the parallel RLC circuit.
3) As shown in Fig. 1.1, the step voltage excitation is simulated by a
step input generator from the SIMULINK sources block library.
4) Check the connections of the various blocks in S2 to confirm that
the simulation agrees with the mathematical model given in Eqs.
1.4.
5) Fig. 1.2 shows the use of a floating scope, Scope2, to display the
variable iC, the selected input to the floating scope being indicated
by the little black square on the output line.
OUTPUT WAVEFORMS
EXPERIMENT - 2
SIMULATION OF TRANSIENT RESPONSE OF
AN RL CIRCUIT WITH AC EXCITATION
OBJECTIVES:
1) To investigate transient response of an RL circuit with AC excitation.
BACKGROUND:
In this third exercise, we will examine the transient response of a simple RL
circuit to an ac voltage energization; in particular, we will look at the dc offset
in the response current from energizing at different points of the ac voltage
wave. The circuit and its SIMULINK simulation are shown in Fig 2.1.
For simulation purpose, the above equation is rearranged into its integral form:
Where the time constant t is L/R, the impedance, Z, is √(R2+ωs2L2) and the
power factor angle,ϕ, is tan-1(ωsL/R). constant A can determined from the initial
condition of i(0)=0, that is
Thus
It is evident from the above expression that the current, i(t), will have some dc
offset when the circuit is being energized at a point of the wave other than at
θ = ϕ, and that the dc offset decays off at a rate equal to the L/R time constant
of the RL circuits.
Figure 2.2 shows the result for the case when the RL circuit with zero
initial inductor current is being energized with a sin wave voltage of 100sin314t
v. determine the value of the power factor angle of the RL circuit ϕ, use it in a
run where the sin wave voltage is set equal to 100sin(314t+ ϕ), and note the
initial offset in the response of i(t).
MATLAB PROGRAM
% M-file for Exercise 3 RL circuit simulation
% input parameters and initial conditions
R = 0.4; %R = 0.4 ohm
L = 0.04; %L = 0.04 Henry
we = 314; % excitation frequency in rad/sec
Vac_mag = 100; % magnitude of ac voltage Vac in Volts
iLo = 0; % initial value of inductor current
tstop = 0.5; % stop time for simulation
disp('run simulation, type ''return'' when ready to return')
keyboard
subplot(2,1,1)
plot(y(:,1),y(:,2))
title('ac excitation voltage')
ylabel('Vac in V')
subplot(2,1,2)
plot(y(:,1),y(:,3))
title('mesh current')
xlabel('time in sec.')
ylabel('i in A')
OUTPUT WAVEFORMS
EXPERIMENT-3
DETERMINATION OF PER UNIT PARAMETERS OF A
THREE PHASE BUNDLED CONDUCTOR AC LINE
OBJECTIVES:
To investigate the per unit parameters of a three phase bundled conductor ac
line.
BACKGROUND:
In this project, we will first determine the per unit length parameter of a 60Hz,
345kv, three phase ac line with conductor arrangement as shown in Fig. 3.1.
next, we will compare the sending ends condition as determined using a series
RL and nominal Π with that of an equivalent Π circuit model of entire line,
160km long, delivered 120MW at 0.9 power factor lagging to a fixed receiving
end voltage, VR, of 345/√(3)∟00 kV. Finally we will examine the behavior of real
reactive power transfer through the same length of line when the angle and
magnitude of the voltage across the line are varied.
Run the ml m-file to determine the RLC parameters of the line, the ABCD
transmission matrices of the series RL, nominal Π, and equivalent Π circuit
models of the whole line. Table 3.2 shows sample results for the case where the
line length is 160km and the total power delivered to the receiving end is
120MW at 0.9 power factor lagging.
Modify the data in the M-file for the case where the line length is 240
instead of 160km. compare the result from the equivalent Π model with those
from the other two circuit models. Modify the M-file to use two nominal Π
sections for each half of the line and again compare the results obtained with
those from the equivalent Π model. Note the improvement in accuracy of the
results as compared to that from just one nominal Π section.
The complex power delivered to the receiving end can be computed from
Figure 3.2 shows the loci of the receiving ends complex power for the 160km
line based on the ABCD parameters of its equivalent Π circuit model. These
plots are obtained by varying the angle of VS over the range of ± π. The solid-
line plot is the PQ locus for a |VS| of 199.24kv. The inner dash-dot plot is for
six percent less in the sending ends voltage, and the outer dotted-line plot is
for 6% more in sending ends voltage.
From transient stability consideration, the phase difference between the
sending ends and receiving ends voltages of lines is to be kept will within 900.
Examine the data of these plots and see if you can identify the portions of these
loci that are of practical use from the point of view of lower line current and
losses for some given level of power transfer.
MATLAB PROGRAM:
% input constant
epso = 8.854e-12; % permittivity of free space in F/m
muo = 4e-7*pi; % permeability of free space in H/m
we = 2*pi*60 ; % system frequency in rad/sec
Z = R + j*we*L;
ABCD_RL = [ 1 Z; 0. 1 ]
% receiving-end condition
PR = 120e6/3; % per phase receiving-end power in W
VR = 345e3/sqrt(3); % receiving-end phase voltage in rms V used as ref
pfR = 0.9; % pf of load at receiving end
sinphiR = -sqrt(1-pfR*pfR);%sine of pf angle, neg for lagging
SR = PR*(1 - j*sinphiR/pfR)% per phase complex load power
IR = conj(SR/VR) % receiving-end current
% plot PQ locus
plot(real(SR(1,:)),imag(SR(1,:)),'-.', real(SR(2,:)),imag(SR(2,:)),'-',
real(SR(3,:)), imag(SR(3,:)),':');
title('Loci of receiving-end P+jQ')
xlabel('P in W');
ylabel('Q in Var');
axis('square'); % set for square plot
axis('equal'); % equal scaling for both axis
OUTPUT :
EXPERIMENT-4
Transient simulation of a 500 kV single phase line
OBJECTIVES:
1) To implement a Transient simulation of a 500 kV single phase line.
2) Use the simulation to study the impact of inserted circuit breaker
resistance on the breaker and line transient voltages during and
following the opening and closing of the breaker.
3) Examine the impact of line loading on the breaker and line transient
voltages.
BACKGROUND:
In the single-phase circuit of Fig. 4.1, the supply source at the sending end of
the single–phase line is represented by thevenin’s equivalent consist of a 60Hz
2
voltage source, e 500 cos et KV and source inductance, Ls=0.1H. The single-
3
phase line is 100 miles long and is to be represented by a distributed
parameter model.
The circuit breaker shown one main contact, M, and two auxiliary
contacts represented by switches Sc, and So. Upon receiving a signal to close
the circuit breaker closes its auxiliary contact, Sc, first, inserting the closing
resistor, Rc, for tc, second before its main contact, M, closes. The closing of
main contact, M, shorts out Rc immediately, following which Sc reopens and
remains open until another closing operation.
When a circuit breaker is closed and it receives a signal to open, it closes
its auxiliary contact, So, first before it opens its main contact, M at the next
breakers current zero. After the opening of main contact, the auxiliary contact,
So, remains closed with Ro inserted for further to seconds. After to seconds, So
opens to interrupt the diminished breaker current at the next current zero.
Figure 4.2a shows the overall diagram of simulation S2 of circuit Fig. 4.1.
The details inside the main blocks of the simulation are given in fig. 4.2b
through 4.2e, as simulated, the breaker can be closed at any point of the wave
of the source voltage. It is however, simpler to obtain the point of the wave of
closing onto the energized line by arranging for the breaker to close at t=0,
using an initial phase of the source voltage, e, that corresponds to desired
point of the wave of closing.
MATLAB PROGRAM 1:
% Load parameters
SL = 30e6*(0.8 +j*0.6) % 30 MVA, 0.8 pf lagging
ZL = Vrated^2/conj(SL) % per phase load impedance in Ohms
RL = real(ZL) % series RL load model resistance
LL = imag(ZL)/we % series RL load model inductance
% Breaker's parameter
tc = 1/60 % one cycle closing time
Rc = 1000; % closing resistance in Ohms
to = 1/60 % one cycle opening time
Ro = 1000; % opening resistance in Ohms
h2=figure;
subplot(3,1,1)
plot(y(:,1),y(:,5),'-')
ylabel('VS in V')
title('Sending end voltage')
subplot(3,1,2)
plot(y(:,1),y(:,7),'-')
ylabel('IR in A')
title('Receiving end current')
subplot(3,1,3)
plot(y(:,1),y(:,6),'-')
ylabel('VR in V')
xlabel('Time in sec')
title('Load terminal voltage')
MATLAB PROGRAM 2:
function [ret,x0,str,ts,xts]=s2(t,x,u,flag);
%s2 is the M-file description of the SIMULINK system named s2.
% The block-diagram can be displayed by typing: s2.
%
% SYS=s2(T,X,U,FLAG) returns depending on FLAG certain
% system values given time point, T, current state vector, X,
% and input vector, U.
% FLAG is used to indicate the type of output to be returned in SYS.
%
% Setting FLAG=1 causes s2 to return state derivatives, FLAG=2
% discrete states, FLAG=3 system outputs and FLAG=4 next sample
% time. For more information and other options see SFUNC.
%
% Calling s2 with a FLAG of zero:
% [SIZES]=s2([],[],[],0), returns a vector, SIZES, which
% contains the sizes of the state vector and other parameters.
% SIZES(1) number of states
% SIZES(2) number of discrete states
% SIZES(3) number of outputs
% SIZES(4) number of inputs
% SIZES(5) number of roots (currently unsupported)
% SIZES(6) direct feedthrough flag
% SIZES(7) number of sample times
%
% For the definition of other parameters in SIZES, see SFUNC.
% See also, TRIM, LINMOD, LINSIM, EULER, RK23, RK45, ADAMS, GEAR.
new_system(sys)
simver(1.3)
if (0 == (nargin + nargout))
set_param(sys,'Location',[78,47,687,392])
open_system(sys)
end;
set_param(sys,'algorithm', 'Adams/Gear')
set_param(sys,'Start time', '0.0')
set_param(sys,'Stop time', 'tstop')
set_param(sys,'Min step size', '0.0001')
set_param(sys,'Max step size', '0.0010')
set_param(sys,'Relative error','1e-5')
set_param(sys,'Return vars', '')
new_system([sys,'/',['CB on//off',13,'signal']])
set_param([sys,'/',['CB on//off',13,'signal']],'Location',[5,40,315,196])
add_block('built-in/Outport',[sys,'/',['CB on//off',13,'signal/out_1']])
set_param([sys,'/',['CB on//off',13,'signal/out_1']],...
'position',[285,60,305,80])
add_block('built-in/Fcn',[sys,'/',['CB on//off',13,'signal/Fcn1']])
set_param([sys,'/',['CB on//off',13,'signal/Fcn1']],...
'Expr','rem(u[1],period)',...
'position',[110,60,150,80])
add_block('built-in/Clock',[sys,'/',['CB on//off',13,'signal/Clock']])
set_param([sys,'/',['CB on//off',13,'signal/Clock']],...
'position',[45,60,65,80])
add_line([sys,'/',['CB on//off',13,'signal']],[255,70;280,70])
add_line([sys,'/',['CB on//off',13,'signal']],[70,70;105,70])
add_line([sys,'/',['CB on//off',13,'signal']],[155,70;205,70])
set_param([sys,'/',['CB on//off',13,'signal']],...
'Mask Display','plot([t,t+period,t+2*period],[y,y,y])',...
'Mask Type','Repeating table')
set_param([sys,'/',['CB on//off',13,'signal']],...
'Mask Dialogue','Repeating table.\nEnter values of time and output
for first cycle.|Time values:|Output values:',...
'Mask Translate','period = max(@1); t = @1; y = @2;')
set_param([sys,'/',['CB on//off',13,'signal']],...
'Mask Help','Repeats cycle given in table. Time values should be
monotonically increasing.',...
'Mask Entries','[0 10*Te 10*Te 1.1*tstop ]\/[1 1 0 0 ]\/')
set_param([sys,'/',['CB on//off',13,'signal']],...
'position',[110,198,140,222])
add_block('built-in/Note',[sys,'/','iR'])
set_param([sys,'/','iR'],...
'position',[455,150,460,155])
add_block('built-in/Note',[sys,'/','Vb'])
set_param([sys,'/','Vb'],...
'position',[240,175,245,180])
add_block('built-in/Note',[sys,'/','iS'])
set_param([sys,'/','iS'],...
'position',[240,150,245,155])
add_block('built-in/Note',[sys,'/','vS'])
set_param([sys,'/','vS'],...
'position',[360,175,365,180])
add_block('built-in/Note',[sys,'/','vR'])
set_param([sys,'/','vR'],...
'position',[360,150,365,155])
add_block('built-in/Clock',[sys,'/','Clock'])
set_param([sys,'/','Clock'],...
'position',[125,110,145,130])
new_system([sys,'/','RL load'])
set_param([sys,'/','RL load'],'Location',[580,121,1019,341])
add_block('built-in/Gain',[sys,'/','RL load/gain1'])
set_param([sys,'/','RL load/gain1'],...
'Gain','1/LL',...
'position',[150,68,205,112])
add_block('built-in/Sum',[sys,'/','RL load/Sum'])
set_param([sys,'/','RL load/Sum'],...
'inputs','+-',...
'position',[105,62,120,113])
add_block('built-in/Integrator',[sys,'/','RL load/int'])
set_param([sys,'/','RL load/int'],...
'position',[230,70,270,110])
add_block('built-in/Outport',[sys,'/','RL load/iR'])
set_param([sys,'/','RL load/iR'],...
'position',[320,80,340,100])
add_block('built-in/Inport',[sys,'/','RL load/vR'])
set_param([sys,'/','RL load/vR'],...
'position',[35,65,55,85])
add_block('built-in/Gain',[sys,'/','RL load/gain'])
set_param([sys,'/','RL load/gain'],...
'orientation',2,...
'Gain','RL',...
'position',[170,126,230,164])
add_line([sys,'/','RL load'],[275,90;285,90;285,145;235,145])
add_line([sys,'/','RL load'],[165,145;80,145;80,100;100,100])
add_line([sys,'/','RL load'],[275,90;315,90])
add_line([sys,'/','RL load'],[60,75;100,75])
add_line([sys,'/','RL load'],[125,90;145,90])
add_line([sys,'/','RL load'],[210,90;225,90])
set_param([sys,'/','RL load'],...
'position',[415,145,445,195])
add_block('built-in/Sine Wave',[sys,'/','e'])
set_param([sys,'/','e'],...
'amplitude','Epk',...
'frequency','we',...
'phase','pi/2',...
'position',[115,151,145,179])
% Subsystem 'line'.
new_system([sys,'/','line'])
set_param([sys,'/','line'],'Location',[322,88,1015,437])
add_block('built-in/Note',[sys,'/','line/VbS'])
set_param([sys,'/','line/VbS'],...
'position',[180,210,185,215])
add_block('built-in/Sum',[sys,'/','line/Sum2'])
set_param([sys,'/','line/Sum2'],...
'inputs','+-',...
'position',[190,68,205,132])
add_block('built-in/Note',[sys,'/','line/VfS'])
set_param([sys,'/','line/VfS'],...
'position',[220,75,225,80])
add_block('built-in/Gain',[sys,'/','line/Zc1'])
set_param([sys,'/','line/Zc1'],...
'orientation',3,...
'Gain','Zc',...
'position',[55,170,95,205])
add_block('built-in/Inport',[sys,'/','line/iS'])
set_param([sys,'/','line/iS'],...
'position',[30,230,50,250])
add_block('built-in/Gain',[sys,'/','line/Gain1'])
set_param([sys,'/','line/Gain1'],...
'orientation',2,...
'Gain','2',...
'position',[115,218,145,252])
add_block('built-in/Sum',[sys,'/','line/Sum1'])
set_param([sys,'/','line/Sum1'],...
'orientation',3,...
'position',[59,125,126,140])
add_block('built-in/Gain',[sys,'/','line/atten2'])
set_param([sys,'/','line/atten2'],...
'orientation',2,...
'Gain','atten',...
'position',[200,214,245,256])
add_block('built-in/Note',[sys,'/','line/VbR'])
set_param([sys,'/','line/VbR'],...
'position',[345,210,350,215])
add_block('built-in/Sum',[sys,'/','line/Sum5'])
set_param([sys,'/','line/Sum5'],...
'orientation',2,...
'inputs','-+',...
'position',[370,199,385,266])
add_block('built-in/Gain',[sys,'/','line/atten1'])
set_param([sys,'/','line/atten1'],...
'Gain','atten',...
'position',[340,80,380,120])
add_block('built-in/Note',[sys,'/','line/VfR'])
set_param([sys,'/','line/VfR'],...
'position',[400,75,405,80])
add_block('built-in/Gain',[sys,'/','line/Gain6'])
set_param([sys,'/','line/Gain6'],...
'Gain','2',...
'position',[430,84,465,116])
add_block('built-in/Gain',[sys,'/','line/Zc2'])
set_param([sys,'/','line/Zc2'],...
Dept of Electrical Engineering |School of Engineering | Central University of Karnataka 25
Lab Manual MODELING OF ELECTRICAL SYSTEMS
'orientation',1,...
'Gain','Zc',...
'position',[499,130,541,165])
add_block('built-in/Sum',[sys,'/','line/Sum4'])
set_param([sys,'/','line/Sum4'],...
'orientation',1,...
'inputs','+-',...
'position',[475,200,535,215])
add_block('built-in/Outport',[sys,'/','line/VR '])
set_param([sys,'/','line/VR '],...
'position',[565,240,585,260])
add_block('built-in/Inport',[sys,'/','line/iR'])
set_param([sys,'/','line/iR'],...
'orientation',2,...
'Port','2',...
'position',[560,80,580,100])
add_block('built-in/Outport',[sys,'/','line/VS'])
set_param([sys,'/','line/VS'],...
'orientation',2,...
'Port','2',...
'position',[25,75,45,95])
add_line([sys,'/','line'],[195,235;165,235;165,115;185,115])
add_line([sys,'/','line'],[195,235;150,235])
add_line([sys,'/','line'],[265,235;250,235])
add_line([sys,'/','line'],[385,100;425,100])
add_line([sys,'/','line'],[310,100;335,100])
add_line([sys,'/','line'],[110,235;110,145])
add_line([sys,'/','line'],[470,100;490,100;490,195])
add_line([sys,'/','line'],[75,165;75,145])
add_line([sys,'/','line'],[210,100;255,100])
add_line([sys,'/','line'],[520,170;520,195])
add_line([sys,'/','line'],[365,235;320,235])
add_line([sys,'/','line'],[505,220;505,250;390,250])
add_line([sys,'/','line'],[505,220;505,250;560,250])
add_line([sys,'/','line'],[55,240;75,240;75,210])
add_line([sys,'/','line'],[555,90;520,90;520,125])
add_line([sys,'/','line'],[95,120;95,85;50,85])
add_line([sys,'/','line'],[95,120;95,85;185,85])
add_line([sys,'/','line'],[385,100;410,100;410,215;390,215])
% Subsystem 'breaker'.
new_system([sys,'/','breaker'])
set_param([sys,'/','breaker'],'Location',[292,81,1023,687])
add_block('built-in/Scope',[sys,'/','breaker/Scope1'])
set_param([sys,'/','breaker/Scope1'],...
'Vgain','3.000000',...
'Hgain','0.300000',...
'Vmax','6.000000',...
'Hmax','2.000000',...
'Window',[38,803,525,913],...
'position',[695,92,715,118])
add_block('built-in/Switch',[sys,'/','breaker/Switch'])
set_param([sys,'/','breaker/Switch'],...
'Threshold','0.5',...
'position',[530,117,545,163])
add_block('built-in/Sum',[sys,'/','breaker/e-vS-iS*Rcb'])
set_param([sys,'/','breaker/e-vS-iS*Rcb'],...
'inputs','+--',...
'position',[180,99,195,151])
add_block('built-in/Switch',[sys,'/','breaker/IS*Rcb insert'])
set_param([sys,'/','breaker/IS*Rcb insert'],...
'Threshold','0.5',...
'position',[560,46,575,94])
add_block('built-in/Scope',[sys,'/','breaker/Scope4'])
set_param([sys,'/','breaker/Scope4'],...
'orientation',2,...
'Vgain','5.000000',...
'Hgain','0.300000',...
'Vmax','10.000000',...
'Hmax','2.000000',...
'Window',[30,547,273,660],...
'position',[40,187,60,213])
add_block('built-in/Outport',[sys,'/','breaker/iS'])
set_param([sys,'/','breaker/iS'],...
'position',[695,140,715,160])
add_block('built-in/Logical Operator',[sys,'/',['breaker/open',13,'M at
next',13,'iS zero']])
set_param([sys,'/',['breaker/open',13,'M at next',13,'iS zero']],...
'orientation',1,...
'Operator','AND',...
'Number of Input Ports','3',...
'position',[556,420,604,440])
add_block('built-in/Switch',[sys,'/','breaker/Insert iS*Ro'])
set_param([sys,'/','breaker/Insert iS*Ro'],...
'orientation',2,...
'Threshold','0.5',...
'position',[110,236,130,284])
add_block('built-in/Gain',[sys,'/','breaker/Gain'])
set_param([sys,'/','breaker/Gain'],...
'Gain','1/Ls',...
'position',[340,107,385,143])
add_block('built-in/Gain',[sys,'/','breaker/Ro'])
set_param([sys,'/','breaker/Ro'],...
'orientation',2,...
'Gain','Ro',...
'position',[390,226,435,264])
add_block('built-in/Gain',[sys,'/','breaker/Rc'])
set_param([sys,'/','breaker/Rc'],...
'orientation',2,...
'Gain','Rc',...
'position',[300,166,345,204])
add_block('built-in/Sum',[sys,'/','breaker/Vbreaker'])
set_param([sys,'/','breaker/Vbreaker'],...
'inputs','+-',...
'position',[625,23,645,87])
add_block('built-in/Reset
Integrator',[sys,'/',['breaker/Reset',13,'Integrator']])
set_param([sys,'/',['breaker/Reset',13,'Integrator']],...
'position',[595,133,635,167])
add_block('built-in/Sum',[sys,'/','breaker/e-vS'])
set_param([sys,'/','breaker/e-vS'],...
'inputs','+-',...
'position',[110,14,125,61])
add_block('built-in/Scope',[sys,'/','breaker/Scope3'])
set_param([sys,'/','breaker/Scope3'],...
'orientation',2,...
'Vgain','5.000000',...
'Hgain','0.300000',...
'Vmax','10.000000',...
'Hmax','2.000000',...
'Window',[31,320,275,434],...
'position',[40,137,60,163])
add_block('built-in/Inport',[sys,'/','breaker/e'])
set_param([sys,'/','breaker/e'],...
'position',[40,14,65,36])
add_block('built-in/Inport',[sys,'/','breaker/vS'])
set_param([sys,'/','breaker/vS'],...
'Port','3',...
'position',[40,58,65,82])
'position',[440,300,445,305])
% Subsystem ['breaker/CB_on',13,'status'].
new_system([sys,'/',['breaker/CB_on',13,'status']])
set_param([sys,'/',['breaker/CB_on',13,'status']],'Location',[102,336,551,502
])
add_block('built-in/Fcn',[sys,'/',['breaker/CB_on',13,'status/Fcn']])
set_param([sys,'/',['breaker/CB_on',13,'status/Fcn']],...
'orientation',2,...
'Expr','u[1]>.2',...
'position',[170,123,205,147])
add_block('built-in/Demux',[sys,'/',['breaker/CB_on',13,'status/Demux']])
set_param([sys,'/',['breaker/CB_on',13,'status/Demux']],...
'outputs','2',...
'position',[275,55,315,90])
add_block('built-in/Combinatorial
Logic',[sys,'/',['breaker/CB_on',13,'status/Logic']])
set_param([sys,'/',['breaker/CB_on',13,'status/Logic']],...
'Truth Table','[0 1;1 0;0 1;0 1;1 0;1 0;0 0;0 0]',...
'position',[195,55,250,95])
add_block('built-in/Transport
Delay',[sys,'/',['breaker/CB_on',13,'status/Transport Delay']])
set_param([sys,'/',['breaker/CB_on',13,'status/Transport Delay']],...
'orientation',2,...
'Initial Input','ini',...
'position',[250,120,295,150])
add_block('built-in/Outport',[sys,'/',['breaker/CB_on',13,'status/out_2']])
set_param([sys,'/',['breaker/CB_on',13,'status/out_2']],...
'Port','2',...
'position',[395,70,415,90])
add_block('built-in/Outport',[sys,'/',['breaker/CB_on',13,'status/out_1']])
set_param([sys,'/',['breaker/CB_on',13,'status/out_1']],...
'position',[355,55,375,75])
add_block('built-in/Mux',[sys,'/',['breaker/CB_on',13,'status/Mux']])
set_param([sys,'/',['breaker/CB_on',13,'status/Mux']],...
'inputs','3',...
'position',[135,59,165,91])
add_block('built-in/Inport',[sys,'/',['breaker/CB_on',13,'status/in_1']])
set_param([sys,'/',['breaker/CB_on',13,'status/in_1']],...
'position',[20,50,40,70])
add_block('built-in/Inport',[sys,'/',['breaker/CB_on',13,'status/in_2']])
set_param([sys,'/',['breaker/CB_on',13,'status/in_2']],...
'Port','2',...
'position',[50,65,70,85])
add_line([sys,'/',['breaker/CB_on',13,'status']],[320,65;350,65])
Dept of Electrical Engineering |School of Engineering | Central University of Karnataka 29
Lab Manual MODELING OF ELECTRICAL SYSTEMS
add_line([sys,'/',['breaker/CB_on',13,'status']],[335,65;335,135;300,135])
add_line([sys,'/',['breaker/CB_on',13,'status']],[165,135;110,135;110,85;130,
85])
add_line([sys,'/',['breaker/CB_on',13,'status']],[245,135;210,135])
add_line([sys,'/',['breaker/CB_on',13,'status']],[75,75;130,75])
add_line([sys,'/',['breaker/CB_on',13,'status']],[45,60;105,60;105,65;130,65]
)
add_line([sys,'/',['breaker/CB_on',13,'status']],[170,75;190,75])
add_line([sys,'/',['breaker/CB_on',13,'status']],[255,75;270,75])
add_line([sys,'/',['breaker/CB_on',13,'status']],[320,80;390,80])
set_param([sys,'/',['breaker/CB_on',13,'status']],...
'Mask Display','S 1\n\nR 0',...
'Mask Type','Latch',...
'Mask Dialogue','Latch|Initial State for Output "1":',...
'Mask Translate','ini=(@1~=0);')
set_param([sys,'/',['breaker/CB_on',13,'status']],...
'Mask Help','Latches the S input. When S (set) is one, the
uncomplemented output (1) becomes one. The output remains one until the R
(reset) input becomes one, forcing the output to zero. If both R and S are
one, the latch will be in an undefined state.')
set_param([sys,'/',['breaker/CB_on',13,'status']],...
'Mask Entries','0\/')
set_param([sys,'/',['breaker/CB_on',13,'status']],...
'position',[360,309,395,351])
add_block('built-in/Logical
Operator',[sys,'/',['breaker/Logical',13,'Operator4']])
set_param([sys,'/',['breaker/Logical',13,'Operator4']],...
'orientation',3,...
'Operator','XOR',...
'position',[150,455,190,480])
% Subsystem 'breaker/Latch2'.
new_system([sys,'/','breaker/Latch2'])
set_param([sys,'/','breaker/Latch2'],'Location',[102,336,551,502])
add_block('built-in/Fcn',[sys,'/','breaker/Latch2/Fcn'])
set_param([sys,'/','breaker/Latch2/Fcn'],...
'orientation',2,...
'Expr','u[1]>.2',...
'position',[170,123,205,147])
add_block('built-in/Demux',[sys,'/','breaker/Latch2/Demux'])
set_param([sys,'/','breaker/Latch2/Demux'],...
'outputs','2',...
'position',[275,55,315,90])
add_block('built-in/Combinatorial Logic',[sys,'/','breaker/Latch2/Logic'])
set_param([sys,'/','breaker/Latch2/Logic'],...
'Truth Table','[0 1;1 0;0 1;0 1;1 0;1 0;0 0;0 0]',...
'position',[195,55,250,95])
add_block('built-in/Transport Delay',[sys,'/','breaker/Latch2/Transport
Delay'])
set_param([sys,'/','breaker/Latch2/Transport Delay'],...
'orientation',2,...
'Initial Input','ini',...
'position',[250,120,295,150])
add_block('built-in/Outport',[sys,'/','breaker/Latch2/out_2'])
set_param([sys,'/','breaker/Latch2/out_2'],...
'Port','2',...
'position',[395,70,415,90])
add_block('built-in/Outport',[sys,'/','breaker/Latch2/out_1'])
set_param([sys,'/','breaker/Latch2/out_1'],...
'position',[355,55,375,75])
add_block('built-in/Mux',[sys,'/','breaker/Latch2/Mux'])
set_param([sys,'/','breaker/Latch2/Mux'],...
'inputs','3',...
'position',[135,59,165,91])
add_block('built-in/Inport',[sys,'/','breaker/Latch2/in_1'])
set_param([sys,'/','breaker/Latch2/in_1'],...
'position',[20,50,40,70])
add_block('built-in/Inport',[sys,'/','breaker/Latch2/in_2'])
set_param([sys,'/','breaker/Latch2/in_2'],...
'Port','2',...
'position',[50,65,70,85])
add_line([sys,'/','breaker/Latch2'],[320,65;350,65])
add_line([sys,'/','breaker/Latch2'],[335,65;335,135;300,135])
add_line([sys,'/','breaker/Latch2'],[165,135;110,135;110,85;130,85])
add_line([sys,'/','breaker/Latch2'],[245,135;210,135])
add_line([sys,'/','breaker/Latch2'],[75,75;130,75])
add_line([sys,'/','breaker/Latch2'],[45,60;105,60;105,65;130,65])
add_line([sys,'/','breaker/Latch2'],[170,75;190,75])
add_line([sys,'/','breaker/Latch2'],[255,75;270,75])
add_line([sys,'/','breaker/Latch2'],[320,80;390,80])
set_param([sys,'/','breaker/Latch2'],...
'Mask Display','S 1\n\nR 0',...
'Mask Type','Latch',...
'Mask Dialogue','Latch|Initial State for Output "1":',...
'Mask Translate','ini=(@1~=0);')
set_param([sys,'/','breaker/Latch2'],...
'Mask Help','Latches the S input. When S (set) is one, the
uncomplemented output (1) becomes one. The output remains one until the R
(reset) input becomes one, forcing the output to zero. If both R and S are
one, the latch will be in an undefined state.')
set_param([sys,'/','breaker/Latch2'],...
'Mask Entries','0\/')
set_param([sys,'/','breaker/Latch2'],...
'orientation',2,...
'position',[445,490,480,530])
% Subsystem 'breaker/Latch3'.
new_system([sys,'/','breaker/Latch3'])
set_param([sys,'/','breaker/Latch3'],'Location',[102,336,551,502])
add_block('built-in/Fcn',[sys,'/','breaker/Latch3/Fcn'])
set_param([sys,'/','breaker/Latch3/Fcn'],...
'orientation',2,...
'Expr','u[1]>.2',...
'position',[170,123,205,147])
add_block('built-in/Demux',[sys,'/','breaker/Latch3/Demux'])
set_param([sys,'/','breaker/Latch3/Demux'],...
'outputs','2',...
'position',[275,55,315,90])
add_block('built-in/Combinatorial Logic',[sys,'/','breaker/Latch3/Logic'])
set_param([sys,'/','breaker/Latch3/Logic'],...
'Truth Table','[0 1;1 0;0 1;0 1;1 0;1 0;0 0;0 0]',...
'position',[195,55,250,95])
add_block('built-in/Transport Delay',[sys,'/','breaker/Latch3/Transport
Delay'])
set_param([sys,'/','breaker/Latch3/Transport Delay'],...
'orientation',2,...
'Initial Input','ini',...
'position',[250,120,295,150])
add_block('built-in/Outport',[sys,'/','breaker/Latch3/out_2'])
set_param([sys,'/','breaker/Latch3/out_2'],...
'Port','2',...
'position',[395,70,415,90])
add_block('built-in/Outport',[sys,'/','breaker/Latch3/out_1'])
set_param([sys,'/','breaker/Latch3/out_1'],...
'position',[355,55,375,75])
add_block('built-in/Mux',[sys,'/','breaker/Latch3/Mux'])
set_param([sys,'/','breaker/Latch3/Mux'],...
'inputs','3',...
'position',[135,59,165,91])
add_block('built-in/Inport',[sys,'/','breaker/Latch3/in_1'])
set_param([sys,'/','breaker/Latch3/in_1'],...
'position',[20,50,40,70])
add_block('built-in/Inport',[sys,'/','breaker/Latch3/in_2'])
set_param([sys,'/','breaker/Latch3/in_2'],...
'Port','2',...
'position',[50,65,70,85])
add_line([sys,'/','breaker/Latch3'],[320,65;350,65])
add_line([sys,'/','breaker/Latch3'],[335,65;335,135;300,135])
Dept of Electrical Engineering |School of Engineering | Central University of Karnataka 32
Lab Manual MODELING OF ELECTRICAL SYSTEMS
add_line([sys,'/','breaker/Latch3'],[165,135;110,135;110,85;130,85])
add_line([sys,'/','breaker/Latch3'],[245,135;210,135])
add_line([sys,'/','breaker/Latch3'],[75,75;130,75])
add_line([sys,'/','breaker/Latch3'],[45,60;105,60;105,65;130,65])
add_line([sys,'/','breaker/Latch3'],[170,75;190,75])
add_line([sys,'/','breaker/Latch3'],[255,75;270,75])
add_line([sys,'/','breaker/Latch3'],[320,80;390,80])
set_param([sys,'/','breaker/Latch3'],...
'Mask Display','S 1\n\nR 0',...
'Mask Type','Latch',...
'Mask Dialogue','Latch|Initial State for Output "1":',...
'Mask Translate','ini=(@1~=0);')
set_param([sys,'/','breaker/Latch3'],...
'Mask Help','Latches the S input. When S (set) is one, the
uncomplemented output (1) becomes one. The output remains one until the R
(reset) input becomes one, forcing the output to zero. If both R and S are
one, the latch will be in an undefined state.')
set_param([sys,'/','breaker/Latch3'],...
'Mask Entries','0\/')
set_param([sys,'/','breaker/Latch3'],...
'position',[310,435,345,475])
add_block('built-in/Fcn',[sys,'/','breaker/abs(iS)'])
set_param([sys,'/','breaker/abs(iS)'],...
'orientation',2,...
'Expr','abs(u[1])',...
'position',[615,483,650,517])
add_block('built-in/Logical Operator',[sys,'/',['breaker/t0
delay',13,'enable']])
set_param([sys,'/',['breaker/t0 delay',13,'enable']],...
'orientation',2,...
'Operator','AND',...
'position',[285,516,320,554])
% Subsystem 'breaker/Latch1'.
new_system([sys,'/','breaker/Latch1'])
set_param([sys,'/','breaker/Latch1'],'Location',[102,336,551,502])
add_block('built-in/Fcn',[sys,'/','breaker/Latch1/Fcn'])
set_param([sys,'/','breaker/Latch1/Fcn'],...
'orientation',2,...
'Expr','u[1]>.2',...
'position',[170,123,205,147])
add_block('built-in/Demux',[sys,'/','breaker/Latch1/Demux'])
set_param([sys,'/','breaker/Latch1/Demux'],...
'outputs','2',...
'position',[275,55,315,90])
add_block('built-in/Combinatorial Logic',[sys,'/','breaker/Latch1/Logic'])
set_param([sys,'/','breaker/Latch1/Logic'],...
'Truth Table','[0 1;1 0;0 1;0 1;1 0;1 0;0 0;0 0]',...
'position',[195,55,250,95])
add_block('built-in/Transport Delay',[sys,'/','breaker/Latch1/Transport
Delay'])
set_param([sys,'/','breaker/Latch1/Transport Delay'],...
'orientation',2,...
'Initial Input','ini',...
'position',[250,120,295,150])
add_block('built-in/Outport',[sys,'/','breaker/Latch1/out_2'])
set_param([sys,'/','breaker/Latch1/out_2'],...
'Port','2',...
'position',[395,70,415,90])
add_block('built-in/Outport',[sys,'/','breaker/Latch1/out_1'])
set_param([sys,'/','breaker/Latch1/out_1'],...
'position',[355,55,375,75])
add_block('built-in/Mux',[sys,'/','breaker/Latch1/Mux'])
set_param([sys,'/','breaker/Latch1/Mux'],...
'inputs','3',...
'position',[135,59,165,91])
add_block('built-in/Inport',[sys,'/','breaker/Latch1/in_1'])
set_param([sys,'/','breaker/Latch1/in_1'],...
'position',[20,50,40,70])
add_block('built-in/Inport',[sys,'/','breaker/Latch1/in_2'])
set_param([sys,'/','breaker/Latch1/in_2'],...
'Port','2',...
'position',[50,65,70,85])
add_line([sys,'/','breaker/Latch1'],[320,65;350,65])
add_line([sys,'/','breaker/Latch1'],[335,65;335,135;300,135])
add_line([sys,'/','breaker/Latch1'],[165,135;110,135;110,85;130,85])
add_line([sys,'/','breaker/Latch1'],[245,135;210,135])
add_line([sys,'/','breaker/Latch1'],[75,75;130,75])
add_line([sys,'/','breaker/Latch1'],[45,60;105,60;105,65;130,65])
add_line([sys,'/','breaker/Latch1'],[170,75;190,75])
add_line([sys,'/','breaker/Latch1'],[255,75;270,75])
add_line([sys,'/','breaker/Latch1'],[320,80;390,80])
set_param([sys,'/','breaker/Latch1'],...
'Mask Display','S 1\n\nR 0',...
'Mask Type','Latch',...
'Mask Dialogue','Latch|Initial State for Output "1":',...
'Mask Translate','ini=(@1~=0);')
set_param([sys,'/','breaker/Latch1'],...
set_param([sys,'/','breaker/Latch1'],...
'orientation',2,...
'position',[175,525,210,565])
add_block('built-in/Relational Operator',[sys,'/','breaker/|iS|<=eps'])
set_param([sys,'/','breaker/|iS|<=eps'],...
'orientation',2,...
'Operator','<=',...
'position',[545,526,575,564])
add_block('built-in/Constant',[sys,'/','breaker/eps'])
set_param([sys,'/','breaker/eps'],...
'orientation',2,...
'position',[615,541,635,569])
add_block('built-in/Switch',[sys,'/','breaker/Insert iS*Rc'])
set_param([sys,'/','breaker/Insert iS*Rc'],...
'orientation',2,...
'Threshold','0.5',...
'position',[175,175,195,225])
new_system([sys,'/','breaker/delay tc'])
set_param([sys,'/','breaker/delay tc'],'Location',[485,451,992,690])
add_block('built-in/Logical Operator',[sys,'/',['breaker/delay
tc/Logical',13,'Operator1']])
set_param([sys,'/',['breaker/delay tc/Logical',13,'Operator1']],...
'Operator','AND',...
'position',[320,42,365,138])
add_block('built-in/Outport',[sys,'/','breaker/delay tc/out_1'])
set_param([sys,'/','breaker/delay tc/out_1'],...
'position',[405,80,425,100])
add_block('built-in/Inport',[sys,'/','breaker/delay tc/in_1'])
set_param([sys,'/','breaker/delay tc/in_1'],...
'position',[20,90,40,110])
add_block('built-in/Logical Operator',[sys,'/',['breaker/delay
tc/Logical',13,'Operator']])
set_param([sys,'/',['breaker/delay tc/Logical',13,'Operator']],...
'Operator','XOR',...
'position',[225,85,275,145])
add_block('built-in/Transport Delay',[sys,'/',['breaker/delay
tc/Transport',13,'Delay1']])
set_param([sys,'/',['breaker/delay tc/Transport',13,'Delay1']],...
'Delay Time','tc',...
'position',[105,110,170,150])
add_line([sys,'/','breaker/delay tc'],[175,130;220,130])
add_line([sys,'/','breaker/delay tc'],[45,100;60,100;60,130;100,130])
add_line([sys,'/','breaker/delay tc'],[45,100;220,100])
add_line([sys,'/','breaker/delay tc'],[370,90;400,90])
add_line([sys,'/','breaker/delay tc'],[280,115;315,115])
add_line([sys,'/','breaker/delay tc'],[60,100;60,65;315,65])
set_param([sys,'/','breaker/delay tc'],...
'orientation',3,...
'position',[230,340,280,370])
add_block('built-in/Inport',[sys,'/',['breaker/CB on//off',13,'signal']])
set_param([sys,'/',['breaker/CB on//off',13,'signal']],...
'Port','2',...
'position',[55,380,75,400])
add_block('built-in/Outport',[sys,'/','breaker/vb'])
set_param([sys,'/','breaker/vb'],...
'Port','2',...
'position',[675,45,695,65])
add_line([sys,'/','breaker'],[650,55;670,55])
add_line([sys,'/','breaker'],[105,260;95,260;95,125;175,125])
add_line([sys,'/','breaker'],[200,125;220,125;220,55;555,55])
add_line([sys,'/','breaker'],[385,245;135,245])
add_line([sys,'/','breaker'],[200,125;335,125])
add_line([sys,'/','breaker'],[170,200;125,200;125,140;175,140])
add_line([sys,'/','breaker'],[70,25;105,25])
add_line([sys,'/','breaker'],[580,70;620,70])
add_line([sys,'/','breaker'],[130,40;620,40])
add_line([sys,'/','breaker'],[130,40;155,40;155,110;175,110])
add_line([sys,'/','breaker'],[640,150;690,150])
add_line([sys,'/','breaker'],[670,150;670,185;350,185])
add_line([sys,'/','breaker'],[390,125;525,125])
add_line([sys,'/','breaker'],[670,185;670,245;440,245])
add_line([sys,'/','breaker'],[550,140;590,140])
add_line([sys,'/','breaker'],[350,445;490,445;490,70;555,70])
add_line([sys,'/','breaker'],[490,435;490,140;525,140])
add_line([sys,'/','breaker'],[295,185;200,185])
add_line([sys,'/','breaker'],[665,245;670,245;670,500;655,500])
add_line([sys,'/','breaker'],[610,500;600,500;600,535;580,535])
add_line([sys,'/','breaker'],[610,555;580,555])
add_line([sys,'/','breaker'],[80,390;300,390])
add_line([sys,'/','breaker'],[665,150;670,150;670,105;690,105])
add_line([sys,'/','breaker'],[95,150;65,150])
add_line([sys,'/','breaker'],[155,200;65,200])
add_line([sys,'/','breaker'],[540,545;325,545])
add_line([sys,'/','breaker'],[340,525;325,525])
add_line([sys,'/','breaker'],[280,535;215,535])
add_line([sys,'/','breaker'],[255,335;255,320;355,320])
add_line([sys,'/','breaker'],[80,390;255,390;255,375])
add_line([sys,'/','breaker'],[70,70;85,70;85,50;105,50])
add_line([sys,'/','breaker'],[400,320;580,320;580,415])
add_line([sys,'/','breaker'],[340,390;565,390;565,415])
add_line([sys,'/','breaker'],[170,535;160,535;160,485])
add_line([sys,'/','breaker'],[255,385;255,445;305,445])
add_line([sys,'/','breaker'],[280,535;270,535;270,465;305,465])
add_line([sys,'/','breaker'],[540,545;525,545;525,405;595,415])
add_line([sys,'/','breaker'],[580,445;580,500;485,500])
add_line([sys,'/','breaker'],[440,500;180,500;180,485])
add_line([sys,'/','breaker'],[440,500;415,500;405,525])
add_line([sys,'/','breaker'],[580,445;580,455;550,455;550,150;590,150])
add_line([sys,'/','breaker'],[95,390;95,585;505,585;505,520;485,520])
add_line([sys,'/','breaker'],[230,585;230,555;215,555])
add_line([sys,'/','breaker'],[255,335;255,200;200,200])
add_line([sys,'/','breaker'],[170,450;170,260;135,260])
set_param([sys,'/','breaker'],...
'Mask Display','')
set_param([sys,'/','breaker'],...
'position',[195,154,225,206])
add_block('built-in/Mux',[sys,'/','Mux2'])
set_param([sys,'/','Mux2'],...
'orientation',3,...
'inputs','7',...
'position',[125,85,515,100])
% Subsystem 'm2'.
new_system([sys,'/','m2'])
set_param([sys,'/','m2'],'Location',[-10,4391136,201,4391244])
set_param([sys,'/','m2'],...
'Drop Shadow',4,...
'position',[120,26,194,64])
add_block('built-in/Scope',[sys,'/','Scope'])
set_param([sys,'/','Scope'],...
'orientation',2,...
'Vgain','450000.000000',...
'Hgain','0.250000',...
'Vmax','900000.000000',...
'Hmax','0.500000',...
'Window',[79,364,702,581])
open_system([sys,'/','Scope'])
set_param([sys,'/','Scope'],...
'position',[250,39,270,61])
drawnow
OUTPUT WAVEFORMS:
Figure 3.37 plot of vb(trace 1), vs(trace 2),vR(trace 3), iS(trace 4), iR(trace 5).
EXPERIMENT - 5
SIMULATION OF A SINGLE-PHASE TWO-WINDING
TRANSFORMER
OBJECTIVE:
BACKGROUND:
The circuit parameters and magnetization curve for the 120/240V, 1.5 KVA, 60
Hz, pole-type, two-winding distribution transformer are as follows:
r1= 0.25 Ω, rˊ2 = 0.134 Ω, xl1= 0.056 Ω, xˊl2 = 0.056 Ω, xm1 = 708.8 Ω
All parameters given above are referred to the 120 V, winding 1 side.
Use the MATLAB script file ml to set up the parameters of the SIMULINK
simulation slc. Check the parameter settings in ml to make sure that they
correspond to the parameters of the 120/240, 1.5 kVA, 60-Hz, pole type
distribution transformer given above. Begin by trying the ode 15s or the
Adams/gear numerical method with a minimum step size of 0.1msec, a
maximum step size of 1 msec,and an error tolerance of 1e-7. Conducts the
following runs on the simulation using a sinusoidal input voltage of
v1=120√2sin(120𝜋𝑡 + 𝜃)V.
Fig 5.2 Simulation slc of a two-winding transformer using a look-up table for
the saturation curve.
PROCEDURE:
1) With the 240v side terminals short-circuited, that is v’2=0, and no initial
core flux, energize the transformer at the following point of the wave of
the voltage, v1:
a. The peak of the sinusoidal supply voltage, using a θ of π/2.
b. The zeros of the sinusoidal supply voltage, using a θ of zero.
Plot the values of v1,i1, ,v’2, and i’2.
2) Replace the short circuit termination on the secondary terminal wih a
fixed impedance pepresenting 1.5kVA, 0.8 lagging power factor of loading
at rated voltage and repeat the above energization studies with the
transformer on the load.
Dept of Electrical Engineering |School of Engineering | Central University of Karnataka 41
Lab Manual MODELING OF ELECTRICAL SYSTEMS
title('primary voltage')
subplot(3,1,2)
plot(y(:,1),y(:,3),'-')
ylabel('v2'' in V')
title('secondary voltage')
subplot(3,1,3)
plot(y(:,1),y(:,4),'-')
ylabel('psim in Wb/sec')
title('mutual flux')
h2=figure;
clf;
subplot(3,1,1)
plot(y(:,1),y(:,5),'-')
ylabel('i1 in A')
title('primary current')
subplot(3,1,2)
plot(y(:,1),y(:,6),'-')
ylabel('i2'' in A')
xlabel('Time in sec')
title('secondary current')
OUTPUT WAVEFORMS:
Fig 5.3 is a plot of the magnetization curve of the transformer in terms of the
instantaneous values of the flux linkage and magnetizing current on the 120 V,
winding 1 side.
(a) (b)
Fig. 5.4 (a) Transformer energized at the peak of vi (b) at the zero point of vi.
EXPERIMENT-6
MODELING OF THE DELTA-WYE CONNECTED TRANSFORMER
OBJECTIVES:
To simulate the Delta-Wye connected transformer and check the
characteristics.
BACKGROUND:
The input voltages to the secondary windings of the transformers, on the other
hand, are a function of the secondary neutral point voltage to system ground,
that is
Where vnG = (ia + ib + ic) Rn. In the simulation, the line currents on the primary
side can be computed from the primary winding output currents using
The objective of this project are to determine the voltage and current ratios of
the delta-wye connected transformer as shown in above Fig 6.1, and to also to
examine the waveforms of the zero sequence current component on both sides
of the transformer.
Y U y
Scope Selector To Workspace
Mux Mux
Clock vab
-K-
T
(Ns/Np) iA
vAB T1
iAB
vAO s4 ia
S -K-
S5 1/3
ABan_unit 1/3
(Np/Ns)
v'an i'a
iAB+iBC+iCA
(Np/Ns)/3
-K-
Ref_Load an_
Sum
vBC T2
T3
iBC ia'+ib'+ic' vnG
vBO
S1 -K-
BCbn_unit
R_n(Np/Ns)
v'bn i'b Sum3
Ref_Load bn Initialize
and plot
vCA T4
T5 iCA m4
vCO
S2
CAcn_unit
v'cn i'c
Ref_Load cn
1
out_psi1
psi1 Mux i1
1 (u[1]-u[2])/xl1 3
1 Mux wb*(u[2]-(r1/xl1)*(u[3]-u[1]))
s out_i1
Fcn4
in_1 psi1_ Mux4
Fcn
Mux
psim
Mux xM*(u[1]/xl1+u[2]/xpl2-u[3]/xm) 2
out_psim
Fcn3
Mux3 Dpsi
Memory Look-Up
Table
1 psi2'
2 Mux wb*(u[2] -(rp2/xpl2)*(u[1]-u[3]))
s i2'
Mux (u[1]-u[2])/xpl2 4
in_2 psi2'_
Fcn2
Fcn5 out_i2'
Mux1 Mux2
1 -24 1
out_1 HGR in_1
Voltage and current ratios: For this part of the project, we will ignore core
saturation. The core saturation in each transformer module can be deactivated
by opening the Dpsi loop. Use the MATLAB script file m4 to set up the
parameters and initial condition in MATLAB workspace for simulating s4. The
duration of the simulation run, tstop, is set inside m4 to be 1.5 seconds to
allow time for the variables to settle to steady state condition: however the
length of the to workspace array y is purposly kept short so that only the last
few cycle of the waveforms will be plotted. Using ode 15s or the Adams/Gear
numerical method, s4 will run satisfactorily with a minimum step size of 0.2
msec, a maximum step size of 10 msec, and an error tolerance of 2e-6.
Zero-sequence current: Repeat the above study, but with core saturation by
closing thr Dpsi loops in all three transformer modules. Set Rn to 10Ω and run
the simulation to obtain plot of the same set of variables. Comment on the
difference in the wave shape of the zero-sequence component of the primary
and secondary windings, as well as primary line currents.
Finally, increase the value of Rn to some large value, say 100 timesthe
base impedance, Zb, of 1202/1500Ω, to approximate an ungrounded neutral of
the wye winding. With the secondary loading still unbalanced, repeat the run to
obtain a plot of the same three zero-sequence currents. Explain the presence or
absence of the zero-sequence current component in the primary and secondary
winding currents and in the primary line currents. Figure 6.3 shows the
voltages and currents of the Delta-wye transformer with the ungrounded
neutral connection of its wye secondary winding approximated by 100Zb when
the load on each secondary phase is 1.5kW.
clear all;
% Set up identical circuit parameters and mag. curve
% for the three single phase transformers
1024.8 1066.9 1108.9 1151.0 1193.0 1235.1 1277.1 1319.2 1361.2 ...
1403.3 1445.3 1487.4 1529.5 1571.5 1613.6 1655.6 1697.7 1739.7 ...
1781.8 1823.8 1865.9 1907.9 1950.0 1992.0 2034.1 2076.1 2118.2 ...
2160.3 2202.3 2244.4 2286.4 2328.5 2370.5 2412.6 2454.6 ];
ylabel('(iAB+iBC+iCA)/3 in A')
subplot(4,1,2)
plot(y(:,1),y(:,7),'-')
ylabel('(ia+ib+ic)/3 in A')
subplot(4,1,3)
plot(y(:,1),y(:,8),'-')
ylabel('vnG in V')
title('Secondary neutral to ground voltage')
xlabel('Time in sec')
disp('Save plots before typing return')
keyboard
close(h2)
OUTPUT WAVEFORMS:
EXPERIMENT-7
SIMULATING TRANSFORMATION OF PHASE (ABC) TO DQ0.
OBJECTIVES:
Simulating transformation of phase (abc) to dq0.
BACKGROUND:
in s3, time is taken from the clock and multiplied by the value of angular
frequency to obtain the value of ωt, which is then fed to the three fcn function
modules that generate the sinusoidal three phase currents. the template for the
three fcn function module can be found in the Nonlinear library block of
Simulink. the value of m in the three function blocks is to be entered into the
MATLAB command window. fig 5.28b shows the inside of the abc2qd0s block.
this block implements eq 5.130 to transform the input abc phase quantities to
stationary qd0 quantities. fig5.28c shows the inside of the qds2qd block. this
block implements eq. 5.136 to transform the stationary
the inside of the qds2qd block. this block implements eq. 5.136 to transform
the stationary qd quantities to another qd reference frame that is at an angle of
θ to the stationary qds reference frame. The θ input to the qds2qd block can be
made a multiple, nframe, of the ωt input of the phase quantities with or
without some initial offset angle corresponding to the value of ϕ- θ(0) in eq
5.142, ϕ being the phase angle of the phase quantities as defined in eq.5.133
and θ(0) being the initial angle of θ in eq. 5.157 as programmed in s3, with the
currents in eq. 5.158 the value of ϕ is zero.
Shown in fig 5.29 are the qd0 currents for the case of m=1 and ϕ=0 in
eq.5.157, with an nframe of 1 that is rotating at synchronous speed in the
forward direction, and an initial angle, θ(0) of zero. the first three traces are in
the stationary reference frame. in
1. run the case with m=1 and ϕ=0, but with nframe first set to -1 and then
to 2. based on the results obtained, deduce what will be the frequency of
the qd components for a balanced set of phase currents also having a
frequency of 5ω in a qd reference frame that is also rotating in the
forward direction at 5ω. use the simulation to verify your answer by
setting m and nframe to 5, and α to zero.
2. repeat the above cases, but with a α of 1, to see the form of the
transformer attenuated sinusoids in the two rotating qd0 reference
frames.
3. run the case of m=1 and nframe=1 for θ(0)=±𝜋/4. verify your results
using the expression given in eq 5.142.
4. run the case of m=2 and nframe=2 and examine the results obtained to
see if you can explain them.(Hint: determine the sequence of the abc
currents and the direction of rotation of their resultant mmf of their
space vector, i1).
5. modify the abc current fuction blocks in a copy of s3 to produce a set of
complex abc phase currents with fundamental and nth time harmonic
components of the form:
obtain the qd0 components in the synchronously rotating reference frame, that
is with nframe=1 and θ(0)=0, for n=5 and n=7.
OUTPUT WAVEFORMS: