-
-
March 17, 2023 at 3:30 pm
sagar
Subscriberm="monitor1"; res = 201; E2 = farfield3d(m,1,res,res); ux = farfieldux(m,1,res,res); uy = farfielduy(m,1,res,res); halfangle=30; theta0=0; phi0=0; cone_30 = farfield3dintegrate(E2, ux, uy, halfangle, theta0, phi0); # integrate over 30 degree cone total = farfield3dintegrate(E2, ux, uy); # integrate over entire hemisphere T = transmission(m); # fraction of source power transmitted into far field ?cone_30/total; # fraction of far field power within a 30 degree cone ?cone_30/total*T; # fraction of source power transmitted into the far field within a 30 degree cone
Can you explain this code. I want to calculate the collection efficiency from my structures. I am getting error
in line 9, "farfield3dintegrate(A,ux,uy), A muat be an NxM or NxMxP matrix, with length length(ux)=N,length(uy(=N, N>2and M>=2".
I thing they are matrix and could not figure out the meaning of this error msg. -
March 17, 2023 at 5:38 pm
Guilin Sun
Ansys EmployeeI tested your script and did not find anything wrong:
Please make sure that your file is 3D and no ay error massage shows before line 9.
The error message showig from above means the matrix has something wrong. Please check the dimension of E2.
You may also need to reboot your computer, modify the simulation settings if necessay, redo the simulation and run the script.
-
March 19, 2023 at 7:48 pm
-
March 20, 2023 at 10:46 am
Manuel Reza
SubscriberI use the same conversation to submit my question as well, because it is very relevant.
The script does work indeed, but there is a serious limitation. How should I integrate over a different range of angles? Not a circular cone, but an elliptical cone for example.
-
March 20, 2023 at 3:38 pm
Guilin Sun
Ansys EmployeeUnfortunately this integration script works only for a circular cone. You can file a feature request for ellipitical cone.
"how much light is going toward the forward direction. Can you suggest how to do this?" a plane monitor can only collect power forward (transmission) or backward (reflection). the total power is the transmission amount.
From your result image it seems you used only a few farfield points, which may not give you accurate result. Iwould suggest to use the default value without specifying coarse farfield points.
-
April 20, 2023 at 1:08 pm
sagar
SubscriberI used the default vaule given in "ff_radiation_plot" analysis group. N theta and N phi are both set as 25. Should I increase it more?
You made this comment earlier "A plane monitor can only collect power forward (transmission) or backward (reflection). the total power is the transmission amount.", only forward and backward monitors will not give the total power. As it is a dipole, it will radiate other directions also. And the placement if forward and backward monitor will be related to some collection angle and to collect the maximum information (High numerical aperture (NA)), I need to place a monitor in the near field.
But the better option would be If I am able to integrate the whole 3D far filed profile and the upper part of the profile. The ratio of it would be the collection amount in forward direction. The ration would be independent of the collection angle. Can you please suggest how to do this integration?
-
April 20, 2023 at 7:00 pm
Guilin Sun
Ansys Employee"ff_radiation_plot" analysis group has converted the rectilinear dataset in FDTD to unstructured data for display of 3D radiation, and I did not find any simple script command to do the angular integration, other than
https://optics.ansys.com/hc/en-us/articles/360034926633-quadtet
The output of the dataset Efar does not have ux,uy and uz associated.
You can modify the script inside the analysis group, and do only forward projection, with given ux,uy and uz and convert them to theta and phi, and then get the xyz on the 1m semishere. After projection the result should be a function of ux and uy, and then you can follow the regular farfield integration.
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Ansys Insight: About override mesh in FDTD: its use and settings
- Ansys Insight: Why my simulation result is different from published paper or experiment?
- Ansys Insight: Transmission results greater than one
- Ganhemt Project mistake can you help me
- How to calculate the cross-polarization efficiency and phase in FDTD
- save data error
- Simulation of a single pillar of a peltier cooler
- EME : field profile and cell periodicity
- Ansys Insight: Single frequency CW source
- What is the meaning of this error ” Bad termination of…” ?
-
8808
-
4658
-
3153
-
1680
-
1470
© 2023 Copyright ANSYS, Inc. All rights reserved.