July 27, 2023 at 5:03 pmTaylor LeVaurSubscriber
I am working on a simulation to optimize the transmission through an AR-coated III-V waveguide facet. I have an optimization working on three variables, the angle of the interface, the refractive index of the AR coating, and the thickness of the coating. I will run the optimization with a generation size of 20 and about 1-3 simulations of the generation will fail unexpectedly. I have gone to the offending simulations (Number 13 in this case) and attempted to run it manually and received the exact same error, so I do not believe it has anything to do with licensing (as I saw suggested in another post somewhat related to this one).
Originally, I had the mesh accuracy set to 5. Setting it to 6 allows the simulation to run, so I tried to run the optimization again with the higher accuracy and still had 1-3 simulations fail. Also, this is not a desirable workaround as it slows down each generation.
I know there are likely smarter ways of designing said single-layer AR coating, but I see no reason why my approach does not work for certain combinations of the three parameters.
Any help would be greatly appreciated.
Edit: posted script did not appear as it should've
July 27, 2023 at 5:19 pmTaylor LeVaurSubscriber
Here is the script in a useful form:
July 31, 2023 at 10:23 pmGuilin SunAnsys Employee
I thought you have resolved the issue. Sorry to reply late.
Error code 5 might be due to temporary server/license access issue. THis could happen when the network adaptor fails to work for some time due to uknown reasons;
To isolate the cause, please change the optimization to sweep. If the sweep has the same error, then we can identify the file, and its settings as well as result matrix if any. You may try at least 5 simulation files at each generation.
August 1, 2023 at 8:56 pmTaylor LeVaurSubscriber
I did not resolve this issue. That script I posted contains the relevant simulation parameters that produce the invalid matrix dimensions error.
August 2, 2023 at 5:36 pmGuilin SunAnsys Employee
We are not allowed to download files in this forum. But I had a look. I did not find anything significantly wrong. However since you did not mention how do you set the angles, it is hard to comment.
Current you use polygons. You will need to have the angle in model or in structure group to sweep/optimize it.
You may also try to use mesh accuracy 2, but with override mesh for the max title angle region, and try again.
Error code 5 is a system error, probably from c++ library. You can search online for that error message.
- 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.
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.
- “Import optical generation” or “delta generation rate”?
- Why am I getting “process exited without calling finalize”, and how do I fix it?
- Using a license file on a new license server
- Ansys Insight: Diverging Simulations
- Error: addfdtd is not a valid function or a variable name
- Questions about the calculation of the cross-polarization conversion efficiency of metasurface
- Error on Lumerical device
- Ansys Insight: About override mesh in FDTD: its use and settings
- Finding your Ansys (or Lumerical) account number
- Lumerical – error message when trying to open from Linux terminal
© 2023 Copyright ANSYS, Inc. All rights reserved.