Elg3311: Experiment 2 Simulation of A Transformer Performance
Elg3311: Experiment 2 Simulation of A Transformer Performance
Elg3311: Experiment 2 Simulation of A Transformer Performance
Goals
• Train the student with the concept of simulation
• Train the student in using SIMULINK toolbox.
We provide 2 inputs (Primary voltage and load) to a transformer and we plot the
underlined characteristics (see Figure 1).
Procedure:
1- Run matlab 6 and configure your workspace: example current directory to your
working directory.
A Fcn block
Mux A* B
B
Syntax:
u[1]=A and u[2]=B
A Fcn block
Mux u[1]*u[2]
B
Secondary current
Vs
Is = Equ#1
ZL
Secondary voltage
Is Vp
Vp = Zw * + N *Vs ⇒ Vs = Equ#2
N Zw
+ N
N * ZL
Efficiency
Vs 2
Is Vp Re{Vs * Is * } ZL
Ip = Ie + ; Ie = ⇒ η= * 100 ≈ * 100 Equ#3
Re{Vp * Ip }
2
N Zi *
Vp Vs *Vp
+
Zi N * ZL
Voltage regulation
N *Vs
% Re g = 1 − * 100 Equ#4
Vp
Note:
1- The 2nd formula for the efficiency is an approximation because it does the ratio of
apparent powers rather than active powers. This is because, including the working
of complex values should increase the complexity of this experiment. You may
try it for fun for yourself.
2- The expression of the voltage regulation is different from the one in the textbook
because in this experiment, V-primary is constant while V-secondary varies with
the load. The scenario is opposite in the case of the textbook where V-primary is
supposed to increase to maintain V-secondary constant when the load increases.
%Plot Vs
subplot(3,1,1); plot(OutR(:,1), OutR(:,2));
xlabel('Load current [A]');
ylabel('[V]');
title('Output Voltage');
%Plot Efficiency
subplot(3,1,2); plot(OutR(:,1), OutR(:,3));
xlabel('Load current [A]');
ylabel('n[%]');
title('Efficiency');
%Plot %Regulation
subplot(3,1,3); plot(OutR(:,1), OutR(:,4));
xlabel('Load current [A]');
ylabel('%Reg[%]');
title('%Regulation');
1-D T[k]
Is
index ZL
Vs
Mux OutR
n
Vp
Index Selector Load Bank ZL %Reg To Workspace
Subsystem
Direct Look-Up Transformer
Table (n-D) Subsystem
120
input Vp
Constant
TRANSFORMER SIMULATOR
This module can be seeing as 4 blocs:
1- A bank of Loads ZL arranged in a column vector;
2- A load ZL selector. It simply provides an index i to select a corresponding ZL(i)
3- A Tranformer model. It takes in a Load ZL (or ZL(i)) and a Primary source voltage Vp
and outputs:
Is: secondary current
Vs: secondary voltage
n: Efficiency
%Reg: Voltage Regulation
4- A result collector. It creates a matrix variable 'OutR' in matlab workspace whose columns are in order Is, Vs, n, %Reg. It's rows
contains the match results for each ZL (or ZL(i)). OutR can be plot from Matlab workspace using Ploter.m script.
Vp
0.5
N Mux f(u) 2
4+5i |u| Vs
Compute Vs Equ#2
Zw |Zw| Fcn
1 |u|
ZL |ZL| Mux1 Mux u[1]/u[2] 1
Is
Compute Is - Equ#1
Mux3
Fcn
Mux f(u) 3
1500+500i |u| n
Compute Efficiency - Equ#3
Zi |Zw|1 Mux4 Fcn
TRANSFORMER MODEL
Caracteristics: Zw = 4+5i; Zi = 1500+500i; N = 0.5; Vp = to be input
Derived formulas: see Appendix.
Outputs:
Is: secondary current
Vs: secondary voltage
n: Efficiency
%Reg: Voltage Regulation
Figure 3.2: Transformer Model Subsystem
SELECTOR
A counter System that outputs 1,2... on front edge of the triger.
This module generate at its output, an integer sequence 1, 2, 3, ...
Figure 3.3: Index Selector Subsystem Figure 3.4: Counter Triggered Subsystem
Note: Start with a triggered sub-system and then add the memory and
the sum box.