-
-
February 5, 2023 at 2:43 pm
noumanzia
SubscriberHello,
I am using this script to extract 2D far-field. Now I want to get the FF for a specific wavelength, lets say 1.5 µm. How can I do that using the second index of this function which is now "1"?farfield2d("monitor",1);
-
February 6, 2023 at 5:16 pm
Guilin Sun
Ansys EmployeePlease refer to this link
https://optics.ansys.com/hc/en-us/articles/360034410074-farfield2d-Script-command
-
February 6, 2023 at 7:51 pm
noumanzia
SubscriberHi @Gullin Sun, I am aware of the link you shared but I do not know how to select a particular wavelength. The second parameter in the farfield2d function (the link you shared) is the frequency index but how this indexing works and how can I select a specific wavelength is still unknown. Lets say how can you select FF 1.55 µm wavelength or 200 THz?
-
February 6, 2023 at 8:42 pm
Guilin Sun
Ansys EmployeeAs you can see:
out = farfield2d("mname", f, n, illumination, periods, index, direction);
the value of "f" here is the frequency index; you can get the result at frequency number 5 like this:
efar5=farfield2d("monitor",5);
You cannot directly specify wavelength or frequency, but the frequency point only.
-
February 6, 2023 at 8:45 pm
noumanzia
SubscriberHow may I know which index points to which frequency and how are the indexes defined?
-
February 6, 2023 at 8:46 pm
noumanzia
SubscriberThere is a huge difference in the FF results when index 1 or 100 is selected.
-
February 6, 2023 at 8:54 pm
Guilin Sun
Ansys EmployeeThis is correct, since the frequency is very different from point 1 to point 100.
You can extract the frequency, eg:
f=getdata("monitor","f");
then you can calculate wavelength. Please note that f(1) is the smallest corresponding to longest wavelength.
You may need to watch some online 100-level courses:
https://optics.ansys.com/hc/en-us/sections/360007813194-FDTD100-List-of-videos
-
- 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.
- Why am I getting “process exited without calling finalize”, and how do I fix it?
- “Import optical generation” or “delta generation rate”?
- Error: addfdtd is not a valid function or a variable name
- Error on Lumerical device
- Using a license file on a new license server
- Ansys Insight: Transmission results greater than one
- Ansys Insight: Diverging Simulations
- Finding your Ansys (or Lumerical) account number
- Is there a Lumerical script command to output the Simulation and Memory requirements?
- Ansys Insight: Why my simulation result is different from published paper or experiment?
-
5260
-
3299
-
2469
-
1308
-
998
© 2023 Copyright ANSYS, Inc. All rights reserved.