-
-
June 22, 2022 at 11:00 am
Catherine.antipuesto
SubscriberHi! I am new to Lumerical and I would just like to ask how to obtain the wavelength vs phase graph. Thank you! :)
-
June 22, 2022 at 10:31 pm
Guilin Sun
Ansys EmployeeThere are 2 steps using script to get the phase:
1: get the field components. As you know, the phase is associated with Ex,Ey, Ez (or H components). So you can use
E=getresult("monitor","E");
Ex=E.Ex;
Ey=E.Ey;
Ez=E.Ez;
similarly you can get x,y,z and f.
2: get the phase. for example for Ex, you can write
xphase=angle(Ex);
which will be a function of xyz and f. -
June 22, 2022 at 10:42 pm
Guilin Sun
Ansys Employeeadditional information:
1: you can use Ex=getdata("monitor","EX") if you know you want Ex
2: you can use pinch to remove singular dimension: https://optics.ansys.com/hc/en-us/articles/360034405674-pinch-Script-command -
June 25, 2022 at 7:37 am
Catherine.antipuesto
SubscriberThank you for this! How can I plot this? Thank you!
-
June 27, 2022 at 4:07 pm
Guilin Sun
Ansys Employeeplot is only for 1D data. eg, plot(x,y,”x”,”y”,”y(x)”.
image is for 2D data.
please search plot/image in Lumerical website https://optics.ansys.com/hc/en-us/articles/360034410474-plot-Script-command
depending on the dimension of phase, please choose proper script to plot it.
-
June 28, 2022 at 10:43 am
Catherine.antipuesto
SubscriberHello! I tried plotting it with the script:
E=getresult("through","E");
Ex=pinch(E.Ex);
Ey=pinch(E.Ey);
Ez=pinch(E.Ez);
xphase=angle(Ex);
f = getdata("through","f");
plot(c/f,xphase);
However, it says:
Error: line 7: y matrix must be same length as x matrixHow do I fix this?
Why is my E-field matrix [69, 500]? What does this mean?
Thank you so much!
-
June 28, 2022 at 8:02 pm
Guilin Sun
Ansys EmployeeThis question has been replied in another post.
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- “Import optical generation” or “delta generation rate”?
- Why am I getting “process exited without calling finalize”, and how do I fix it?
- Error: addfdtd is not a valid function or a variable name
- Error on Lumerical device
- Using a license file on a new license server
- Ansys Insight: Transmission results greater than one
- Ansys Insight: Diverging Simulations
- Ansys Insight: About override mesh in FDTD: its use and settings
- Is there a Lumerical script command to output the Simulation and Memory requirements?
- Ansys Insight: Convergence issues in CHARGE
-
3744
-
2573
-
1803
-
1236
-
594
© 2023 Copyright ANSYS, Inc. All rights reserved.