Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Photonics – Chinese

Photonics – Chinese

Topics related to Lumerical and more, in Chinese language.

画电场E随着传播位置的变化关系图问题

    • leigh lee
      Subscriber

      您好,请问:

      对一个波导沿着传播方向z轴利用frequency domain power monitor记录了电场E值,visualize之后是这样的

      1.现在想把z值作为横坐标,也就是将图中的两个坐标轴对调,应该怎么做呢?

      2.如果想用script画出电场E随着传播方向z的变化关系,如下图,只不过横坐标为z轴,大概应该怎么写呢?或者有相关的案列可以参考吗?

       

    • leigh lee
      Subscriber

      也就是想将这个图中的左边变化到右边,提取的是波导中心的电场值或功率

    • ChrisLee
      Subscriber

      1、action里面z设置成plot x axis,x设置成plot y axis;

      2、简单示意

      E=getelectric("monitor");#提取电场值
      E2=pinch(E,4,2);#提取第二个波长
      E22=pinch(E2);#去掉电场的z轴维度
      x=getdata("monitor","x");#获取x y
      y=getdata("monitor","y");
      E23=E22(25,:);#提取x坐标中心的电场值,x坐标有49个点,中心为第25个
      plot(y,E23);#画如下图,横坐标是y

       

       

    • leigh lee
      Subscriber

      十分感谢

Viewing 3 reply threads
  • The topic ‘画电场E随着传播位置的变化关系图问题’ is closed to new replies.
[bingo_chatbox]