登 录
註 冊
论坛
微波仿真网
注册
登录论坛可查看更多信息
微波仿真论坛
>
时域有限差分法 FDTD
>
PML吸收边界的二维FDTD代码
发帖
回复
4538
阅读
4
回复
[
讨论
]
PML吸收边界的二维FDTD代码
离线
lv19860312
UID :28549
注册:
2009-03-27
登录:
2009-06-08
发帖:
17
等级:
仿真新人
0楼
发表于: 2009-06-07 19:59:17
我在网上找的这个程序,有些地方看不同,请各位给解释一下。代码如下:
lzDA0MPI:
%***********************************************************************
0Mu6R=s
% 2-D FDTD TE code with PML absorbing boundary conditions
x^]J^L45
%***********************************************************************
D@ 4sq^|2
%
s i=m5$V
% Program author: Susan C. Hagness
J=sj+:GS
% Department of Electrical and Computer Engineering
BDiN*.w5
% University of Wisconsin-Madison
e=u?-8
% 1415 Engineering Drive
r&_bk Y%
% Madison, WI 53706-1691
rctGa ,l
% 608-265-5739
QopA'm
%
hagness@engr.wisc.edu
u]uZc~T
%
w1J%%//(h
% Date of this version: February 2000
@D@_PA)e(
%
A$o7<Hx
% This MATLAB M-file implements the finite-difference time-domain
V krjs0
% solution of Maxwell's curl equations over a two-dimensional
+ko-oZ7V
% Cartesian space lattice comprised of uniform square grid cells.
P4{!/&/
%
KqhE=2,
% To illustrate the algorithm, a 6-cm-diameter metal cylindrical
6[~_;0
% scatterer in free space is modeled. The source excitation is
UrJrvx
% a Gaussian pulse with a carrier frequency of 5 GHz.
e[l#r>NT
%
&~{0@/
% The grid resolution (dx = 3 mm) was chosen to provide 20 samples
W|-<ekH_u
% per wavelength at the center frequency of the pulse (which in turn
* ,#SwZ
% provides approximately 10 samples per wavelength at the high end
>,}SP;
% of the excitation spectrum, around 10 GHz).
!l5&