亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? fdtd2d.m

?? 求解二維電磁場散射 非常準確 非??? 并且可以用來仿真亞波長的的新現象
?? M
?? 第 1 頁 / 共 2 頁
字號:
%***********************************************************************
%     2-D FDTD TE code with PML absorbing boundary conditions
%***********************************************************************
%
%     Program author: Susan C. Hagness
%                     Department of Electrical and Computer Engineering
%                     University of Wisconsin-Madison
%                     1415 Engineering Drive
%                     Madison, WI 53706-1691
%                     hagness@engr.wisc.edu
%
%     Copyright 2005
%
%     This MATLAB M-file implements the finite-difference time-domain
%     solution of Maxwell's curl equations over a two-dimensional
%     Cartesian space lattice comprised of uniform square grid cells.
%
%     To illustrate the algorithm, a 6-cm-diameter metal cylindrical 
%     scatterer in free space is modeled. The source excitation is 
%     a Gaussian pulse with a carrier frequency of 5 GHz.
%
%     The grid resolution (dx = 3 mm) was chosen to provide 20 samples
%     per wavelength at the center frequency of the pulse (which in turn
%     provides approximately 10 samples per wavelength at the high end
%     of the excitation spectrum, around 10 GHz).
%
%     The computational domain is truncated using the perfectly matched
%     layer (PML) absorbing boundary conditions.  The formulation used 
%     in this code is based on the original split-field Berenger PML. 
%     Exponential time stepping is implemented in the PML regions. 
%     The PML regions are labeled as shown in the following diagram: 
%
%            ----------------------------------------------
%           |  |                BACK PML                |  |
%            ----------------------------------------------
%           |L |                                       /| R|
%           |E |                                (ib,jb) | I|
%           |F |                                        | G|
%           |T |                                        | H|
%           |  |                MAIN GRID               | T|
%           |P |                                        |  |
%           |M |                                        | P|
%           |L | (1,1)                                  | M|
%           |  |/                                       | L|
%            ----------------------------------------------
%           |  |                FRONT PML               |  |
%            ----------------------------------------------
%
%     To execute this M-file, type "fdtd2D" at the MATLAB prompt.  
%
%     This code has been tested in the following Matlab environments:
%     Matlab version 6.1.0.450 Release 12.1 (May 18, 2001)
%     Matlab version 6.5.1.199709 Release 13 Service Pack 1 (August 4, 2003)
%     Matlab version 7.0.0.19920 R14 (May 6, 2004)
%     Matlab version 7.0.1.24704 R14 Service Pack 1 (September 13, 2004)
%     Matlab version 7.0.4.365 R14 Service Pack 2 (January 29, 2005)
%
%     Note: if you are using Matlab version 6.x, you may wish to make
%     one or more of the following modifications to this code: 
%       --uncomment line numbers 418 and 419
%       --comment out line numbers 610, 619, and 628
%
%***********************************************************************

clear

%***********************************************************************
%     Fundamental constants
%***********************************************************************

cc=2.99792458e8;            %speed of light in free space
muz=4.0*pi*1.0e-7;          %permeability of free space
epsz=1.0/(cc*cc*muz);       %permittivity of free space
etaz=sqrt(muz/epsz);

freq=5.0e+9;                %center frequency of source excitation
lambda=cc/freq;             %center wavelength of source excitation
omega=2.0*pi*freq;          

%***********************************************************************
%     Grid parameters
%***********************************************************************

ie=100;           %number of grid cells in x-direction
je=50;            %number of grid cells in y-direction

ib=ie+1;
jb=je+1;

is=15;            %location of z-directed hard source
js=je/2;          %location of z-directed hard source

dx=3.0e-3;        %space increment of square lattice
dt=dx/(2.0*cc);   %time step

nmax=300;         %total number of time steps

iebc=8;           %thickness of left and right PML region
jebc=8;           %thickness of front and back PML region
rmax=1.0e-7;
orderbc=2;
ibbc=iebc+1;
jbbc=jebc+1;
iefbc=ie+2*iebc;
jefbc=je+2*jebc;
ibfbc=iefbc+1;
jbfbc=jefbc+1;

%***********************************************************************
%     Material parameters
%***********************************************************************

media=2;

eps=[1.0 1.0];
sig=[0.0 1.0e+7];
mur=[1.0 1.0];
sim=[0.0 0.0];

%***********************************************************************
%     Wave excitation
%***********************************************************************

rtau=160.0e-12;
tau=rtau/dt;
delay=3*tau;

source=zeros(1,nmax);
for n=1:7.0*tau
  source(n)=sin(omega*(n-delay)*dt)*exp(-((n-delay)^2/tau^2));
end

%***********************************************************************
%     Field arrays
%***********************************************************************

ex=zeros(ie,jb);           %fields in main grid 
ey=zeros(ib,je);
hz=zeros(ie,je);

exbcf=zeros(iefbc,jebc);   %fields in front PML region
eybcf=zeros(ibfbc,jebc);
hzxbcf=zeros(iefbc,jebc);
hzybcf=zeros(iefbc,jebc);

exbcb=zeros(iefbc,jbbc);   %fields in back PML region
eybcb=zeros(ibfbc,jebc);
hzxbcb=zeros(iefbc,jebc);
hzybcb=zeros(iefbc,jebc);

exbcl=zeros(iebc,jb);      %fields in left PML region
eybcl=zeros(iebc,je);
hzxbcl=zeros(iebc,je);
hzybcl=zeros(iebc,je);

exbcr=zeros(iebc,jb);      %fields in right PML region
eybcr=zeros(ibbc,je);
hzxbcr=zeros(iebc,je);
hzybcr=zeros(iebc,je);

%***********************************************************************
%     Updating coefficients
%***********************************************************************

for i=1:media
  eaf  =dt*sig(i)/(2.0*epsz*eps(i));
  ca(i)=(1.0-eaf)/(1.0+eaf);
  cb(i)=dt/epsz/eps(i)/dx/(1.0+eaf);
  haf  =dt*sim(i)/(2.0*muz*mur(i));
  da(i)=(1.0-haf)/(1.0+haf);
  db(i)=dt/muz/mur(i)/dx/(1.0+haf);
end

%***********************************************************************
%     Geometry specification (main grid)
%***********************************************************************

%     Initialize entire main grid to free space

caex(1:ie,1:jb)=ca(1);     
cbex(1:ie,1:jb)=cb(1);

caey(1:ib,1:je)=ca(1);
cbey(1:ib,1:je)=cb(1);

dahz(1:ie,1:je)=da(1);
dbhz(1:ie,1:je)=db(1);

%     Add metal cylinder

diam=20;          % diameter of cylinder: 6 cm
rad=diam/2.0;     % radius of cylinder: 3 cm
icenter=4*ie/5;   % i-coordinate of cylinder's center
jcenter=je/2;     % j-coordinate of cylinder's center

for i=1:ie
for j=1:je
  dist2=(i+0.5-icenter)^2 + (j-jcenter)^2;
  if dist2 <= rad^2 
     caex(i,j)=ca(2);
     cbex(i,j)=cb(2);
  end
  dist2=(i-icenter)^2 + (j+0.5-jcenter)^2;
  if dist2 <= rad^2 
     caey(i,j)=ca(2);
     cbey(i,j)=cb(2);
  end
end
end

%***********************************************************************
%     Fill the PML regions
%
%     PML theory describes a continuous grading of the material properties
%     over the PML region.  In the FDTD grid it is necessary to discretize
%     the grading by averaging the material properties over a grid cell 
%     width centered on each field component.  As an example of the 
%     implementation of this averaging, we take the integral of the 
%     continuous sigma(x) in the PML region
%   
%         sigma_i = integral(sigma(x))/dx
%   
%     where the integral is over a single grid cell width in x, and is 
%     bounded by x1 and x2.  Applying this to the polynomial grading of 
%     Equation 7.60a produces
%
%         sigma_i = sigmam/(dx*(m+1)*d^m)*(x2^(m+1)-x1^(m+1))
%
%     where sigmam is the maximum value of sigma as described by Equation 
%     7.62.  In the code below, the coefficient in the expression for
%     sigma_i is denoted "bcfactor".
%         
%     The definitions of x1 and x2 depend on the position of the field 
%     component within the grid cell.  We have either
%
%         x1 = (i-0.5)*dx,  x2 = (i+0.5)*dx
%  
%     or
%  
%         x1 = (i)*dx,      x2 = (i+1)*dx
%
%     where i varies over the PML region.
%  
%***********************************************************************

delbc=iebc*dx;
sigmam=-log(rmax)*(orderbc+1)/(2*etaz*delbc);   %Eq. 7.62 in text
bcfactor=sigmam/(dx*(orderbc+1)*(delbc^orderbc));  

%     FRONT region 

caexbcf(1:iefbc,1)=1.0;
cbexbcf(1:iefbc,1)=0.0;
for j=2:jebc
  y1=(jebc-j+1.5)*dx;
  y2=(jebc-j+0.5)*dx;
  sigmay=bcfactor*(y1^(orderbc+1)-y2^(orderbc+1));
  ca1=exp(-sigmay*dt/epsz);
  cb1=(1.0-ca1)/(sigmay*dx);
  caexbcf(1:iefbc,j)=ca1;
  cbexbcf(1:iefbc,j)=cb1;
end
sigmay = bcfactor*(0.5*dx)^(orderbc+1);
ca1=exp(-sigmay*dt/epsz);
cb1=(1-ca1)/(sigmay*dx);
caex(1:ie,1)=ca1;
cbex(1:ie,1)=cb1;
caexbcl(1:iebc,1)=ca1;
cbexbcl(1:iebc,1)=cb1;
caexbcr(1:iebc,1)=ca1;
cbexbcr(1:iebc,1)=cb1;

for j=1:jebc
  y1=(jebc-j+1)*dx;
  y2=(jebc-j)*dx;
  sigmay=bcfactor*(y1^(orderbc+1)-y2^(orderbc+1));
  sigmays=sigmay*(muz/epsz);
  da1=exp(-sigmays*dt/muz);
  db1=(1-da1)/(sigmays*dx);
  dahzybcf(1:iefbc,j)=da1;
  dbhzybcf(1:iefbc,j)=db1;
  caeybcf(1:ibfbc,j)=ca(1);
  cbeybcf(1:ibfbc,j)=cb(1);
  dahzxbcf(1:iefbc,j)=da(1);
  dbhzxbcf(1:iefbc,j)=db(1);
end

%     BACK region 

caexbcb(1:iefbc,jbbc)=1.0;
cbexbcb(1:iefbc,jbbc)=0.0;
for j=2:jebc
  y1=(j-0.5)*dx;
  y2=(j-1.5)*dx;
  sigmay=bcfactor*(y1^(orderbc+1)-y2^(orderbc+1));
  ca1=exp(-sigmay*dt/epsz);
  cb1=(1-ca1)/(sigmay*dx);
  caexbcb(1:iefbc,j)=ca1;
  cbexbcb(1:iefbc,j)=cb1;
end
sigmay = bcfactor*(0.5*dx)^(orderbc+1);
ca1=exp(-sigmay*dt/epsz);
cb1=(1-ca1)/(sigmay*dx);
caex(1:ie,jb)=ca1;
cbex(1:ie,jb)=cb1;
caexbcl(1:iebc,jb)=ca1;
cbexbcl(1:iebc,jb)=cb1;
caexbcr(1:iebc,jb)=ca1;
cbexbcr(1:iebc,jb)=cb1;

for j=1:jebc
  y1=j*dx;
  y2=(j-1)*dx;
  sigmay=bcfactor*(y1^(orderbc+1)-y2^(orderbc+1));
  sigmays=sigmay*(muz/epsz);
  da1=exp(-sigmays*dt/muz);
  db1=(1-da1)/(sigmays*dx);
  dahzybcb(1:iefbc,j)=da1;
  dbhzybcb(1:iefbc,j)=db1;
  caeybcb(1:ibfbc,j)=ca(1);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av在线资源网站| 国产一区二区精品久久91| 日韩精品一区二区三区swag | ...xxx性欧美| 欧美性受极品xxxx喷水| 日本午夜精品一区二区三区电影 | 国产成人亚洲综合a∨猫咪| 日韩美女啊v在线免费观看| 4438x成人网最大色成网站| 粉嫩嫩av羞羞动漫久久久| 欧美日韩美女一区二区| 国产精品综合一区二区| 136国产福利精品导航| 欧美日本韩国一区| 99精品视频在线观看| 国产一区二三区好的| 精品国内片67194| 亚洲视频资源在线| 日本中文在线一区| av电影在线观看一区| 欧美日韩免费观看一区二区三区| 欧美不卡一区二区| 国产精品久久久久aaaa樱花| 性欧美疯狂xxxxbbbb| 国产毛片精品一区| 在线成人免费视频| 亚洲精品自拍动漫在线| 国产剧情在线观看一区二区| 欧美亚一区二区| 国产精品午夜免费| 久久久精品黄色| 欧美tickle裸体挠脚心vk| 在线成人免费观看| 一区二区三区四区av| 国产制服丝袜一区| 精品少妇一区二区三区| 亚洲综合图片区| 亚洲国产综合91精品麻豆| 国产麻豆精品theporn| 欧美日韩在线一区二区| 久久只精品国产| 日韩电影在线观看网站| 成人va在线观看| 精品欧美一区二区在线观看| 久久精品亚洲乱码伦伦中文| 亚洲男人天堂av| 国产成人亚洲综合a∨猫咪| 91麻豆精品久久久久蜜臀| 国产精品伦理在线| av电影在线观看完整版一区二区| 精品美女一区二区三区| 五月综合激情婷婷六月色窝| 99re免费视频精品全部| 国产精品久久一级| 大胆欧美人体老妇| 亚洲国产精品国自产拍av| 国产九色精品成人porny| 日韩欧美激情一区| 国模娜娜一区二区三区| 久久久av毛片精品| 成人av资源在线观看| 精品毛片乱码1区2区3区 | 日韩一区二区在线播放| 亚洲一区二区三区四区五区黄| 色婷婷精品大在线视频| 国产日韩在线不卡| 国内不卡的二区三区中文字幕| 久久影音资源网| 91免费看`日韩一区二区| 日韩精品国产欧美| 久久美女艺术照精彩视频福利播放 | 一本色道综合亚洲| 亚洲国产欧美在线| 久久久久久久综合日本| 91国产免费看| 国产精品99久久久久久似苏梦涵| 中文字幕亚洲一区二区av在线| 色婷婷狠狠综合| 午夜精品123| 国产精品视频免费看| 欧洲色大大久久| 国产一区二区伦理片| 亚洲一区二区三区四区在线免费观看 | 欧美精品tushy高清| 成人综合激情网| 久久精品国产一区二区三区免费看| 亚洲精品一区二区精华| 欧美日韩色综合| 在线免费观看日本一区| 国产精品一区二区果冻传媒| 日日夜夜免费精品| 亚洲手机成人高清视频| 欧美激情中文字幕| 欧美tk丨vk视频| 337p粉嫩大胆噜噜噜噜噜91av| 欧美在线播放高清精品| 欧美午夜一区二区三区免费大片| jlzzjlzz国产精品久久| 成人午夜在线播放| 亚洲va国产va欧美va观看| 亚洲一区在线看| 一区二区三区高清| 午夜欧美一区二区三区在线播放| 亚洲一区av在线| 日韩综合在线视频| 久久精品国产亚洲一区二区三区| 亚洲欧美乱综合| 亚洲综合免费观看高清在线观看| 亚洲美女视频一区| 亚洲一区中文在线| 奇米精品一区二区三区在线观看一| 亚洲精品在线一区二区| 亚洲国产综合在线| 中文字幕一区二区三区在线不卡 | 99re这里只有精品首页| 色综合久久综合中文综合网| 欧美精品777| 国产精品丝袜在线| 一区二区三区久久| 韩国欧美一区二区| 色婷婷综合久久久中文字幕| 高清beeg欧美| 欧美日韩亚洲不卡| 中文一区一区三区高中清不卡| 夜夜嗨av一区二区三区四季av| 日本不卡一二三区黄网| 99国产精品国产精品毛片| 欧美另类变人与禽xxxxx| 欧美日韩不卡视频| 久久精品视频在线看| 午夜亚洲国产au精品一区二区| 国产麻豆精品在线| 欧美色老头old∨ideo| 欧美v日韩v国产v| 亚洲欧美在线视频| 国产精品资源站在线| 精品美女一区二区| 久久99热狠狠色一区二区| 色一情一伦一子一伦一区| 日韩欧美国产精品| 久久av资源站| 久久在线免费观看| 国产成人一区二区精品非洲| 色哟哟国产精品| 久久久国际精品| 国产精品影视在线| 久久噜噜亚洲综合| 麻豆国产精品一区二区三区 | 国产成人综合亚洲网站| 26uuu久久综合| 成人黄色777网| 亚洲视频一区二区在线观看| 91在线小视频| 国产精品久久网站| 欧美私人免费视频| 香蕉成人啪国产精品视频综合网| 欧美一级二级三级乱码| voyeur盗摄精品| 青青草原综合久久大伊人精品优势| 日本一区二区视频在线| 欧美在线观看视频一区二区三区| 另类小说视频一区二区| 亚洲一本大道在线| 欧美—级在线免费片| 日韩欧美一级二级三级| 色综合网站在线| 风间由美性色一区二区三区| 亚洲欧美乱综合| 国产精品另类一区| 久久精品人人做人人综合 | 美腿丝袜亚洲色图| 亚洲一区二区三区免费视频| 中文字幕一区二区三区在线播放| 精品国产免费一区二区三区四区| 欧美一区二区福利在线| 91精品欧美一区二区三区综合在| 在线观看视频91| 欧美自拍丝袜亚洲| 日本韩国精品在线| 欧美日韩的一区二区| 欧美亚洲高清一区二区三区不卡| 色妞www精品视频| 色999日韩国产欧美一区二区| aaa欧美日韩| 制服丝袜亚洲色图| 日韩午夜电影在线观看| 欧美岛国在线观看| 久久美女艺术照精彩视频福利播放| 2欧美一区二区三区在线观看视频| 26uuuu精品一区二区| 国产精品第一页第二页第三页| 亚洲人成精品久久久久久| 亚洲一区二区视频在线观看| 免费一区二区视频| 成人亚洲一区二区一| 91福利在线观看| 欧美精品一区二区久久久| 中文字幕一区二区三区在线观看| 一区二区三区在线视频免费观看| 肉色丝袜一区二区|