三维电磁场FDTD程序(3D-FDTD-matlab)PEC边界.docx

三维电磁场FDTD程序(3D-FDTD-matlab)PEC边界.docx

ID:60782082

大小:12.57 KB

页数:11页

时间:2020-12-18

三维电磁场FDTD程序(3D-FDTD-matlab)PEC边界.docx_第1页
三维电磁场FDTD程序(3D-FDTD-matlab)PEC边界.docx_第2页
三维电磁场FDTD程序(3D-FDTD-matlab)PEC边界.docx_第3页
三维电磁场FDTD程序(3D-FDTD-matlab)PEC边界.docx_第4页
三维电磁场FDTD程序(3D-FDTD-matlab)PEC边界.docx_第5页
资源描述:

《三维电磁场FDTD程序(3D-FDTD-matlab)PEC边界.docx》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、三维电磁场FDTD程序(3D-FDTDmatlab)PEC边界%FDTDMainFunctionJobstoWorkers%%***********************************************************************%    3-DFDTDcodewithPECboundaries%***********************************************************************%%    ThisMAT

2、LABM-fileimplementsthefinite-differencetime-domain%    solutionofMaxwell'scurlequationsoverathree-dimensional%    Cartesianspacelatticecomprisedofuniformcubicgridcells.%    %    Toillustratethealgorithm,anair-filledrectangularcavity%    resonatorismode

3、led.Thelength,width,andheightofthe%    cavityareXcm(x-direction),Ycm(y-direction),and%    Zcm(z-direction),respectively.%%    ThecomputationaldomainistruncatedusingPECboundary%    conditions:%         ex(i,j,k)=0onthej=1,j=jb,k=1,andk=kbplanes%        

4、 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.Thesourcewavefo

5、rmisadifferentiated%    Gaussianpulsegivenby%         J(t)=-J0*(t-t0)*exp(-(t-t0)^2/tau^2),%    wheretau=50ps.TheFWHMspectralbandwidthofthiszero-dc-%    contentpulseisapproximately7GHz.Thegridresolution%    (dx=2mm)waschosentoprovideatleast10samplesper

6、%    wavelengthupthrough15GHz.%%    ToexecutethisM-file,type"fdtd3D"attheMATLABprompt.%    ThisM-filedisplaystheFDTD-computedEzfieldsateveryother%    timestep,andrecordsthoseframesinamoviematrix,M,which%    isplayedattheendofthesimulationusingthe"movie

7、"command.%%***********************************************************************function[Ex,Ey,Ez]=FDTD3D_Main(handles)globalSimRunStop%if~isdir('C:MATLAB7workcavityfigures')%    mkdir'C:MATLAB7workcavityfigures'%end%*************************

8、**********************************************%    GridPartition%***********************************************************************p.ip=get(handles.XdirPar,'Value');p.jp=get(handles.YdirPar,'Value');p.PN=get(handles.PartNo,'Value')

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。