-
-
May 23, 2023 at 4:18 pmP NairSubscriber
I have a question related to the conversion of E(ux,uy) data set to spherical coordinates. I have FDTD far-field simulation results E(ux,uy), which is 200x200 matrix data and I need to know how to convert into spherical coordinates r, theta, & phi So that we can extract the data and plot as polar plots in origin. I tried the far-field spherical command line here:https://optics.ansys.com/hc/en-us/articles/360034410194-farfieldspherical-Script-command , but it is not useful for the 200X200 matrix data. As this command line will plot for only one angle, phi=0 for example , at a time. So, it is not possible to generate data for phi= 0 to 360 at a time and convert it into spherical coordinates. Could you please suggest further regarding this?
-
May 24, 2023 at 12:00 amGuilin SunAnsys Employee
If you pourpose is to visualize the farfield, no need to convert to theta, phi;
If you want to know the peak location of theta and phi, you can specify phi to get theta plot.
Please elaborate more of your intention.
-
May 31, 2023 at 3:19 pmP NairSubscriber
Thank you for the reply.
We are working with FDTD simulations to plot the far-field from a dipole source inside a thin film structure. However, we are having difficulties with plotting/interpreting the extracted far-field data. Accordingly, we have a few questions regarding this:
Primarily, we want to recreate the polar plot of the 3D far-field using that can be seen using the visualizer inside the FDTD software using OriginLab software. For example, this image is taken from the visualizer:
We have converted the ux and uy data to values of theta and phi using the script at the bottom of this webpage from the Ansys website: https://optics.ansys.com/hc/en-us/articles/360034410194-farfieldspherical-Script-command
However, we have some confusion about the interpretation of these values.
- From the output of this script, the values of theta range of from -90 to 90. As described here: Understanding direction unit vector coordinates in far field projections – Ansys Optics the fields are calculated on a hemispherical surface located 1 meter away from the simulation region, and the range of theta is from 0 to 180 degrees (0 to pi radians). Why then does script give values from -90 to 90 for theta and what is the physical location of the values from -90 to 0 on the hemisphere/polar plot?
- In general, what is the proper way to extract this data and plot in a polar plot in an external software like OriginLab?
Thank you!”
-
May 31, 2023 at 3:57 pmGuilin SunAnsys Employee
A1: The theta is from -90 to 90 or 0 to 180 in theory. However, for the semi-sphere it is 0-90. -90 to 0 is the other half.
A2: I do not know OriginLab. But you have ux,uy, and uz, as well as theeta and phi that you can import to any 3rd party script.
-
May 31, 2023 at 4:10 pmP NairSubscriber
Thnk you for the reply. Could you please explain what is that other half represent? For sphere in theory it from 0 to 180. Then, for hemisphere it should be from 0 to 90. What does it represent for -90 to 0?
-
June 6, 2023 at 6:22 pmGuilin SunAnsys Employee
Please check this article:https://optics.ansys.com/hc/en-us/articles/360034394294-Understanding-direction-unit-vector-coordinates-in-far-field-projections
This graph shows 0-90deg
this is toward the propagation direction.
The other half is toward the 180 deg direction. A sphere is cut in halves so one is for 0-90 deg and the other is for 0 ~-90 deg.
As for it is 0~180 or -90 to 90, it is just a choice of definition. any way it is only the hemisphere.
-
- The topic ‘Conversion of FDTD far field simulation data into spherical coordinates issues’ 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
- Issues with getting result from interconnent analysis script
- Topology Optimization Error
- Edge Coupler EME Example Issue
- The two modes overlap the integral
-
1191
-
513
-
488
-
225
-
209
© 2024 Copyright ANSYS, Inc. All rights reserved.