TAGGED: inverse-design, topology-optimization
-
-
November 29, 2024 at 8:29 pmwcai05SubscriberDear Ansys support team,I am currently trying to design a WDM device based on the following example: https://optics.ansys.com/hc/en-us/articles/1500007188582-Topology-Optimization-of-a-4-channel-wavelength-demultiplexer-2D-TE.ÂI have successfully completed the 2D optimization and am moving on to the 3D optimization for the device.ÂI keep receiving a 'failed to evaluate code' error or a 'simulation did not complete successfully' error for my optimization code.I have no clue how to debug my code for these given error messages.ÂI have attached my scripts to this repo in case you want to take a look at them: https://github.com/wcai05/cwdm_topology_3dÂI sincerely hope you can provide any suggestions on the techniques that I can try to make it work.ÂThank you for your time and support.ÂBest regards,Wangning
-
December 3, 2024 at 7:09 amanna.wirth-singhAnsys Employee
Hi Wangning,
Thank you for your question and for sharing your files. I have received them and will take a look. Could you please tell me which version of Lumerical you are using?Â
I was able to replicate your error in 2023 R1. I believe the error is indicating some kind of API connection issue, but I am not sure exactly what is causing it yet.
Best,
Anna
-
December 3, 2024 at 6:45 pmanna.wirth-singhAnsys Employee
Hi Wangning,
Unfortunately, it is beyond our support scope for me to deeply investigate your files. However, I can recommend a general troubleshooting process.
If you navigate to your Lumerical installation folder (usually C:/Program Files/Lumerical) , you should be able to locate the lumapi python files. From there, you can locate the line of code producing the error and try to trace it back to the source.
Since your 2D optimization completed successfully but the 3D optimization is producing an error, I would suspect the issue may be due to a class or function related to the 3D topology geometries. If you are not using the most recent version of Lumerical, it is recommended that you update. A ‘failed to evaluate code’ error can indicate an issue with the API connection – it is also worth checking that all files your optimization may need (helper functions and py files, for example) are accessible from the working directory. Please check to see if you have an environment variable "LUMERICAL_HOME" defined in your bashrc file (Linux) or system environment variables (Windows). It is recommended that you delete this environment variable. Please see this page on command line warnings for CML compiler, which also utilizes the Python API so the warning is relevant: Command Line Errors and Warnings – Ansys Optics
I also recommend visiting this page Optimizable Geometry - Python API – Ansys Optics for more information about topology optimization.
Best,
Anna
-
December 3, 2024 at 7:39 pmwcai05Subscriber
Hi Anna,
Thank you very much for your support and suggestions. The lumerical version I am using is 2024 R2.3.Â
I'll look into the relevant links you provided and see if I can figure it out.
Thank you again for your help.
Best,
Wangning
-
December 3, 2024 at 8:49 pmanna.wirth-singhAnsys Employee
Hi Wangning,
Thanks, and good luck with your troubleshooting. Since you are using a current version of Lumerical, you should have the most up to date files for lumopt. I still suspect that this particular error has to do with the API connection.
Best,
Anna
-
- You must be logged in to reply to this topic.
- INTERCONNECT – No results unless rerun simulation until it gives any
- Errors Running Ring Modulator Example on Cluster
- Difference between answers in version 2024 and 2017 lumerical mode solution
- Import material .txt file with script
- Calculation of correlation values in laser modulation bandwidth simulation
- Trapezoidal ring
-
1116
-
468
-
455
-
225
-
201
© 2024 Copyright ANSYS, Inc. All rights reserved.