OptiFDTD应用:光栅衍射的远场分布
光栅布局在大多数情况下是周期性结构。OptiFDTD中有两种实现周期性布局的方法:PBG编辑器和VB脚本。本课将重点介绍以下功能: "$D'gSoYe •使用VB脚本生成光栅(或周期性)布局。 ^qi+Y)dU| •光栅布局模拟和后处理分析 }Q@~_3,UJ 布局layout #eX<=H] 我们将模拟如图1所示的二维光栅布局。 \98N8p;,I 图1.二维光栅布局 NCY2^ i+pQ 7wx 用VB脚本定义一个2D光栅布局 9gglyoZ% ;)wk^W 步骤: :H&G}T(# 1 通过在文件菜单中选择“New”,启动一个新项目。 pw5{=bD 2 在“Wafer Properties”对话框中设置以下参数 74N3wi5B Wafer Dimensions: {jH'W)nR Length (mm): 8.5 wOCAGEg Width (mm): 3.0 JZ~wacDd ||.Hv[
]V* 2D wafer properties: 13w(Tf Wafer refractive index: Air 9_,f)2)~W 3 点击 Profiles 与 Materials. 8ICV"8( 8ZqLGa] 在“Materials”中加入以下材料: hvQXYo>TZx Name: N=1.5 pPag@L Refractive index (Re:): 1.5 cIG7Q"4 vC`SD] Name: N=3.14 U*E)y7MY Refractive index (Re:): 3.14 HZ2W`wo `'sD (e 4.在“Profile”中定义以下轮廓: R dwt4A+ Name: ChannelPro_n=3.14 W3d+t?28 2D profile definition, Material: n=3.14 J=gFiBw Hk@Gkx_ Name: ChannelPro_n=1.5 5%e+@X;j 2D profile definition, Material: n=1.5 u%+k\/Scp. hV0fkQ.| 6.画出以下波导结构: S*|/txE'~Y a. Linear waveguide 1 f,Dic%$q Label: linear1 Qubu;[0+a Start Horizontal offset: 0.0 *o4a<.hd2 Start vertical offset: -0.75 X!/Sk1 End Horizontal offset: 8.5 ^V#,iO9.- End vertical offset: -0.75 ;H.V-~:P) Channel Thickness Tapering: Use Default uf9&o# Width: 1.5 jVQ89vf
~ Depth: 0.0 A;RV~!xx Profile: ChannelPro_n=1.5 Q= fl!>P 1ONkmVtL b. Linear waveguide 2 \#t)B
J2 Label: linear2 t4G$#~ Start Horizontal offset: 0.5 =gM@[2 Start vertical offset: 0.05 Q
N#bd~ End Horizontal offset: 1.0 uW[[8+t| End vertical offset: 0.05 H(K
PU1lDw Channel Thickness Tapering: Use Default Y.]$T8 Width: 0.1 uHSnZ"# Depth: 0.0 ]4en|Aq Profile: ChannelPro_n=3.14 _3yG<'f[Y pC>h"Hy 7.加入水平平面波: 9tPRQM7 Continuous Wave Wavelength: 0.63 General: n*=#jL Input field Transverse: Rectangular SnmUh~`L~ X Position: 0.5 Lm2)3;ei Direction: Negative Direction @:9Gs!! Label: InputPlane1 poxF`a6e+ 2D Transverse: 2icQ (H; Center Position: 4.5 yW=+6@A4 Half width: 5.0 * /n8T]s Titlitng Angle: 45 oIj=ba(n1 Effective Refractive Index: Local Amplitude: 1.0 V&s|I oTR 图2.波导结构(未设置周期) F9u?+y-xb =oq8SL?bJ* 8.单击“Layout Script”快捷工具栏或选择仿真菜单下的“Generate Layout Script…”。这一步将把布局对象转换为VB脚本代码。 Jq'8" 将Linear2代码段修改如下: aY>v Dim Linear2 bT^dtEr[ for m=1 to 8 \MOwp@|y Set Linear2 = WGMgr.CreateObj ( "WGLinear", "Linear2"+Cstr(m) ) I'BhN#GhX Linear2.SetPosition 0.5+(m-1)*1.0, 0.05, 1+(m-1)*1.0, 0.05 c
Rq2 re Linear2.SetAttr "WidthExpr", "0.1" /q]rA Linear2.SetAttr "Depth", "0" o'!=x$Ky Linear2.SetAttr "StartThickness", "0.000000" F#sm^% _2 Linear2.SetAttr "EndThickness", "0.000000" WQ.0} n}d Linear2.SetProfileName "ChannelPro_n=3.14" Z,.Hz\y1D Linear2.SetDefaultThicknessTaperMode True J{1H$[W~} w#|L8VAh 点击“Test Script”快捷工具栏运行修改后的VB脚本代码。生成光栅布局,布局如图3所示。 S=(O6+U 图3.光栅布局通过VB脚本生成 >5t%_/yeB S'jg#*$ 设置仿真参数 l4oyF|oJTH 1. 在Simulation菜单下选择“2D simulation parameters…”,将出现仿真参数对话框 "tzu.V- 2. 在仿真参数对话框中,设置以下参数: K
-U}sW TE simulation ixdsz\< Mesh Delta X: 0.015 'rcqy1-& Mesh Delta Z: 0.015 _fHml Time Step Size: Auto Run for 1000 Time steps r!mRUw'u 设置边界条件设置X和Z边为各向异性PML边界条件。 $v|W2k Number of Anisotropic PML layers: 15 6}"c4^k6 其它参数保持默认 t<!;shH,s 运行仿真 J?QS7#!% • 在仿真参数中点击Run按钮,启动仿真 i+*!"/De • 在分析仪中,可以观察到各场分量的时域响应 o$rjGa l • 仿真完成后,点击“Yes”,启动分析仪。 Lnr9*dm6q h Jb2y`,q 远场分析衍射波 CJ IuMsZ 1. 在OptiFDTD Analyzer中,在工具窗口中选择“Crosscut Viewer” /T w{JO#Q 2. 选择“Definition of the Cross Cut”为z方向 P!eo#b^S 3. 将位置移动到等于92的网格点,(位置:-0.12)观察当前位置的近场 BzzC| 4. 在Crosscut Viewer的工具菜单中选择“Far Field”,出现远场转换对话框。(图4) g4IF~\QRVi 图4.远场计算对话框 4l$OO;B bn(N8MFCV 5. 在远场对话框,设置以下参数: p)y5[HX Wavelength: 0.63 cgg6E
O( Refractive index: 1.5+0i -*C
WF|<G Angle Initial: -90.0 ?d7,0Ex
P Angle Final: 90.0 1/.BP Number of Steps: 721 )^>LnQ_u Distance: 100, 000*wavelength ".?4`@7F\ Intensity (bsx|8[ O=B=0 6. 点击“计算”按钮开始计算,并将结果保存为 Farfield.ffp。 -'! J?~ 7. 启动“Opti 2D Viewer”并加载Farfield.ffp。远场如图5所示。 IPQRdBQ 图5.“Opti 2D Viewer”中的远场模式
|