Beruflich Dokumente
Kultur Dokumente
JAMAICA
BEng 3EC:
EEE3002 ELECTROMAGNETICS 2
Lab # 2: Introduction to Waveguides
Using Matlab
Monique L Hepburn
1001296
Dr. Victor Watt
Table of Contents
OBJECTIVE....................................................................................................................................2
Pre Lab Research:.........................................................................................................................2
Procedure.........................................................................................................................................3
Activity 1.........................................................................................................................................3
Explain the Graph in terms of how the impedance behaves when frequency increases.............4
Modify the Matlab code by plotting uG and up versus frequency for the same guide over the same
frequency range...............................................................................................................................5
Activity 2.........................................................................................................................................6
Draw the Ey field pattern for the m=0 mode of a 5 cm Thick Dielectric guide (n=2) in air using
the following Matlab code, the dielectric extends from x=-0.025 to x=+0.025..........................6
Explain the Graph in terms of how the dielectric field behaves..................................................8
Modify the Matlab code above to find the odd TE mode field pattern.......................................8
Graph X vs Ey...........................................................................................................................10
What can you say about the pattern observed in the new dielectric mode?..............................10
Conclusion.....................................................................................................................................10
OBJECTIVE
To investigate, calculate and analyze the Waveguides propagation modes using Matlab
programming.
Procedure
Activity 1
Run the following Matlab code, found in page 347 in the handout provided. The code plots the
wave impedance for TE11 and TM11 Modes of WR90 wave guides versus frequency 15 to 25
GHz..:
%
%
%
%
%
%
%
%
%
%
%
Variables
Zo
characterisic impedance of air
ainches,binches
guide dimensions in inches
a,b
guide dimensions in meters
fc
TE11 mode cutoff frequency (Hz)
f
frequency (Hz)
fghz frequency (GHz)
Factor the factor sqrt(1-(fc/f)^2)
Zof
array filled with Zo
ZTE,ZTM TE and TM mode impedance
clc
%clears the command window
clear %clears variables
% Initialize variables
c=2.998e8; %speed of light
Zo=120*pi;
ainches=0.900;binches=0.450;
% convert to metric
a=ainches*0.0254;b=binches*0.0254;
% calc fc11
fc=c*sqrt((1/a)^2+(1/b)^2)/2;
% Perform calculations
f=15e9:.1e9:25e9;
fghz=f/1e9;
Factor=sqrt(1-(fc./f).^2);
Zof=Zo.*f./f;
ZTE=Zo.*Factor;
ZTM=Zo./Factor;
% Display results
plot(fghz,ZTE,'-.',fghz,ZTM,'--k',fghz,Zof,'-')
legend('ZTE11','ZTM11','Zo')
xlabel('frequency, (GHz)')
ylabel('impedance (ohms)')
grid on
%
%
%
%
%
%
%
%
%
%
%
Variables
Zo
characterisic impedance of air
ainches,binches
guide dimensions in inches
a,b
guide dimensions in meters
fc
TE11 mode cutoff frequency (Hz)
f
frequency (Hz)
fghz
frequency (GHz)
Factor the factor sqrt(1-(fc/f)^2)
Zof
array filled with Zo
ZTE,ZTM TE and TM mode impedance
clc
%clears the command window
clear
%clears variables
%
Initialize variables
c=2.998e8; %speed of light
Zo=120*pi;
ainches=0.900;binches=0.450;
%
convert to metric
a=ainches*0.0254;b=binches*0.0254;
%
calc fc11
fc=c*sqrt((1/a)^2+(1/b)^2)/2;
% extradeclarations
m = 1;
Uu = (2*a*fc)/(m);
%
Perform calculations
f=15e9:.1e9:25e9;
fghz=f/1e9;
Factor=sqrt(1-(fc./f).^2);
Up = Uu./Factor;
Ug = Uu.*Factor;
Zof=Zo.*f./f;
ZTE=Zo.*Factor;
ZTM=Zo./Factor;
%
Display results
plot(fghz,Up,'x',fghz,Ug,'o')
xlabel('frequency, (GHz)')
ylabel('impedance (ohms)')
grid on
Propagati
on and group velocity vs frequency
Activity 2
Draw the Ey field pattern for the m=0 mode of a 5 cm Thick Dielectric
guide (n=2) in air using the following Matlab code, the dielectric
extends from x=-0.025 to x=+0.025.
%
%
%
%
%
%
%
%
%
%
%
%
Variables
a
dielectric thickness (m)
b
phase constant
thdeg angle theta in degrees
th
angle theta in radians
n1,n2 indices of refraction
n21 the ratio n2/n1
f
frequency (Hz)
c
speed of light (m/s)
w
radian frequency (rad/s)
Eo
initial amplitude (V/m)
alpha
Graph Showing Ey vs x
Modify the Matlab code above to find the odd TE mode field pattern.
%
%
%
%
%
%
%
%
%
%
%
%
%
%
%
%
%
%
%
%
%
%
Wentworth, 2/2/03
Variables
a
dielectric thickness (m)
b
phase constant
thdeg
angle theta in degrees
th
angle theta in radians
n1,n2
indices of refraction
n21
the ratio n2/n1
f
frequency (Hz)
c
speed of light (m/s)
w
radian frequency (rad/s)
Eo
initial amplitude (V/m)
alpha
clc
clear
%
initialize variables
a=50e-3;
thdeg=57.9;
%corresponds to m = 1
th=pi*thdeg/180;
n2=1;
n1=2;
n21=n2/n1;
f=4.5e9;
w=2*pi*f;
c=2.998e8;
Eo=1;
b=(w/c)*n1;
alpha=b*sqrt(sin(th)^2-n21^2);
%m=0
x=-a/2:a/40:a/2;
Ey=Eo*sin(b*cos(th)*x);
hold on
plot(x,Ey,'k')
grid on
xlow=-2*a/2:a/40:-a/2;
Eylow=-Eo*sin(b*cos(th)*a/2)*exp(alpha*(xlow+a/2));
plot(xlow,Eylow,'k')
xhi=a/2:a/40:2*a/2;
Eyhi=Eo*sin(b*cos(th)*a/2)*exp(-alpha*(xhi-a/2));
plot(xhi,Eyhi,'k')
xlabel('Ey(V/m)')
ylabel('x(m)')
Graph X vs Ey
What can you say about the pattern observed in the new dielectric
mode?
The behavior of Ey goes from -0.05 to -0.15. It then moves from that point to 0. At 0 the value of
the dielectric field is zero as well. The Ey field then behaves vice versa to how it did between
-0.05 to -1.15, between 0 and 0.05.
Conclusion
This experiment described adequately the principle of the analysis and calculation of waveguide
propagation.
10