June 26, 2021 at 4:24 pmrvpandohieSubscriber
I've been trying to run an optimization on a broadband absorber I've been simulating. In the optimization utility article that Lumerical has, it says that the result we're trying to optimize must be a single scalar value, but since I'm testing the absorption of the material over a range of wavelengths, it is not possible for me to use the optimization route in this case. Is there any way I can set the figure of merit that I want to optimize to be the integral of the Reflection over the wavelengths it is being tested for (either through writing a script or through the user interface)? Thank you!June 28, 2021 at 11:17 pmGuilin SunAnsys Employeeyes, if you need Single-valued FOM since directly using the built-in optimization will work for one FOM. So You can for example add one or two lines of scripts in the analysis group or in "model".
where "absorption" is the frequency-dependent matrix of absorption.
or you can use "integrate" https://support.lumerical.com/hc/en-us/articles/360034405814-integrate-Script-command
it will have dleta_f in the result. So you may want to normalize the result to remove this effect.
If you want to to have more-than-one values of FOM, you will need either to write your own optimization code, or use 3rd party's tool, with the help of API matlab or python, if available and possible.
July 5, 2021 at 5:52 pmJuly 5, 2021 at 6:28 pmGuilin SunAnsys EmployeeYou will need first to get the data, then do the average. For example
Please note that in Optimization script, only limited script commands can be functional. You may try to get the data in "model", and in the Optimization you pick up the FOM from "model".
July 5, 2021 at 7:18 pmrvpandohieSubscriberThank you! While this makes sense, I'm not exactly sure how to get the mean of reflection and transmission from "model" itself. I have the monitors set up to record the data but I am not sure how to get the average within "model" in order to feed that data into the optimization script.
July 5, 2021 at 8:41 pmGuilin SunAnsys EmployeePlease add the above scripts in "model" of analysis script, and output FOM. Then in Optimization you choose the the output of the FOM in "model". Please try to test in a fewer generation and generation size and make sure it works. If not, please give screenshots here.
Viewing 5 reply threads
Ansys Innovation Space
- You must be logged in to reply to this topic.
Simulation World 2022
Check out more than 70 different sessions now available on demand. Get inspired as you hear from visionary companies, leading researchers and educators from around the globe on a variety of topics from life-saving improvements in healthcare, to bold new realities of space travel. Take a leap of certainty and check out a session today here.
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.
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.Trending discussions
- “Import optical generation” or “delta generation rate”?
- Why am I getting “process exited without calling finalize”, and how do I fix it?
- Error on Lumerical device
- Using a license file on a new license server
- Ansys Insight: Diverging Simulations
- Ansys Insight: About override mesh in FDTD: its use and settings
- Error: addfdtd is not a valid function or a variable name
- Ansys Insight: Convergence issues in CHARGE
- Ansys Insight: Transmission results greater than one
- Is there a Lumerical script command to output the Simulation and Memory requirements?
Top Rated Tags
© 2022 Copyright ANSYS, Inc. All rights reserved.Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.