Photonics – Chinese

Photonics – Chinese

如何同时嵌套扫描折射率实部和虚部(n,k)?

    • zhuoshb3
      Subscriber
      你好,我想嵌套扫描一个材料的折射率实部从1到6,虚部从0到0.5,设置方法是直接改变材料index,如图
    • Guilin Sun
      Ansys Employee
      是的,Index那里只能用实数,而(n,k) 必须在材料库中设置。好在这是添加的材料,可以用脚本设置、修改,比如
      nr=2.2;ni=0.3;
      setmaterial("nk","Refractive index",nr);
      setmaterial("nk","Imaginary Refractive index",ni);
      setnamed("rectangle","material","nk"); 也就是需要重新设置结构的材料,否则材料变化可能传不过去。
      这里,材料库中的材料是先添加的,你也可以用脚本添加,addmaterial - Script command
      你可以把
      setmaterial("nk","Refractive index",nr);
      setmaterial("nk","Imaginary Refractive index",ni);
      setnamed("rectangle","material","nk");
      添到Model或者结构组中,变量是折射率实部和虚部,在Sweep Utility 里面扫描它们就可以了。

      测试时请先用3组数据就可以了,把所有脚本均测试成功后再考虑更多的数据。此外,也要考虑这些折射率能否在实验室实现。


    • zhuoshb3
      Subscriber
      问题已解决,非常感谢。
    • Guilin Sun
      Ansys Employee
      好的,谢谢告知!有问题请继续在本论坛里发帖.
    • lixiaobo
      Subscriber
      你可以把

      setmaterial("nk","Refractive index",nr);

      setmaterial("nk","Imaginary Refractive index",ni);

      setnamed("rectangle","material","nk");

      添到Model或者结构组中,变量是折射率实部和虚部,在Sweep Utility 里面扫描它们就可以了。

      请问如何把折射率添加到Model或者结构组中,如何进行折射率实部和虚部Sweep?
    • Guilin Sun
      Ansys Employee


      如此应该会扫描了吧?如那个英语帖子的回复,你要想一想这样做的实际结果:得到了很好的折射率,你能找到这种材料吗?即使是超材料,也有虚部而且色散一般比较大。请再考虑斟酌。
    • lixiaobo
      Subscriber
      May I ask why there is such a mistake here?
    • lixiaobo
      Subscriber
      Oh, I know, it was because I used sample 3D Model, thank you! But could you please tell me if SAMPLE 3D Model is used, can refractive index scan be carried out according to the method you said? How to do?
    • Guilin Sun
      Ansys Employee
      Then you will need to create a number of such Sample 3D materials, and then sweep the material name the object uses.
    • lixiaobo
      Subscriber
      Thank you´╝ü
Viewing 9 reply threads
  • You must be logged in to reply to this topic.