The Ansys Innovation Space website recently experienced a database corruption issue. While service has been restored there appears to have been some data loss from November 13. We are still investigating and apologize for any issues our users may have as a result.
Photonics – Chinese

Photonics – Chinese

Topics related to Lumerical and more, in Chinese language.

Ansys Insight: 几个简单实用的脚本Script命令:用于设置

    • Guilin Sun
      Ansys Employee

      此帖子最初在原KX论坛,转移到此论坛后,有些链接可能有问题,待以后有时间再行修正。

      在这个帖子里面 

      Ansys Insight: 几个简单实用的脚本Script命令:用于结果分析


      主要介绍了常用的分析脚本。本贴主要介绍常用的设置脚本,其实,主要的设置脚本主要有两个: 

      setnamed https://kb.lumerical.com/en/ref_scripts_setnamed.html

    • Guilin Sun
      Ansys Employee

      设置宽度就是设置span:

      setnamed(“z1”,“x span”,1e-6); 1um 的X方向宽度。

      如果刚添加了一个形体,则可以直接用Set:

      addrect;

      set("x“,0);

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

      就是将这个长方体的X设置在坐标原点,宽度1微米;

      或者

      set("x min",-0.5e-6);

      set("x max",0.5e-6);

      效果是一样的。

       

      如果不知道某个物件有什么参数可以设置,或者不知道参数的名字,可以用问号,以长方体为例:
      ?setnamed("rectangle")

      select("rectangle");

      ?set;

       

Viewing 1 reply thread
  • The topic ‘Ansys Insight: 几个简单实用的脚本Script命令:用于设置’ is closed to new replies.