UPDF AI

A 200 Line MATLAB Code for Inverse Design in Photonics by Topology Optimization

R. Christiansen,O. Sigmund

2020 · DOI: 10.1364/josab.405955
29 Citations

Abstract

We provide a compact 200 line MATLAB code demonstrating how Topology Optimization as an inverse design tool may be used in photonics, targeting the design of two-dimensional dielectric metalenses and a metallic reflector as examples. The physics model is solved using the finite element method and the code utilizes MATLABs fmincon algorithm to solve the optimization problem. In addition to presenting the code itself, we briefly discuss a number of extensions and provide the code required to implement some of these. The MATLAB software is freely available along with the paper and may be downloaded from this http URL.