![環(huán)形光波導(dǎo)耦合器件程序_第1頁](http://file4.renrendoc.com/view/838ac17a12ed9f640d6f3b69dda90062/838ac17a12ed9f640d6f3b69dda900621.gif)
![環(huán)形光波導(dǎo)耦合器件程序_第2頁](http://file4.renrendoc.com/view/838ac17a12ed9f640d6f3b69dda90062/838ac17a12ed9f640d6f3b69dda900622.gif)
![環(huán)形光波導(dǎo)耦合器件程序_第3頁](http://file4.renrendoc.com/view/838ac17a12ed9f640d6f3b69dda90062/838ac17a12ed9f640d6f3b69dda900623.gif)
![環(huán)形光波導(dǎo)耦合器件程序_第4頁](http://file4.renrendoc.com/view/838ac17a12ed9f640d6f3b69dda90062/838ac17a12ed9f640d6f3b69dda900624.gif)
![環(huán)形光波導(dǎo)耦合器件程序_第5頁](http://file4.renrendoc.com/view/838ac17a12ed9f640d6f3b69dda90062/838ac17a12ed9f640d6f3b69dda900625.gif)
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
10度:%Thisprogramcalculatethewaveguidebyaphotoniccrystal.%Fortwodimensioncase.%OnlyforTMcase(Ez,Hx,Hy),inthisversion試驗版本.clear;%tic%Initialparametersandotherthings.W=0.36;%Normalizedfrequency就是能帶圖中的縱坐標(biāo),單位為(a/lamda)%Thefollowingparametersarecontrolparameters.WaveGuide=1;%IfthisprogramisforWaveGuide?Ifso,pleasespecify1.IsMovie=0;%Ifyouwanttoplaymovie,pleaseuse1.IsFigure=1;%Ifitwillplotthefigures?Ifso,pleasespecify1.WantToSeeEp=1;%DoyouwanttoseethedistrubutionofEp(TE極化,S極化)?Ifso,pleasespecify1.%EndofdefiningcontrolparametersMLatx=11;%HowmanyLatticecellinxdirection#格MLaty=11;%HowmanyLatticecellinydirection.NMlat=21;%ThegirdnumberineachLatticeCell.每個柵格中包含的fdtd網(wǎng)格個數(shù)%SHOULDBEODDINTEGER!!!!奇數(shù)整數(shù)個ifmod(NMlat,2)==0NMlat=NMlat+1;end%Forceittobeaoddinteger!NTx=MLatx*NMlat+1;%ItisthenumberoftheGridalongxaxis總的fdtd網(wǎng)格坐標(biāo)點(所以要加1)NTy=MLaty*NMlat+1;%ItisthenumberoftheGridalongyaxis.ifWaveGuide==1Nrow=5;%TherownumberofcoloumnsbetweenthePMLboundaryandthewaveguide.(此處定義,現(xiàn)在還不知所措)endNPML=12;%HowmanyPMLlayerswillbeusedinourcomputation.PML的層數(shù)NTimeSteps=5000;%TotalnumberofTimeStepsMeach=20;%DefinetheintervalforplotfiguresifIsFigure==1.%Thisalsoworksforsavingintervals.每隔20個時間步顯示一次。Zmax=0.8;%Themaximumvalueforzaxiswhenplottingfigures.Colormax=2.8;%Themaximumvalueforcolormapwhenplottingfigures.%Someconstantsmu0=4*pi*1.0e-7;%EpsilonZero,ifusingGaussUnit,itequalsto1.e0=8.85*1e-12;%MuZero,ifusingGaussUnit,itequalsto1.c=1/sqrt(mu0*e0);%Thelightspeed.factor=mu0/e0;%Thefactorbetweenconductivityandpermeability.%Permeability=Conductivity*factor,inPML.PML中的匹配條件a=1;%e-6; %Thelatticeconstant.柵格常數(shù)。W=W*(2*pi*c/a);%frequencyDx=a/NMlat;%Deltax.dx=1/(一個柵格中的網(wǎng)格數(shù))Dy=Dx;%Deltay.Dt=1/sqrt(1/(Dx*Dx)+1/(Dy*Dy))/c;%Timeinterval%tic%Inthefollowingpartmwedefinethedielectric%constants:,定義FDTD中平面波導(dǎo)與空氣的介電常數(shù)Ep=ones(NTx-1,NTy-1)*e0;%FDTD總的網(wǎng)格中的介質(zhì)常數(shù),真空。Ep_cell=ones(NMlat,NMlat)*e0;%每個柵格中的fdtd介電常數(shù),真空。x=-(NMlat-1)/2*Dx:Dx:(NMlat-1)/2*Dx;%先對柵格操作,然后進(jìn)行repmat,復(fù)制并平鋪陣列。[X,Y]=meshgrid(x);%把x方向上的向量拓展為X,Y兩個矩陣。X=X';Y=Y';flag=find(sqrt(X.A2+Y.A2)<R);%Ep_cell(flag)=e0*ea;Ep=repmat(Ep_cell,MLatx,MLaty);%拓展到真?zhèn)€空間了。angle=pi/18;%夾角,可修改;ifWaveGuide==1eb=1;%ThedielectricconstantinthewaveguideEp((MLatx-Nrow-6)*NMlat+1:(MLatx-Nrow+5)*NMlat,(Nrow-5)*NMlat+1:(Nrow+6)*NMlat)=e0*eb;Ep(1:(MLatx-Nrow-1)*NMlat,Nrow*NMlat+1:(Nrow+1)*NMlat)=e0*ea;length=round((NMlat+1)/2*cot(angle));j=(MLaty*NMlat+1)/2;fori=1:cot(angle):(MLatx*NMlat+1)/2+length+(NMlat+1)/2k=round(i);left=(MLaty*NMlat+1)/2-(NMlat+1)/2-length+i-1;%常數(shù)可修改right=left+length+55;%常數(shù)可修改if(right>MLatx*NMlat)right=MLatx*NMlat;endEp(left:right,j)=e0*ea;j=j-1;endj=(MLaty*NMlat+1)/2;fori=1:cot(angle):(MLatx*NMlat+1)/2+length+(NMlat+1)/2k=round(i);left=(MLaty*NMlat+1)/2-(NMlat+1)/2-length+i-1;%常數(shù)可修改right=left+length+55;%常數(shù)可修改if(right>MLatx*NMlat)right=MLatx*NMlat;endEp(left:right,j)=e0*ea;j=j+1;endend%tocifWantToSeeEp==1x=0:Dx:(NMlat*MLatx-1)*Dx;x=x-(NMlat*MLatx-1)*Dx/2;y=0:Dy:(NMlat*MLaty-1)*Dy;y=y-(NMlat*MLaty-1)*Dy/2;[X,Y]=meshgrid(x,y);X=X';Y=Y';surf(X,Y,Ep/e0);shadinginterp;view(0,90);axis([min(x),max(x),min(y),max(y)])axisoff;disp('Pressanykeytocontinue...');pauseend%EndofdefiningtheEp.15度:%Thisprogramcalculatethewaveguidebyaphotoniccrystal.%Fortwodimensioncase.%OnlyforTMcase(Ez,Hx,Hy),inthisversion試驗版本.clear;%tic%Initialparametersandotherthings.W=0.36;%Normalizedfrequency就是能帶圖中的縱坐標(biāo),單位為(a/lamda)%Thefollowingparametersarecontrolparameters.WaveGuide=1;%IfthisprogramisforWaveGuide?Ifso,pleasespecify1.IsMovie=0;%Ifyouwanttoplaymovie,pleaseuse1.IsFigure=1;%Ifitwillplotthefigures?Ifso,pleasespecify1.WantToSeeEp=1;%DoyouwanttoseethedistrubutionofEp(TE極化,S極化)?Ifso,pleasespecify1.%EndofdefiningcontrolparametersMLatx=11;%HowmanyLatticecellinxdirection#格MLaty=11;%HowmanyLatticecellinydirection.NMlat=21;%ThegirdnumberineachLatticeCell.每個柵格中包含的fdtd網(wǎng)格個數(shù)%SHOULDBEODDINTEGER!!!!奇數(shù)整數(shù)個ifmod(NMlat,2)==0NMlat=NMlat+1;end%Forceittobeaoddinteger!NTx=MLatx*NMlat+1;%ItisthenumberoftheGridalongxaxis總的fdtd網(wǎng)格坐標(biāo)點(所以要加1)NTy=MLaty*NMlat+1;%ItisthenumberoftheGridalongyaxis.ifWaveGuide==1Nrow=5;%TherownumberofcoloumnsbetweenthePMLboundaryandthewaveguide.(此處定義,現(xiàn)在還不知所措)endNPML=12;%HowmanyPMLlayerswillbeusedinourcomputation.PML的層數(shù)NTimeSteps=5000;%TotalnumberofTimeStepsMeach=20;%DefinetheintervalforplotfiguresifIsFigure==1.%Thisalsoworksforsavingintervals.每隔20個時間步顯示一次。Zmax=0.8;%Themaximumvalueforzaxiswhenplottingfigures.Colormax=2.8;%Themaximumvalueforcolormapwhenplottingfigures.%Someconstantsmu0=4*pi*1.0e-7;%EpsilonZero,ifusingGaussUnit,itequalsto1.e0=8.85*1e-12;%MuZero,ifusingGaussUnit,itequalsto1.c=1/sqrt(mu0*e0);%Thelightspeed.factor=mu0/e0;%Thefactorbetweenconductivityandpermeability.%Permeability=Conductivity*factor,inPML.PML中的匹配條件a=1;%e-6; %Thelatticeconstant.柵格常數(shù)。W=W*(2*pi*c/a);%frequencyDx=a/NMlat;%Deltax.dx=1/(一個柵格中的網(wǎng)格數(shù))Dy=Dx;%Deltay.Dt=1/sqrt(1/(Dx*Dx)+1/(Dy*Dy))/c;%Timeinterval%tic%Inthefollowingpartmwedefinethedielectric%constants:,定義FDTD中平面波導(dǎo)與空氣的介電常數(shù)Ep=ones(NTx-1,NTy-1)*e0;%FDTD總的網(wǎng)格中的介質(zhì)常數(shù),真空。Ep_cell=ones(NMlat,NMlat)*e0;%每個柵格中的fdtd介電常數(shù),真空。x=-(NMlat-1)/2*Dx:Dx:(NMlat-1)/2*Dx;%先對柵格操作,然后進(jìn)行repmat,復(fù)制并平鋪陣列。[X,Y]=meshgrid(x);%把x方向上的向量拓展為X,Y兩個矩陣。X=X';Y=Y';flag=find(sqrt(X.A2+Y.A2)<R);%Ep_cell(flag)=e0*ea;Ep=repmat(Ep_cell,MLatx,MLaty);%拓展到真?zhèn)€空間了。angle=pi/12;%夾角,可修改;ifWaveGuide==1eb=1;%ThedielectricconstantinthewaveguideEp((MLatx-Nrow-6)*NMlat+1:(MLatx-Nrow+5)*NMlat,(Nrow-5)*NMlat+1:(Nrow+6)*NMlat)=e0*eb;Ep(1:(MLatx-Nrow-1)*NMlat,Nrow*NMlat+1:(Nrow+1)*NMlat)=e0*ea;length=round((NMlat+1)/2*cot(angle));j=(MLaty*NMlat+1)/2;fori=1:cot(angle):(MLatx*NMlat+1)/2+length+(NMlat+1)/2k=round(i);left=(MLaty*NMlat+1)/2-(NMlat+1)/2-length+i-1;%常數(shù)可修改right=left+length+40;%常數(shù)可修改if(right>MLatx*NMlat)right=MLatx*NMlat;endEp(left:right,j)=e0*ea;j=j-1;endj=(MLaty*NMlat+1)/2;fori=1:cot(angle):(MLatx*NMlat+1)/2+length+(NMlat+1)/2k=round(i);left=(MLaty*NMlat+1)/2-(NMlat+1)/2-length+i-1;%常數(shù)可修改right=left+length+40;%常數(shù)可修改if(right>MLatx*NMlat)right=MLatx*NMlat;endEp(left:right,j)=e0*ea;j=j+1;endend%tocifWantToSeeEp==1x=0:Dx:(NMlat*MLatx-1)*Dx;x=x-(NMlat*MLatx-1)*Dx/2;y=0:Dy:(NMlat*MLaty-1)*Dy;y=y-(NMlat*MLaty-1)*Dy/2;[X,Y]=meshgrid(x,y);X=X';Y=Y';surf(X,Y,Ep/e0);shadinginterp;view(0,90);axis([min(x),max(x),min(y),max(y)])axisoff;disp('Pressanykeytocontinue...');pauseend%EndofdefiningtheEp.20度:%Thisprogramcalculatethewaveguidebyaphotoniccrystal.%Fortwodimensioncase.%OnlyforTMcase(Ez,Hx,Hy),inthisversion試驗版本.clear;%tic%Initialparametersandotherthings.W=0.36;%Normalizedfrequency就是能帶圖中的縱坐標(biāo),單位為(a/lamda)%Thefollowingparametersarecontrolparameters.WaveGuide=1;%IfthisprogramisforWaveGuide?Ifso,pleasespecify1.IsMovie=0;%Ifyouwanttoplaymovie,pleaseuse1.IsFigure=1;%Ifitwillplotthefigures?Ifso,pleasespecify1.WantToSeeEp=1;%DoyouwanttoseethedistrubutionofEp(TE極化,S極化)?Ifso,pleasespecify1.%EndofdefiningcontrolparametersMLatx=11;%HowmanyLatticecellinxdirection#格MLaty=11;%HowmanyLatticecellinydirection.NMlat=21;%ThegirdnumberineachLatticeCell.每個柵格中包含的fdtd網(wǎng)格個數(shù)%SHOULDBEODDINTEGER!!!!奇數(shù)整數(shù)個ifmod(NMlat,2)==0NMlat=NMlat+1;end%Forceittobeaoddinteger!NTx=MLatx*NMlat+1;%ItisthenumberoftheGridalongxaxis總的fdtd網(wǎng)格坐標(biāo)點(所以要加1)NTy=MLaty*NMlat+1;%ItisthenumberoftheGridalongyaxis.ifWaveGuide==1Nrow=5;%TherownumberofcoloumnsbetweenthePMLboundaryandthewaveguide.(此處定義,現(xiàn)在還不知所措)endNPML=12;%HowmanyPMLlayerswillbeusedinourcomputation.PML的層數(shù)NTimeSteps=5000;%TotalnumberofTimeStepsMeach=20;%DefinetheintervalforplotfiguresifIsFigure==1.%Thisalsoworksforsavingintervals.每隔20個時間步顯示一次。Zmax=0.8;%Themaximumvalueforzaxiswhenplottingfigures.Colormax=2.8;%Themaximumvalueforcolormapwhenplottingfigures.%Someconstantsmu0=4*pi*1.0e-7;%EpsilonZero,ifusingGaussUnit,itequalsto1.e0=8.85*1e-12;%MuZero,ifusingGaussUnit,itequalsto1.c=1/sqrt(mu0*e0);%Thelightspeed.factor=mu0/e0;%Thefactorbetweenconductivityandpermeability.%Permeability=Conductivity*factor,inPML.PML中的匹配條件a=1;%e-6; %Thelatticeconstant.柵格常數(shù)。W=W*(2*pi*c/a);%frequencyDx=a/NMlat;%Deltax.dx=1/(一個柵格中的網(wǎng)格數(shù))Dy=Dx;%Deltay.Dt=1/sqrt(1/(Dx*Dx)+1/(Dy*Dy))/c;%Timeinterval%tic%Inthefollowingpartmwedefinethedielectric%constants:,定義FDTD中平面波導(dǎo)與空氣的介電常數(shù)Ep=ones(NTx-1,NTy-1)*e0;%FDTD總的網(wǎng)格中的介質(zhì)常數(shù),真空。Ep_cell=ones(NMlat,NMlat)*e0;%每個柵格中的fdtd介電常數(shù),真空。x=-(NMlat-1)/2*Dx:Dx:(NMlat-1)/2*Dx;%先對柵格操作,然后進(jìn)行repmat,復(fù)制并平鋪陣列。[X,Y]=meshgrid(x);%把x方向上的向量拓展為X,Y兩個矩陣。X=X';Y=Y';flag=find(sqrt(X.A2+Y.A2)<R);%Ep_cell(flag)=e0*ea;Ep=repmat(Ep_cell,MLatx,MLaty);%拓展到真?zhèn)€空間了。angle=pi/9;%夾角,可修改;ifWaveGuide==1eb=1;%ThedielectricconstantinthewaveguideEp((MLatx-Nrow-6)*NMlat+1:(MLatx-Nrow+5)*NMlat,(Nrow-5)*NMlat+1:(Nrow+6)*NMlat)=e0*eb;Ep(1:(MLatx-Nrow-1)*NMlat,Nrow*NMlat+1:(Nrow+1)*NMlat)=e0*ea;length=round((NMlat+1)/2*cot(angle));j=(MLaty*NMlat+1)/2;fori=1:cot(angle):(MLatx*NMlat+1)/2+length+(NMlat+1)/2k=round(i);left=(MLaty*NMlat+1)/2-(NMlat+1)/2-length+i-1;%常數(shù)可修改right=left+length+30;%常數(shù)可修改if(right>MLatx*NMlat)right=MLatx*NMlat;endEp(left:right,j)=e0*ea;j=j-1;endj=(MLaty*NMlat+1)/2;fori=1:cot(angle):(MLatx*NMlat+1)/2+length+(NMlat+1)/2k=round(i);left=(MLaty*NMlat+1)/2-(NMlat+1)/2-length+i-1;%常數(shù)可修改right=left+length+30;%常數(shù)可修改if(right>MLatx*NMlat)right=MLatx*NMlat;endEp(left:right,j)=e0*ea;j=j+1;endend%tocifWantToSeeEp==1x=0:Dx:(NMlat*MLatx-1)*Dx;x=x-(NMlat*MLatx-1)*Dx/2;y=0:Dy:(NMlat*MLaty-1)*Dy;y=y-(NMlat*MLaty-1)*Dy/2;[X,Y]=meshgrid(x,y);X=X';Y=Y';surf(X,Y,Ep/e0);shadinginterp;view(0,90);axis([min(x),max(x),min(y),max(y)])axisoff;disp('Pressanykeytocontinue...');pauseend%EndofdefiningtheEp.30度:%Thisprogramcalculatethewaveguidebyaphotoniccrystal.%Fortwodimensioncase.%OnlyforTMcase(Ez,Hx,Hy),inthisversion試驗版本.clear;%tic%Initialparametersandotherthings.W=0.36;%Normalizedfrequency就是能帶圖中的縱坐標(biāo),單位為(a/lamda)%Thefollowingparametersarecontrolparameters.WaveGuide=1;%IfthisprogramisforWaveGuide?Ifso,pleasespecify1.IsMovie=0;%Ifyouwanttoplaymovie,pleaseuse1.IsFigure=1;%Ifitwillplotthefigures?Ifso,pleasespecify1.WantToSeeEp=1;%DoyouwanttoseethedistrubutionofEp(TE極化,S極化)?Ifso,pleasespecify1.%EndofdefiningcontrolparametersMLatx=11;%HowmanyLatticecellinxdirection#格MLaty=11;%HowmanyLatticecellinydirection.NMlat=21;%ThegirdnumberineachLatticeCell.每個柵格中包含的fdtd網(wǎng)格個數(shù)%SHOULDBEODDINTEGER!!!!奇數(shù)整數(shù)個ifmod(NMlat,2)==0NMlat=NMlat+1;end%Forceittobeaoddinteger!NTx=MLatx*NMlat+1;%ItisthenumberoftheGridalongxaxis總的fdtd網(wǎng)格坐標(biāo)點(所以要加1)NTy=MLaty*NMlat+1;%ItisthenumberoftheGridalongyaxis.ifWaveGuide==1Nrow=5;%TherownumberofcoloumnsbetweenthePMLboundaryandthewaveguide.(此處定義,現(xiàn)在還不知所措)endNPML=12;%HowmanyPMLlayerswillbeusedinourcomputation.PML的層數(shù)NTimeSteps=5000;%TotalnumberofTimeStepsMeach=20;%DefinetheintervalforplotfiguresifIsFigure==1.%Thisalsoworksforsavingintervals.每隔20個時間步顯示一次。Zmax=0.8;%Themaximumvalueforzaxiswhenplottingfigures.Colormax=2.8;%Themaximumvalueforcolormapwhenplottingfigures.%Someconstantsmu0=4*pi*1.0e-7;%EpsilonZero,ifusingGaussUnit,itequalsto1.e0=8.85*1e-12;%MuZero,ifusingGaussUnit,itequalsto1.c=1/sqrt(mu0*e0);%Thelightspeed.factor=mu0/e0;%Thefactorbetweenconductivityandpermeability.%Permeability=Conductivity*factor,inPML.PML中的匹配條件a=1;%e-6; %Thelatticeconstant.柵格常數(shù)。W=W*(2*pi*c/a);%frequencyDx=a/NMlat;%Deltax.dx=1/(一個柵格中的網(wǎng)格數(shù))Dy=Dx;%Deltay.Dt=1/sqrt(1/(Dx*Dx)+1/(Dy*Dy))/c;%Timeinterval%tic%Inthefollowingpartmwedefinethedielectric%constants:,定義FDTD中平面波導(dǎo)與空氣的介電常數(shù)Ep=ones(NTx-1,NTy-1)*e0;%FDTD總的網(wǎng)格中的介質(zhì)常數(shù),真空。Ep_cell=ones(NMlat,NMlat)*e0;%每個柵格中的fdtd介電常數(shù),真空。x=-(NMlat-1)/2*Dx:Dx:(NMlat-1)/2*Dx;%先對柵格操作,然后進(jìn)行repmat,復(fù)制并平鋪陣列。[X,Y]=meshgrid(x);%把x方向上的向量拓展為X,Y兩個矩陣。X=X';Y=Y';flag=find(sqrt(X.A2+Y.A2)<R);%Ep_cell(flag)=e0*ea;Ep=repmat(Ep_cell,MLatx,MLaty);%拓展到真?zhèn)€空間了。angle=pi/6;%夾角,可修改;ifWaveGuide==1eb=1;%ThedielectricconstantinthewaveguideEp((MLatx-Nrow-6)*NMlat+1:(MLatx-Nrow+5)*NMlat,(Nrow-5)*NMlat+1:(Nrow+6)*NMlat)=e0*eb;Ep(1:(MLatx-Nrow-1)*NMlat,Nrow*NMlat+1:(Nrow+1)*NMlat)=e0*ea;length=round((NMlat+1)/2*cot(angle));j=(MLaty*NMlat+1)/2;fori=1:cot(angle):(MLatx*NMlat+1)/2+length+(NMlat+1)/2k=round(i);left=(MLaty*NMlat+1)/2-(NMlat+1)/2-length+i-1;%常數(shù)可修改right=left+length+20;%常數(shù)可修改if(right>MLatx*NMlat)right=MLatx*NMlat;endEp(left:right,j)=e0*ea;j=j-1;endj=(MLaty*NMlat+1)/2;fori=1:cot(angle):(MLatx*NMlat+1)/2+length+(NMlat+1)/2k=round(i);left=(MLaty*NMlat+1)/2-(NMlat+1)/2-length+i-1;%常數(shù)可修改right=left+length+20;%常數(shù)可修改if(right>MLatx*NMlat)right=MLatx*NMlat;endEp(left:right,j)=e0*ea;j=j+1;endend%tocifWantToSeeEp==1x=0:Dx:(NMlat*MLatx-1)*Dx;x=x-(NMlat*MLatx-1)*Dx/2;y=0:Dy:(NMlat*MLaty-1)*Dy;y=y-(NMlat*MLaty-1)*Dy/2;[X,Y]=meshgrid(x,y);X=X';Y=Y';surf(X,Y,Ep/e0);shadinginterp;view(0,90);axis([min(x),max(x),min(y),max(y)])axisoff;disp('Pressanykeytocontinue...');pauseend%EndofdefiningtheEp.80度:%Thisprogramcalculatethewaveguidebyaphotoniccrystal.%Fortwodimensioncase.%OnlyforTMcase(Ez,Hx,Hy),inthisversion試驗版本.clear;%tic%Initialparametersandotherthings.W=0.36;%Normalizedfrequency就是能帶圖中的縱坐標(biāo),單位為(a/lamda)%Thefollowingparametersarecontrolparameters.WaveGuide=1;%IfthisprogramisforWaveGuide?Ifso,pleasespecify1.IsMovie=0;%Ifyouwanttoplaymovie,pleaseuse1.IsFigure=1;%Ifitwillplotthefigures?Ifso,pleasespecify1.WantToSeeEp=1;%DoyouwanttoseethedistrubutionofEp(TE極化,S極化)?Ifso,pleasespecify1.%EndofdefiningcontrolparametersMLatx=11;%HowmanyLatticecellinxdirection光子晶體柵格MLaty=11;%HowmanyLatticecellinydirection.NMlat=21;%ThegirdnumberineachLatticeCell.每個柵格中包含的fdtd網(wǎng)格個數(shù)%SHOULDBEODDINTEGER!!!!奇數(shù)整數(shù)個,目的就是為了將光子晶體的原點定位在網(wǎng)格中心ifmod(NMlat,2)==0NMlat=NMlat+1;end%Forceittobeaoddinteger!NTx=MLatx*NMlat+1;%ItisthenumberoftheGridalongxaxis總的fdtd網(wǎng)格坐標(biāo)點NTy=MLaty*NMlat+1;%ItisthenumberoftheGridalongyaxis.ifWaveGuide==1Nrow=5;%TherownumberofcoloumnsbetweenthePMLboundaryandthewaveguide.(此處定義,現(xiàn)在還不知所措)endNPML=12;%HowmanyPMLlayerswillbeusedinourcomputation.PML的層數(shù)NTimeSteps=4000;%TotalnumberofTimeStepsMeach=20;%DefinetheintervalforplotfiguresifIsFigure==1.%Thisalsoworksforsavingintervals.每隔20個時間步顯示一次。R=0.2;%Theradiusofdielectriccolumns,光子晶體的半徑,可調(diào)Zmax=0.6;%Themaximumvalueforzaxiswhenplottingfigures.Colormax=1.6;%Themaximumvalueforcolormapwhenplottingfigures.%Someconstantsmu0=4*pi*1.0e-7;%EpsilonZero,ifusingGauss
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025至2031年中國直滑式導(dǎo)電塑料電位器行業(yè)投資前景及策略咨詢研究報告
- 2025至2031年中國烘烤紙盒行業(yè)投資前景及策略咨詢研究報告
- 2025至2031年中國智能數(shù)字兆歐表行業(yè)投資前景及策略咨詢研究報告
- 2025年家用米糊豆?jié){機項目可行性研究報告
- 2025至2031年中國冷凍芹菜水餃行業(yè)投資前景及策略咨詢研究報告
- 2025年全自動腳輪旋鉚機項目可行性研究報告
- 2025年三頭插銷項目可行性研究報告
- 2025至2030年預(yù)處理飼料硫酸亞鐵項目投資價值分析報告
- 2025至2030年中國適形放射治療計劃系統(tǒng)數(shù)據(jù)監(jiān)測研究報告
- 2025至2030年中國蒸箱燃燒器數(shù)據(jù)監(jiān)測研究報告
- 2022年江蘇對口單招市場營銷試卷剖析
- 法律職業(yè)倫理(第二版)完整版教學(xué)課件全書電子講義(最新)
- ESD測試作業(yè)指導(dǎo)書-防靜電手環(huán)
- 高一(4)班分科后第一次班會課件ppt課件(PPT 29頁)
- 春季開學(xué)安全第一課PPT、中小學(xué)開學(xué)第一課教育培訓(xùn)主題班會PPT模板
- JJG30-2012通用卡尺檢定規(guī)程
- 部編版人教版二年級上冊語文教材分析
- APR版制作流程
- 《C++程序設(shè)計》完整教案
- 美國LM2500艦用燃?xì)廨啓C
- 《公共政策分析》課件.ppt
評論
0/150
提交評論