-
-
January 30, 2023 at 7:18 am
Frederic Wu
SubscriberHello,
Is there a more efficient method for comparing the reflectivity measured by monitors after conducting a sweep? The sweep altered the thickness of the material layer and affected the reflectivity measurements. I'm seeking a way to calculate the mean of the reflectivity of each simulation so I can better compare the data.
If not, I will need to download the text file and use excel to determine the means then compare. This will be very time consuming so I wonder if there is a better way for me to do this.
Thanks for your time and assistance,
Frederic Wu
-
January 30, 2023 at 9:00 pm
Guilin Sun
Ansys EmployeeIn a sweep, you can get the mean value of the result:
Actually you can use getsweepresult sctipt comman to extract the data:
getsweepresult - Script command
then you can do more operation, such as mean:
or any other post processing. To use the software efficiently, I would strongly suggest to learn more about the scripting.
https://optics.ansys.com/hc/en-us/categories/360001998954-Scripting-Language
-
January 31, 2023 at 3:23 am
Frederic Wu
SubscriberI tried researching but since I do not actually understanding how to code in lumerical, could you provide me with some more guidance and maybe show me how my goal can be done?
Task clarification: So basically, I created a sweep function that changes the thickness of a material between a given range 48 times. After running the sweep function, I hope I can obtain the mean of the reflectivity measured in of these 48 times of simulations so I can see how changing the thickness affected the mean reflectivity.
Many thanks for your assistance, please provide me with some more guidance.
-
January 31, 2023 at 5:03 pm
Guilin Sun
Ansys Employeetwo methods have been suggested:
1: as shown in the sweep object, you can always use mean operation for all the sweep.2: you can use getsweepresult.
in the getsweepresult page, you can learn some exmaples. For more informaiton, please refer to
https://optics.ansys.com/hc/en-us/categories/360001998954-Scripting-Language
you can watch vidoes, and learn each script command.
Please try to write script. if there is an error and you cannot fix it, please write a separate post.
-
- 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
- Ansys Insight: Why my simulation result is different from published paper or experiment?
- Is there a Lumerical script command to output the Simulation and Memory requirements?
-
5380
-
3363
-
2471
-
1310
-
1022
© 2023 Copyright ANSYS, Inc. All rights reserved.