-
-
May 1, 2023 at 11:52 pmNirvan GajadharsinghSubscriber
Hello,
solving for the FDE modes in my waveguide gives fields in Ex, Ey, Ez, Hx, Hy and Hz. The Ey field is shown in the built-in viewer as:
when I use the command :
Ey_mode1 = pinch(getdata("mode1","Ey"))
I get an array with all elements assigned with a value of 0. The same thing happens for Hy.Â
This does not happen with Ex_mode1,Hx_mode1,Ez_mode1 and Hz_mode1. Both Ey and Hy have fields which are shown in the built in viewer, yet when this data is exported to array , all the elements of the array gets stored as 0.
Can someone please explain why this is happening and how I can get the data associated with the Ey and Hy modes?Thanks
-
May 2, 2023 at 8:43 pmGuilin SunAnsys Employee
Your script is correct. Make sure you visualize the same Ey.
You can also use
E=getresult("mode1","E");
to get the vectorial fields, and then extract Ey from the dataset;
Ey=E.Ey
-
May 3, 2023 at 2:03 pmNirvan GajadharsinghSubscriber
thanks for clarifying.
-
- The topic ‘using getdata to grab mode profiles’ is closed to new replies.
- Difference between answers in version 2024 and 2017 lumerical mode solution
- Errors Running Ring Modulator Example on Cluster
- INTERCONNECT – No results unless rerun simulation until it gives any
- Import material .txt file with script
- Trapezoidal ring
- Help for qINTERCONNECT
- Absorption cross-section of AuNR excited by prism-based TIR
- Issues with getting result from interconnent analysis script
- How to measure transmission coefficients on a given plane .
- Topology Optimization Error
-
1421
-
599
-
591
-
565
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.