Professional Documents
Culture Documents
Homework 7 - FDFD 2D
Homework 7 - FDFD 2D
EE 5320
Page 1 of 4
Homework #7
Due October 13, 2015
EE 5320
Use the following header for your program. You can make changes as necessary.
%
%
%
%
%
% INITIALIZE MATLAB
close all;
clc;
clear all;
% OPEN FIGURE WINDOW
figure('Color','w');
% UNITS
centimeters
millimeters
meters
degrees
seconds
hertz
gigahertz
=
=
=
=
=
=
=
1;
0.1 * centimeters;
100 * centimeters;
pi/180;
1;
1/seconds;
1e9 * hertz;
% CONSTANTS
c0 = 299792458 * meters/seconds;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% DEFINE SIMULATION PARAMETERS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% SOURCE PARAMETERS
f0
= 24.0 * gigahertz;
lam0 = c0/f0;
theta = 15 * degrees;
MODE = 'H';
%operating frequency
%operating wavelength in free space
%angle of incidence
%electromagnetic mode, 'E' or 'H'
% GRATING PARAMETERS
fd
= 8.0 * gigahertz;
lamd = c0/fd;
x1
= 0.1040*lamd;
x2
= 0.0175*lamd;
x3
= 0.1080*lamd;
L
= 0.6755*lamd;
d
= 0.2405*lamd;
t
= 0.0510*lamd;
ur
= 1.0;
er
= 10.0;
%design frequency
%design wavelength
%width of tooth 1
%width of slot
%width of tooth 2
%period of grating
%grating depth
%substrate thickness
%relative permeability of grating
%dielectric constant of grating
% EXTERNAL MATERIALS
ur1 = 1.0;
er1 = 1.0;
ur2 = 1.0;
er2 = 1.0;
%permeability
%permittivity
%permeability
%permittivity
% GRID
NRES =
BUFZ =
NPML =
%grid resolution
%spacer region above and below grating
%size of PML at top and bottom of grid
PARAMETERS
40;
2*lam0 * [1 1];
[20 20];
in
in
in
in
the
the
the
the
reflection region
reflection region
transmission region
transmission region
Page 2 of 4
Homework #7
Due October 13, 2015
EE 5320
The output of your program should look something like below for the H mode. Provide
these same results for both the E and H modes in your homework. Be careful to display
the parameters with proper units!
DASHBOARD PARAMETERS:
Source Frequency
Angle of Incidence
Electromagnetic Mode
Device Design Frequency
x1
x2
x3
L
d
t
ur
er
ur1
er1
ur2
er2
NRES
BUFZ
NPML
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
24 GHz
15 degrees
H
8 GHz
3.8973 mm
0.6558 mm
4.0472 mm
25.3137 mm
9.0125 mm
1.9112 mm
1
10
1
1
1
1
40
[2 2]*lam0
[20 20]
Page 3 of 4
Homework #7
Due October 13, 2015
EE 5320
Page 4 of 4