161_1_FDTD_2D_EE161

161_1_FDTD_2D_EE161 - clear This is a 2D FDTD code which solves for electromagnetics waves in a parallel plate waveguide This code is for TM waves

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
clear % This is a 2D FDTD code which solves for electromagnetics waves in a parallel plate waveguide. % This code is for TM waves only. The field has only Ey, Hx and Ez components % The coordinate is defined as follows. The wave propagates toward positive Z-axis. % % ----------------------------------- ^ % | y % % ----------------------------------- --> z % % %Define several parameters EP0=8.84e-12; % Epsilon, free space permittivity U0=4.*pi*1.0E-7; %Mu, free space permeability CC=3.0*1.e8; %Speed of light in free space freq=3e9; %Frequency of the wave, if sinusoidal excitation is used f %Only the cross-section (x-y) plane of the waveguide is considered, %Input the size of the computational area first; YY=0.03; %The height of waveguide, unit in meter ZZ=0.5; %The length of waveguide, unit in meter Z %Define how many number of cells you want to divide in Y and Z directions. MY=6; MZ=50; DY=YY/MY; DZ=ZZ/MZ; D NEY=MY*(MZ+1); %Total number of Ey nodes NEZ=MZ*(MY+1); %Total number of Ez nodes
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/01/2010 for the course EE EE161 taught by Professor Wang during the Spring '09 term at UCLA.

Page1 / 3

161_1_FDTD_2D_EE161 - clear This is a 2D FDTD code which solves for electromagnetics waves in a parallel plate waveguide This code is for TM waves

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online