-
-
December 28, 2022 at 2:28 pm
Shashank Gupta
SubscriberI am designing a inverse Y branch. In the example section for custom design, 'https://optics.ansys.com/hc/en-us/articles/360042305274', a code is given to optimize splitter and output waveguide both.
I have replaced the 'def spitter' in 'y_branch_opt_2D' file with the custom design 'def splitter' and modified the fom, opt_monitor, FDTD region and waveguide positions in base python code 'varFDTD_y_branch' as desired by the custom design. Also, modified following code lines in ''y_branch_opt_2D' file as-
initial_points_x = np.linspace(-2.5e-6, 2.5e-6, 20)
initial_points_y = np.linspace(0.25e-6, 2e-6, initial_points_x.size)
bounds = [(0.2e-6, 2e-6)]
But the code is showing error (screenshot attached)-
I guess the error is due to initial_points x and y. The initial paramaterized polygon geometry points need to be defined to run the code (as mentioned in the 1st line of the description of custom design in image file attached). If this is so, then, how to define the initial_points x and y to run the code?
What other modification need to be done to run and verify the results of custom design?
-
December 28, 2022 at 6:24 pm
Guilin Sun
Ansys EmployeeInverse optimization is an advanced feature. It can be challenge if significnat modification is made.
from this
initial_points_x = np.linspace(-2.5e-6, 2.5e-6, 20)
initial_points_y = np.linspace(0.25e-6, 2e-6, initial_points_x.size)
I am not sure if both use the same point. I would suggest to use
initial_points_x = np.linspace(-2.5e-6, 2.5e-6, initial_points_x.size)
initial_points_y = np.linspace(0.25e-6, 2e-6, initial_points_x.size)
This is to make sure they use the same sampling number. Please check the whole script file and make sure their number of points keeps the same.
-
- You must be logged in to reply to this topic.

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.
- “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
- Error: addfdtd is not a valid function or a variable name
- Ansys Insight: Diverging Simulations
- Ansys Insight: Transmission results greater than one
- Ansys Insight: About override mesh in FDTD: its use and settings
- Ansys Insight: Convergence issues in CHARGE
- Is there a Lumerical script command to output the Simulation and Memory requirements?
-
2630
-
2104
-
1329
-
1110
-
461
© 2023 Copyright ANSYS, Inc. All rights reserved.