Photonics – Chinese

Photonics – Chinese

Topics related to Lumerical and more, in Chinese language.

TE模式光无法用脚本设置,显示lumapi错误

    • 220231756
      Subscriber

      fdtd.addmode()
      fdtd.set('name', 'source')
      fdtd.set('direction', 'Forward')
      fdtd.set('injection axis', 'x-axis')
      fdtd.set('x', -2.7e-6)
      fdtd.set('y', 0)
      fdtd.set('z', 0)
      fdtd.set('y span', 1e-6)
      fdtd.set('z span', 0.22e-6)
      fdtd.set('wavelength start', 1.530e-6)
      fdtd.set('wavelength stop', 1.560e-6)
      fdtd.set('mode_selection', 'fundamental TE mode')
      源代码如上,最后一设置TE基模时报错,显示无法lumapi设置 "in set, the requested property 'mode_selection'  was not found"

      想请问老师怎么解决这个呢

       

       

       

    • Guilin Sun
      Ansys Employee

      mode selection 中间没有下划线。

      setnamed("source","mode selection","fundamental TM mode");

      以后不知道里面变量名,可以用问号,例如

      ?setnamed("source")

      可以知道里面所有的变量。

    • 220231756
      Subscriber

      谢谢老师,茅塞顿开!

Viewing 2 reply threads
  • You must be logged in to reply to this topic.