- 
		
			- 
May 1, 2023 at 11:52 pmNirvan Gajadharsingh SubscriberHello, 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 Sun Ansys EmployeeYour 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 Gajadharsingh Subscriberthanks for clarifying. 
 
- 
- The topic ‘using getdata to grab mode profiles’ is closed to new replies.
- 
                        
                        4167
- 
                        
                        1487
- 
                        
                        1363
- 
                        
                        1194
- 
                        
                        1021
© 2025 Copyright ANSYS, Inc. All rights reserved.

 You are navigating away from the AIS Discovery experience
You are navigating away from the AIS Discovery experience 
               
          