{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

161_1_FDTD_2D_EE161

161_1_FDTD_2D_EE161 - clear This is a 2D FDTD code which...

Info icon This 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 NHX=MY*MZ; %Total number of Hx nodes N %Define the material Dielectric Constant; EP=1.0*ones(MY,MZ); Sigma=0.0*ones(MY,MZ); S
Image of page 1

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern