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

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

?? pbgband.m

?? This is a program to calculate the Photonic Bands of two dimension Photonic Crystal with circular in
?? M
字號:
function PBGBand(ea,eb,R,PCType,Keach,TEorTM)

%function PBGBand(ea,eb,R,PCType,Keach,TEorTM)
%--------------------------------------------------------------
%| This is a program to calculate the Photonic Bands of two   |
%| dimension Photonic Crystal with circular inclusions.       |
%| It calculates both TE and TM modes (E and H polarization)  |
%--------------------------------------------------------------
%Parameters:
%ea: The dielectric constant of the circular inclusions.
%eb: The dielectric constant of background.
%R: The radius of dielectric columns
%PCType  =1: Square lattice
%        =2: Triangular lattice
%        =3: Honeycomb
%Keach: The number of k vectors in each wave vector branch.
%TEorTM: =0: TE modes
%        =1: TM modes
%--------------------------------------------------------------

tic;

disp('--------------------------------------------------')
if (TEorTM==0)
    disp('Plane wave expansion method for PC bands: TE modes');
else;
    disp('Plane wave expansion method for PC bands: TM modes');
end    
disp('--------------------------------------------------')
if (PCType==1)
    disp('Square lattice');
end
if (PCType==2)
    disp('Triangular lattice');
end
if (PCType==3)
    disp('Honeycomb lattice');
end

%Control parameters
Ktype=3; % The number of band parts, such as X->M, T->X, ...
NumberK=Ktype*Keach; %The total number of K vector;

NEIG=20; %NEIG: The number cut of the Eigvalue.

%Initial parameters
a=1;   %Lattice constance.

a1=a*[1,0];
if PCType==1
   a2=a*[0,1];
end
if PCType==2
   a2=a*[0.5,sqrt(3)/2];
end
%a1,a2 are the basic vectors of lacctice cell.

ac=abs(a1(1)*a2(2)-a1(2)*a2(1)); 
%ac: Area of lattice cell.
b1=2*pi/ac*[a2(2),-a2(1)];
b2=2*pi/ac*[-a1(2),a1(1)];
%b1, b2 are vectors in reciprocal space.

f=pi*R*R/ac;
%f: The filling fraction, i.e. the fraction of
%   the total volume occupied by the rods.

MaxDimForG=10;  % The max Potive Number of the reciprocal lattice, G
DimForG=2*MaxDimForG+1; 
NPW=DimForG*DimForG; %NPW: The number of Plane Waves

%
%            ^ 
%            | Y
%      O  O  O  O  O  -->(MaxDimForG,MaxDimForG)for this point!
%      O  O  O  O  O 
%    --O--O--O--O--O--> X
%      O  O  O  O  O
%      O  O  O  O  O 
%            |   
%            |
%initial the G matrix
disp('--------------------------------------------------')
disp('Dielectric constant FT--- BEGIN')

gtemp=-MaxDimForG:MaxDimForG;
gtemp1=repmat(gtemp,DimForG,1);
Gx=b1(1)*gtemp1+b2(1)*gtemp1';
Gy=b1(2)*gtemp1+b2(2)*gtemp1';
Gx=Gx(:)';
Gy=Gy(:)';

disp(strcat('The number of plane waves is--',num2str(NPW)));

Gx_m=repmat(Gx,NPW,1);
Gx_n=Gx_m';
Gy_m=repmat(Gy,NPW,1);
Gy_n=Gy_m'; 

%calculate the Matrix coefficience.
ek0=f/ea+(1-f)/eb; 
ekc=(1/ea-1/eb)*f*2;  

%Calculate the ek matrix, the coefficence of Fourier transform of ek.
GR_mat=sqrt((Gx_m-Gx_n).*(Gx_m-Gx_n)+(Gy_m-Gy_n).*(Gy_m-Gy_n))*R;
if PCType==1|PCType==2
   %eliminate the division on zero in the calculatation of ek
   na=find(GR_mat==0);
   GR_mat(na)=1;   
   ek_mat=ekc*besselj(1,GR_mat)./GR_mat; 
   ek_mat(na)=ek0;
end
if PCType==3
   %eliminate the division on zero in the calculatation of ek
   na=find(GR_mat==0);
   GR_mat(na)=1;   
   ek_mat=cos((Gx_m-Gx_n).*a/2+(Gy_m-Gy_n).*a*sqrt(3)/6).*ekc.*besselj(1,GR_mat)./GR_mat; 
   ek_mat(na)=ek0;
end
%toc
%tic
%Calculated points:
Point=zeros(Ktype+1,2);
if PCType==1 %Square lattice, or rectangular lattice
   Point(1,:)=[0,0]; %Gama Point
   Point(2,:)=[b1(1)/2,0]; %X Point
   Point(3,:)=[(b1(1)+b2(1))/2,(b1(2)+b2(2))/2]; %M point
   Point(4,:)=[0,0]; %Gama Point
end
if PCType==2|PCType==3 %Triangular lattice and Honeycomb lattice.
   Point(1,:)=[0,0]; %Gama Point
   Point(2,:)=[b2(2)*sqrt(3)/6,b2(2)/2]; %K Point
   Point(3,:)=[0,b2(2)/2]; % M point
   Point(4,:)=[0,0]; %Gama Point
end

%These three are for the K vectors, for the different case.
K1=[];
K2=[];
for ktnum=1:Ktype
   K1temp=linspace(Point(ktnum,1),Point(ktnum+1,1),Keach+1);
   K2temp=linspace(Point(ktnum,2),Point(ktnum+1,2),Keach+1);
   K1=[K1,K1temp(1:Keach)];
   K2=[K2,K2temp(1:Keach)];
end
disp('Dielectric constant FT--- END')
disp('--------------------------------------------------')

disp('Eigen value calculations--- BEGIN')

eigval=[]; %Initial the eigvalue matrix.

for knum=1:NumberK
   disp(strcat('---K vector No.',num2str(knum),'---',num2str(NumberK))) 
   
   kx=K1(knum);
   ky=K2(knum);
   %tic
   
   %Now begin to calculate the matrix H:      
   if (TEorTM==0)
       %TE part
       KGmn_mat=(kx-Gx_m).*(kx-Gx_n)+(ky-Gy_m).*(ky-Gy_n);
       H=KGmn_mat.*ek_mat;
   else
       %TM part
       %Place your codes below for Task 1.
   
   end       
       
   %Find the eigenvalues
   eigvalue=sort(eig(H));
   eigval=[eigval,eigvalue(1:NEIG)];   
end

eigval=[eigval,eigval(:,1)];  
eigval=sqrt(eigval)*a*0.5/pi;
eigval=real(eigval); %Complete All the things

disp('Eigen value calculation0s--- END')
disp('--------------------------------------------------')

%Plot the figures
%x=linspace(0,10,NumberK+1);
for m=1:Ktype
   D(m)=sqrt((Point(m+1,1)-Point(m,1))^2+(Point(m+1,2)-Point(m,2))^2);
   xtemp(m,:)=linspace(0,D(m),Keach+1);
end
x=xtemp(1,1:Keach);
Dtotal=0;
for m=2:Ktype
   Dtotal=Dtotal+D(m-1);
   x=[x,xtemp(m,1:Keach)+Dtotal];
end
x=[x,xtemp(Ktype,Keach+1)+Dtotal];
x=x/max(x);

MaxB=0.8;
x1=x(Keach+1);
x2=x(Keach*2+1);

figure;
clf;

h=plot(x,eigval,'b-',[x1 x1],[0 MaxB],'k:',[x2 x2],[0 MaxB],'k:');
set(h,'LineWidth',2.0);
if (TEorTM==0)
    legend('TE modes',4);
else
    legend('TM modes',4);
end    

axis([0 1 0 MaxB]);
h=ylabel('Normalized frequency (a/\lambda)');
set(h,'FontSize',14);
if (PCType==1)
   titletext=strcat('Square Lattice (ea=',num2str(ea),', eb=',num2str(eb),', R=',num2str(R),')');
   text(x(1)-0.02,-0.03, '\Gamma','FontSize',14)
   text(x1-0.02,-0.03, 'X','FontSize',14)
   text(x2-0.02,-0.03, 'M','FontSize',14)
   text(x(Keach*Ktype+1)-0.02,-0.03, '\Gamma','FontSize',14)
   
end
if (PCType==2)
   titletext=strcat('Triangular Lattice (ea=',num2str(ea),', eb=',num2str(eb),', R=',num2str(R),')');
   text(x(1)-0.02,-0.03, '\Gamma','FontSize',14)
   text(x1-0.02,-0.03, 'K','FontSize',14)
   text(x2-0.02,-0.03, 'M','FontSize',14)
   text(x(Keach*Ktype+1)-0.02,-0.03, '\Gamma','FontSize',14)
end
if (PCType==3)
   titletext=strcat('Honeycomb Lattice (ea=',num2str(ea),', eb=',num2str(eb),', R=',num2str(R),')');
   text(x(1)-0.02,-0.03, '\Gamma','FontSize',14)
   text(x1-0.02,-0.03, 'K','FontSize',14)
   text(x2-0.02,-0.03, 'M','FontSize',14)
   text(x(Keach*Ktype+1)-0.02,-0.03, '\Gamma','FontSize',14)
end
h=title(titletext);
set(h,'FontSize',14);
set(gca,'xtick',[]);

%Save the data
if (TEorTM==0)
    save datate.mat x ea eb R PCType MaxB Keach eigval;
else
    save datatm.mat x ea eb R PCType MaxB Keach eigval;
end    

toc;



?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产白丝网站精品污在线入口| 日本午夜一区二区| 欧美刺激午夜性久久久久久久| 欧美亚洲国产一区在线观看网站| 99精品视频在线观看| 成人av在线看| 99视频一区二区| 91免费在线视频观看| 91热门视频在线观看| 色久综合一二码| 欧美日韩一级视频| 91精品国产免费| 精品久久一区二区| 国产日产亚洲精品系列| 国产精品国产三级国产专播品爱网 | 亚洲欧美另类久久久精品| 亚洲欧美视频在线观看视频| 亚洲高清视频的网址| 日韩中文字幕av电影| 精品在线亚洲视频| 成人短视频下载| 欧美三级电影一区| 欧美成人国产一区二区| 亚洲国产高清aⅴ视频| 亚洲人成精品久久久久久| 亚洲一区二区视频在线| 美日韩一级片在线观看| 国产成人免费视频网站 | 亚洲精品国产精品乱码不99| 性久久久久久久久| 国产一区二区主播在线| 91美女在线视频| 日韩一区二区免费视频| 亚洲欧洲日韩女同| 青青草国产成人99久久| 成人激情小说网站| 91精品国产综合久久久蜜臀图片| 久久久亚洲精品一区二区三区| 亚洲欧美另类久久久精品| 久草热8精品视频在线观看| 成av人片一区二区| 欧美一区二区三区视频在线| 国产精品色哟哟| 免费观看在线色综合| 色婷婷亚洲婷婷| 国产婷婷色一区二区三区| 日韩在线一二三区| 国产成人精品一区二| 这里是久久伊人| 亚洲免费在线观看视频| 国产精品资源在线看| 欧美日韩精品二区第二页| 国产精品午夜在线观看| 精品制服美女丁香| 欧美日韩大陆在线| 尤物视频一区二区| 丁香网亚洲国际| 日韩欧美亚洲一区二区| 午夜精品在线看| 日本道色综合久久| 亚洲三级理论片| 成人免费精品视频| 久久免费美女视频| 精品一区二区三区免费视频| 91精品国产综合久久精品麻豆 | 午夜欧美电影在线观看| 91丨九色丨尤物| 国产欧美日韩另类一区| 国产精品亚洲人在线观看| 欧美成人精品3d动漫h| 日本成人中文字幕在线视频| 欧美日韩在线一区二区| 亚洲福中文字幕伊人影院| 91精彩视频在线| 一区二区三区精品视频在线| 97精品国产露脸对白| 国产精品不卡视频| 91在线观看污| 一区二区三区**美女毛片| 一本久道久久综合中文字幕| 樱桃国产成人精品视频| 欧美做爰猛烈大尺度电影无法无天| 亚洲日本中文字幕区| 91麻豆精东视频| 亚洲高清久久久| 日韩免费高清电影| 国产乱国产乱300精品| 欧美国产成人精品| 色综合天天在线| 蜜芽一区二区三区| 欧美不卡在线视频| 成人做爰69片免费看网站| 综合色天天鬼久久鬼色| 欧美日韩免费观看一区三区| 日韩精品成人一区二区三区| 欧美xxxxx裸体时装秀| 东方aⅴ免费观看久久av| 亚洲欧美一区二区三区久本道91| 欧美亚洲自拍偷拍| 蜜桃免费网站一区二区三区| 国产情人综合久久777777| 在线免费一区三区| 久久精品噜噜噜成人av农村| 国产精品妹子av| 欧美视频在线观看一区| 国产一区二区在线视频| 亚洲免费成人av| 欧美一区二区精品在线| 成人爽a毛片一区二区免费| 一区二区三区免费看视频| 欧美成人女星排行榜| 99riav久久精品riav| 免费成人在线观看视频| 国产精品久久久久永久免费观看 | 日本欧美大码aⅴ在线播放| 久久先锋影音av| 在线视频欧美精品| 国产精品一二三四五| 亚洲精品免费视频| 久久久久一区二区三区四区| 色婷婷狠狠综合| 国产一区二区影院| 亚洲动漫第一页| 国产精品女主播av| 精品日韩在线观看| 欧美电影一区二区| 91色九色蝌蚪| 国产**成人网毛片九色| 日韩av不卡一区二区| 亚洲欧美激情在线| 国产精品丝袜久久久久久app| 日韩欧美亚洲一区二区| 91福利国产精品| 成人免费观看av| 精品在线观看免费| 日韩高清不卡在线| 亚洲丶国产丶欧美一区二区三区| 亚洲欧洲精品成人久久奇米网| 精品国产3级a| 日韩精品在线一区| 欧美一级淫片007| 7777精品伊人久久久大香线蕉经典版下载 | 日韩视频一区在线观看| 欧美最新大片在线看| 99久久精品费精品国产一区二区| 国产成人av一区二区三区在线 | 欧美色视频在线| 91豆麻精品91久久久久久| 99精品在线免费| 成人精品小蝌蚪| 高清不卡在线观看| 不卡一区二区在线| 成人av午夜电影| a4yy欧美一区二区三区| av电影在线观看一区| 99久久国产综合精品女不卡 | 一区二区视频在线| 一区二区在线观看免费视频播放| 亚洲天堂久久久久久久| 综合在线观看色| 一区二区三区在线看| 一区二区三区欧美在线观看| 一区二区激情视频| 亚洲福利一区二区三区| 日本不卡视频一二三区| 琪琪一区二区三区| 精一区二区三区| 成人网男人的天堂| 色先锋资源久久综合| 欧美日韩dvd在线观看| 7777精品伊人久久久大香线蕉| 欧美丰满少妇xxxxx高潮对白| 日韩一区二区电影网| 欧美国产综合一区二区| 亚洲人吸女人奶水| 国产一区二区剧情av在线| 国产一区二区三区四| 成人ar影院免费观看视频| 色av成人天堂桃色av| 91精品免费观看| 久久久久久97三级| 一区二区三区中文字幕在线观看| 天堂蜜桃91精品| 国产激情一区二区三区| eeuss鲁片一区二区三区在线观看| 色婷婷激情综合| 精品久久一区二区三区| 亚洲美女免费在线| 蜜臀va亚洲va欧美va天堂| 国产不卡视频在线观看| 欧美色欧美亚洲另类二区| 精品欧美乱码久久久久久1区2区| 亚洲欧洲性图库| 欧美aaaaaa午夜精品| 99这里只有精品| 欧美一二三在线| 国产精品久久久久久久久免费相片| 亚洲成av人片一区二区三区 | 99久久伊人网影院| 日韩欧美中文一区|