How do I set an adjoint topology optimization?

How do I set an adjoint topology optimization?#

Date

Category

2023-12-21 22:12:45

Inverse Design

To create an adjoint topology (or density-based) optimization setup, you can control the permittivity values of a CustomMedium based on the optimization design parameters.

Once the simulation is defined, you can use the web.run method to send the simulation to our servers and process the data as usual.

Lastly, use autograd.value_and_grad to both compute the objective function and the gradient with respect to the design parameters. The objective function gradients can then feed a gradient-based optimization algorithm to drive the inverse design process.

We highly recommend watching the Inverse Design lectures if you are new to the adjoint method. You can also go through this tutorial for an example on adjoint topology optimization.