- 1、本文档共11页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
三维电磁场FDTD程序(3D-FDTD matlab)PEC边界
三维电磁场FDTD程序(3D-FDTD matlab)PEC边界% FDTD Main Function Jobs to Workers %%***********************************************************************%???? 3-D FDTD code with PEC boundaries%***********************************************************************%%???? This MATLAB M-file implements the finite-difference time-domain%???? solution of Maxwells curl equations over a three-dimensional%???? Cartesian space lattice comprised of uniform cubic grid cells.%???? %???? To illustrate the algorithm, an air-filled rectangular cavity %???? resonator is modeled. The length, width, and height of the %???? cavity are X cm (x-direction), Y cm (y-direction), and %???? Z cm (z-direction), respectively.%%???? The computational domain is truncated using PEC boundary %???? conditions:%????????? ex(i,j,k)=0 on the j=1, j=jb, k=1, and k=kb planes%????????? ey(i,j,k)=0 on the i=1, i=ib, k=1, and k=kb planes%????????? ez(i,j,k)=0 on the i=1, i=ib, j=1, and j=jb planes%???? These PEC boundaries form the outer lossless walls of the cavity.%%???? The cavity is excited by an additive current source oriented%???? along the z-direction. The source waveform is a differentiated %???? Gaussian pulse given by %????????? J(t)=-J0*(t-t0)*exp(-(t-t0)^2/tau^2), %???? where tau=50 ps. The FWHM spectral bandwidth of this zero-dc-%???? content pulse is approximately 7 GHz. The grid resolution %???? (dx = 2 mm) was chosen to provide at least 10 samples per %???? wavelength up through 15 GHz.%%???? To execute this M-file, type fdtd3D at the MATLAB prompt.%???? This M-file displays the FDTD-computed Ez fields at every other%???? time step, and records those frames in a movie matrix, M, which %???? is played at the end of the simulation using the movie command.%%***********************************************************************function [Ex,Ey,Ez]=FDTD3D_Main(handles)globalSimRunStop% if ~isdir(C:\MATLAB7\work\cavity\figures)%???? mkdir C:\MATLAB7\work\cavity\figures% end%********************************
文档评论(0)