光子晶体透射谱

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

na=2.10;nb=1.46;n1=1;n2=1;

d=1064;

c3=0;c1=asin(n1*sin(c3)/na);c2=asin(na*sin(c1)/nb);c4=asin(nb*sin(c2)/n 2);

d1=1064;

a=d1/(4*na);b=d1/(4*nb);

Ba=2*pi*na*a*cos(c1)/d;

Bb=2*pi*nb*b*cos(c2)/d;

f=4*pi*1e-7;

e=1e-9/(36*pi);

m=sqrt(e/f);

za=m*cos(c1)*na;zb=m*cos(c2)*nb;z1=f*cos(c3)*n1;z2=f*cos(c4)*n2;

p1=cos(Bb);p2=-i*sin(Bb)/zb;p3=-i*zb*sin(Bb);p4=cos(Bb);

P=[p1 p2;p3 p4];

q1=cos(Ba);q2=-i*sin(Ba)/za;q3=-i*za*sin(Ba);q4=cos(Ba);

Q=[q1 q2;q3 q4];

O=Q*P;

for n=1:100;

O1=O^n;

O11=O1(1,1);O12=O1(1,2);O13=O1(2,1);O14=O1(2,2);

z1=sqrt(e/f)*n1*cos(c3);z2=sqrt(e/f)*n2*cos(c4);

t=2*z1/(z1*(O11+z2*O12)+O13+z2*O14);

t1=abs(t);

h1(1,n)=t1;

end

n=1:100;

plot(n,h1);

xlabel('周期'); ylabel('透射率');title('光子晶体透射率随周期变化'),grid on

na=2.10;nb=1.46;n1=1;n2=1;

d=1064;

for c5=0:0.5:90;

c3=c5*pi/180;

c1=asin(n1*sin(c3)/na);c2=asin(na*sin(c1)/nb);c4=asin(nb*sin(c2)/n2);

d1=1064;

a=d1/(4*na);b=d1/(4*nb);

Ba=2*pi*na*a*cos(c1)/d;

Bb=2*pi*nb*b*cos(c2)/d;

f=4*pi*1e-7;

e=1e-9/(36*pi);

m=sqrt(e/f);

za=m*cos(c1)*na;zb=m*cos(c2)*nb;

p1=cos(Bb);p2=-i*sin(Bb)/zb;p3=-i*zb*sin(Bb);p4=cos(Bb);

P=[p1 p2;p3 p4];

q1=cos(Ba);q2=-i*sin(Ba)/za;q3=-i*za*sin(Ba);q4=cos(Ba);

Q=[q1 q2;q3 q4];

O=Q*P;

O1=O^27;

O11=O1(1,1);O12=O1(1,2);O13=O1(2,1);O14=O1(2,2);

z1=sqrt(e/f)*n1*cos(c3);z2=sqrt(e/f)*n2*cos(c4);

t=2*z1/(z1*(O11+z2*O12)+O13+z2*O14);

t1=abs(t);

s=c5*2+1;

k(1,s)=t1;

end

c5=0:0.5:90;

plot(c5,k);

xlabel('入射角'); ylabel('透射率');title('光子晶体透射率随入射角变化');grid on

na=1.46;nb=2.10;n1=1;n2=1;

for d=400:1600;

c3=0;c1=asin(n1*sin(c3)/na);c2=asin(na*sin(c1)/nb);c4=asin(nb*sin(c2)/n2); d1=1064;

a=d1/(4*na);b=d1/(4*nb);

Ba=2*pi*na*a*cos(c1)/d;

Bb=2*pi*nb*b*cos(c2)/d;

f=4*pi*1e-7;

e=1e-9/(36*pi);

m=sqrt(e/f);

za=m*cos(c1)*na;zb=m*cos(c2)*nb;

p1=cos(Bb);p2=-i*sin(Bb)/zb;p3=-i*zb*sin(Bb);p4=cos(Bb);

P=[p1 p2;p3 p4];

q1=cos(Ba);q2=-i*sin(Ba)/za;q3=-i*za*sin(Ba);q4=cos(Ba);

Q=[q1 q2;q3 q4];

O=Q*P;O1=O^20;

O11=O1(1,1);O12=O1(1,2);O13=O1(2,1);O14=O1(2,2);

z1=sqrt(e/f)*n1*cos(c3);z2=sqrt(e/f)*n2*cos(c4);

t=2*z1/(z1*(O11+z2*O12)+O13+z2*O14);

r=(z1*(O11+z2*O12)-O13-z2*O14)/(z1*(O11+z2*O12)+O13+z2*O14);

t1=abs(t);

r1=abs(r);

s=d-399;

k(1,s)=t1

end

d=400:1600;

plot(d,k);

xlabel('波长'); ylabel('透射率');title('光子晶体透射率随波长变化'),grid on

相关文档
最新文档