%*********************************************************************** % 3-DFDTDcodewithPECboundaries %*********************************************************************** % % Programauthor: % puterEngineering % UniversityofWisconsin-Madison % 1415EngineeringDrive % Madison,WI53706-1691 % 608-265-5739 % % % Dateofthisversion: February2000 % % ThisMATLABM-fileimplementsthefinite-differencetime-domain % solutionofMaxwell'scurlequationsoverathree-dimensional % prisedofuniformcubicgridcells. % % Toillustratethealgorithm,anair-filledrectangularcavity % resonatorismodeled. Thelength,width,andheightofthe % (x-direction),(y-direction),and % (z-direction),respectively. % % putationaldomainistruncatedusingPECboundary % conditions: % ex(i,j,k)=0onthej=1,j=jb,k=1,andk=kbplanes % ey(i,j,k)=0onthei=1,i=ib,k=1,andk=kbplanes % ez(i,j,k)=0onthei=1,i=ib,j=1,andj=jbplanes % ThesePECboundariesformtheouterlosslesswallsofthecavity. % % Thecavityisexcitedbyanadditivecurrentsourceoriented % alongthez-direction. Thesourcewaveformisadifferentiated % Gaussianpulsegivenby % J(t)=-J0*(t-t0)*exp(-(t-t0)^2/tau^2), % wheretau=50ps. TheFWHMspectralbandwidthofthiszero-dc- % % (dx=2mm)waschosentoprovideatleast10samplesper % wavele
FDTD(时域有限差分法)算法的Matlab源程序 来自淘豆网m.daumloan.com转载请标明出处.