-
-
March 22, 2022 at 6:26 am
Mariah Ha
SubscriberHi,
I am trying to extract the data (matrix) of the electron and hole current densities (Jn and Jp) from the charge visualizer, as shown below. The "view data" option gives just a slice of the data. The "export to text" option also does not give all the magnitude matrix of Jn , as shown in the picture. I am looking for the whole matrix to perform some calculations, not a slice. I did not understand the meaning of x(7616,1,1) in the extracted text file. Can you please help me ?
March 22, 2022 at 7:23 pmGuilin Sun
Ansys EmployeeI guess you are using CHARGE, which uses finite element mesh. Therefore, the dataset is not like the rectilinear FDTD mesh.
You can get the result from CHARGE object:
Charge=getresult("CHARGE","charge");
Jp=Charge.Jp;
Then you will need to interpolate the Finite Element mesh into rectilinear result. Please refer this example:
interptri - Script command - Lumerical Support
interptet
Please follow the examples and write your own script.
If you have scripting questions, please write a separate post.
Viewing 1 reply thread- The topic ‘Data extracted from the visualizer window ?’ is closed to new replies.
Ansys Innovation SpaceTrending discussionsTop Contributors-
3597
-
1283
-
1117
-
1068
-
983
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.
-
The Ansys Learning Forum is a public forum. You are prohibited from providing (i) information that is confidential to You, your employer, or any third party, (ii) Personal Data or individually identifiable health information, (iii) any information that is U.S. Government Classified, Controlled Unclassified Information, International Traffic in Arms Regulators (ITAR) or Export Administration Regulators (EAR) controlled or otherwise have been determined by the United States Government or by a foreign government to require protection against unauthorized disclosure for reasons of national security, or (iv) topics or information restricted by the People's Republic of China data protection and privacy laws.