-
-
January 8, 2024 at 9:09 am
-
January 8, 2024 at 7:05 pm
Dimitris Polyzos
Ansys EmployeeHello,
could you please send me the script workplace of your model? As you can sse in the bottom right of the figure you shared, the Electric field for the -90 degr has an index 1. The dataset that includes the Electric field, the wavelength range and the angle should be set in the script command with an index 1 at the angle input. For example something similar to the following code will returnt eh E field for -90 degrees:
E90mminus = E(Efield, wavelength, angle) = E(Efield,wavelength,1)
I would have a better picture though if I could check the script worspace with the attributes and parameters fof you model.
Thanks a lot in advance
Kind regards
Dimitris
-
January 9, 2024 at 6:26 am
-
January 9, 2024 at 3:22 pm
Dimitris Polyzos
Ansys EmployeeHello,
I created a simple model, where in the red box there are the results that you want to manipulate. In my occasion you can see that E (dataset) consists of user E1,H1,index vs x,y,z,lambda. In a similar manner your results will include the E filed the wavelength and the angle. I reckon that the -90 angle is at index = 1, however it would help to have a look at the scirpt workspace to see the form of your results.
In the scipt prompt, I did some tests where I extract the parameters form the E dataset. You can do something similar with your results in order to manipulate your data and create a matrix of Efiled vs wavelength for -90 degrees. The red arrow points out the index of 1 for z position(in my model-case) and in this way I obtain the E filed for one z position only.
Please try a similar way to your model and let me know how it went.
I hope I helped.
Regards
Dimitris
-
January 11, 2024 at 3:23 am
2202283139
Subscriber -
January 11, 2024 at 3:28 am
-
- The topic ‘Data acquisition script in parametric scanning’ is closed to new replies.
-
3472
-
1057
-
1051
-
940
-
902
© 2025 Copyright ANSYS, Inc. All rights reserved.