-
-
October 31, 2021 at 1:35 am
mwhitby
SubscriberI did FDE analysis for my simulation. Then I calculated the modes and got a data table inside the Eigensolver Analysis Tab called Mode List. From this data I would like to extract the loss and the TE polarization fraction. Ideally I would like to be able to extract these values and assign them to variable names, however it would also work if I can export the full data table to a .csv file. Is there any way to do this?
October 31, 2021 at 1:37 ammwhitby
SubscriberI need to do this in script.
October 31, 2021 at 1:37 ammwhitby
SubscriberI need to do this in script.
October 31, 2021 at 1:37 ammwhitby
SubscriberI need to do this in script.
October 31, 2021 at 1:37 ammwhitby
SubscriberI need to do this in script.
October 31, 2021 at 1:37 ammwhitby
SubscriberI need to do this in script.
November 1, 2021 at 6:34 pmGuilin Sun
Ansys EmployeeMay I know why did you write repeatedly ?
you can first check what quantities can be output:
?getdata("mode1");
?getresult("mode1");
then you can script to get them:
eg
E=getresult("mode1","E");
loss=getresult("mode1","loss");
please try.
November 1, 2021 at 11:33 pmmwhitby
SubscriberMy apologies for the repeated comments. I only meant to add it once but there must've been some sort of system error.
Thank you for your help! I am having some slight issues while trying this.
Firstly, the loss = getresult("mode1","loss); code outputs loss = 509627 whereas in the table for mode 1 loss is listed as 5096.3. Is this a scale problem? Is there a way to fix this?
Secondly, the E = getresult("mode1","E"); code doesn't give me the TE polarization fraction. It says that E = E vs x, y ,z ,lambda/f. How can I get this to give the TE polarization fraction?
Thank you for your help!
November 1, 2021 at 11:38 pmmwhitby
SubscriberTo try to fix the code for TE polarization fraction I used TE_polarization_fraction = getresult("mode1","TE polarization fraction"); . This gave me 0.10235 whereas in the table it was listed as 10. Again the scale seems to be off. Is there a way to fix this? Thank you!
November 2, 2021 at 12:09 amGuilin Sun
Ansys EmployeeThey are the same Thing: On the list it is the percentage whereas in the script it is actual value: 0.10235 is 10 percent .
For the loss, the list shows dB/cm, whereas in script it is dB/m.
Please note that the script unit is mks system.
https://en.wikipedia.org/wiki/MKS_system_of_units
November 2, 2021 at 12:21 ammwhitby
SubscriberThank you very much for all of your help! I greatly appreciate it.
Viewing 10 reply threads- The topic ‘How to extract values from Mode List data in Eigensolver Analysis’ is closed to new replies.
Ansys Innovation SpaceTrending discussions- Difference between answers in version 2024 and 2017 lumerical mode solution
- Import material .txt file with script
- Absorption cross-section of AuNR excited by prism-based TIR
- How to measure transmission coefficients on a given plane .
- TE Polarization Fraction + Waveguide TE/TM Fraction
- Edge Coupler EME Example Issue
- 2D inverse design grating coupler
- Lumerical Python API Topology Optimization Error 2025 R1
- FDE : Simulation waveguides with electrodes
- Loss of lithium niobate phase modulator
Top Contributors-
2537
-
933
-
787
-
599
-
591
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-
We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.