Circular Waveguide Microwave Engineering Project
Circular Waveguide Microwave Engineering Project
CIRCULAR WAVEGUIDE
using Finite Difference
Time Domain Method
JORGE L. LOPEZ CABRERA
p'm1
p'm2
p'm3
3.832
7.016
10.174
1.841
5.331
8.536
3.054
6.706
9.970
p'm1
p'm2
p'm3
2.405
5.520
8.654
3.832
7.016
10.174
5.135
8.417
11.620
CIRCULAR WAVEGUIDE;
Location of Source and
Observation Points
CIRCULAR WAVEGUIDE
100
1cm
90
80
RHO (cells)
70
Radio Of
3.75cm
60
50
40
30
SOURCE
POINTS
20
10
50
100
150
200
Z (cells)
250
300
350
400
1000
(Ohm)
800
600
400
200
10
15
Frequency (GHz)
20
25
1000
(Ohm)
800
600
400
200
10
15
Frequency (GHz)
20
25
WAVEGUIDE Step-discontinuity
Magnitude of GAMMA
|Gamma|
2.34 GHzutoff freq
TE 22
.
TM21
2.34 CUTOFF
FRECUENCY
TM22
CODE OF THE
PROGRAMS AND THE
INPUTFILE OF THE
WAVEGUIDE
160 100
0.05 0.05
10000
0.7
11
4.0 4.0
1 0 20 75 20
0000
0 180 1
0 90 90
0000
40 50 40 55 40 58
40 62 40 65 40 70
3
1 75 0 77 50 0 0 1.0 1.e21
1 75 50 152 52 0 0 1.0 1.e21
1 150 52 152 100 0 0 1.0 1.e21
clear all;
close all;
load sig_dist.dat;
pennx=sig_dist;
col=3;
[x,y]=meshgrid(1:max(pennx(:,1)),1:max(pennx(:,2)));
[r,c]=size(pennx);
for jj=1:r
penn1x(pennx(jj,2)+1,pennx(jj,1)+1)=pennx(jj,col);
end
figure;
contour(penn1x,50);
title 'WAVEGUIDE PLOT'
xlabel 'Waveguide long (Z axis) in cells '
ylabel 'Radio of the waveguide in cells'
legend ('20 cells = 1cm')
grid;
load timestep.dat;
dt=timestep;
%Nfft=size(erho,1);;
Nfft=60000;
df=1/(dt*Nfft);
f1=1.5e9; f2=20e9;
erho_f=(fft(erho,Nfft));
hphi_f=(fft(hphi,Nfft));
Zin=real(erho_f./hphi_f);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Zo bor
load Time_Point_6_inf.dat;%CHANGE TO NUMBER
erho_1=Time_Point_6_inf(:,1);%CHANGE TO NUMBER
hphi_1=Time_Point_6_inf(:,5);%CHANGE TO NUMBER
%%%%%%%%%%%%%%%%%%%%
erho_f_1=(fft(erho_1,Nfft));% NO CHANGE TO NUMBER
hphi_f_1=(fft(hphi_1,Nfft));% NO CHANGE TO NUMBER
Zo=real(erho_f_1./hphi_f_1);% NO CHANGE TO NUMBER
df=1/(dt*Nfft);
N1=floor(f1*Nfft*dt); N2=ceil(f2*Nfft*dt);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GAMMA_BOR=((Zin-Zo)./(Zin+Zo));
GAMMA_mag_BOR=(abs(GAMMA_BOR));
GAMMA_dB_BOR= 20*log10(GAMMA_mag_BOR);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Zo ANALYTICAL
F=[1.e9:1.e6:25.e9]; %hz
LAMDA=3.e8./F;
k =2*pi./LAMDA;
Pnm=1.841;
a=0.0375; %m
BETA=((k.^2)-(Pnm/a).^2).^(1/2);
eta=377; %ohm
Zo_AN=(eta.*k)./BETA;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Zin ANALYTICAL
F=[1.e9:1.e6:25.e9]; %hz
LAMDA=3.e8./F;
k =2*pi./LAMDA;
Pnm=1.841;
a=.075; %m
BETA=((k.^2)-(Pnm/a).^2).^(1/2);
eta=377; %ohm
Zin_AN=(eta.*k)./BETA;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GAMMA_AN=((Zin_AN-Zo_AN)./(Zin_AN+Zo_AN));
GAMMA_mag_AN=(abs(GAMMA_AN));
GAMMA_dB_AN= 20*log10(GAMMA_mag_AN);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%figure;
plot((N1:N2)/(dt*Nfft)/1.e9,GAMMA_BOR(N1:N2),'b');
hold on;
plot(F/1.e9,real(GAMMA_AN),'r');
grid;
ylabel(' (Ohm)');
xlabel('Frequency (GHz)');
title('GAMMA OF THE POINT 6')
axis([0 14 -6 3.5])
legend('BOR','ANALYTICAL')
load timestep.dat;
dt=timestep;
%Nfft=size(erho,1);;
Nfft=60000;
df=1/(dt*Nfft);
f1=1.5e9; f2=20e9;
erho_f=(fft(erho,Nfft));
hphi_f=(fft(hphi,Nfft));
z=real(erho_f./hphi_f);
%figure;
df=1/(dt*Nfft);
N1=floor(f1*Nfft*dt); N2=ceil(f2*Nfft*dt);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%
da=[1.e9:1.e6:25.e9]; %hz
lambda=3.e8./da;
k =2*pi./lambda;
Pnm=1.841;
a=.0375; %cm
beta=((k.^2)-(Pnm/a).^2).^(1/2);
eta=377; %ohm
l=(eta.*k)./beta;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%
figure;
plot((N1:N2)/(dt*Nfft)/1.e9,z(N1:N2),'b');
grid;
ylabel(' (Ohm)');
xlabel('Frequency (GHz)');
title('Impedance Real part')
axis([0 25 0 1200])
hold on
plot(da/1.e9,real(l),'--r');
legend('BOR','ANALYTICAL')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%
%plot((N1:N2)/(dt*Nfft)/1.e9,imag(z(N1:N2)),'b');
%grid;
%ylabel(' (Ohm)');
%xlabel('Frequency (GHz)');
%title('Impedance Imaginary part ')
clear all;
close all;
col=1; %erho
%load Time_Point_1.dat;
%field(:,1)=Time_Point_1(:,col);
%load Time_Point_2.dat;
%field(:,2)=Time_Point_2(:,col);
%load Time_Point_3.dat;
%field(:,3)=Time_Point_3(:,col);
%load Time_Point_4.dat;
%field(:,4)=Time_Point_4(:,col);
%load Time_Point_5.dat;
%field(:,5)=Time_Point_5(:,col);
load Time_Point_6.dat;
field(:,6)=Time_Point_6(:,col);
figure;
plot(field)
title 'TIME PLOT OF THE POINT 6'
grid;
clear all;
close all;
load sig_dist.dat;
pennx=sig_dist;
col=3;
[x,y]=meshgrid(1:max(pennx(:,1)),1:max(pennx(:,2)));
[r,c]=size(pennx);
for jj=1:r
penn1x(pennx(jj,2)+1,pennx(jj,1)+1)=pennx(jj,col);
end
figure;
contour(penn1x,50);
title 'WAVEGUIDE PLOT'
xlabel 'Waveguide long (Z axis) in cells '
ylabel 'Radio of the waveguide in cells'
legend ('20 cells = 1cm')
grid;
160 100
0.05 0.05
10000
0.7
11
4.0 4.0
1 0 20 75 20
0000
0 180 1
0 90 90
0000
40 50 40 55 40 58
40 62 40 65 40 70
3
1 75 0 77 50 0 0 1.0 1.e21
1 75 50 152 52 0 0 1.0 1.e21
1 150 52 152 100 0 0 1.0 1.e21
Bibliography
THEORICAL INFORMATION
CLIP ART
http://www.fnrf.science.cmu.ac.th/theory/waveguide/Waveguide%20theory%208.html
http://www.rfcafe.com/references/electrical/waveguide.htm