We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
Photonics – Chinese

Photonics – Chinese

Topics related to Lumerical and more, in Chinese language.

FDTD多层结构的快速建模

    • 405700210050
      Subscriber

      老师您好,我想建一个DBR结构,但是一层一层地添加材料层很耗费时间,请问有什么办法(例如建个组或者利用脚本)可以快速的加减DBR对数,并且能够修改每对DBR中每层材料的厚度?

    • Guilin Sun
      Ansys Employee

      最简便的方法是建立结构组,用脚本添加每一层,每层的厚度和材料都可以设置为变量。我这里有个例子:

      脚本 

      selectall;

      delete;

      #Substrate

      addrect;

      set("name","SiO2");

      set("y min",0);

      set("y max",d_SiO2);

      set("material",SiO2);

      addrect;

      set("name","Si");

      set("y min",d_SiO2);

      set("y max",0+d_SiO2+d_Si);

      set("material",Si);

      addrect;

      set("name","SiO2_2");

      set("y min",0+d_SiO2+d_Si);

      set("y max",0+d_SiO2+d_Si+d_SiO2_2);

      set("material",SiO2);

      selectall;

      set("x",0);

      set("x span",xSpan);

      set("z",0);

      set("z span",1e-6);

       

      注意,我是在分析组设置的,所以光源监视器都可以。结构组只能设置结构。上面的示例是在

       

    • Guilin Sun
      Ansys Employee

      你可以用Copy, Loop 在脚本中,跟独立的脚本一样,以减少每次加rect的工作量。建议参考一下结构组。

Viewing 2 reply threads
  • The topic ‘FDTD多层结构的快速建模’ is closed to new replies.