Compact 200 line MATLAB code for inverse design in photonics by topology optimization: tutorial
arXiv:2009.14276 · doi:10.1364/JOSAB.405955
Abstract
We provide a compact 200 line MATLAB code demonstrating how topology optimization (TopOpt) 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 MATLAB's 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. Finally, we demonstrate the superiority of using a gradient-based method compared to a genetic-algorithm-based method (using MATLAB's ga algorithm) for solving inverse design problems in photonics. The MATLAB software is freely available in the paper and may be downloaded from https://www.topopt.mek.dtu.dk.
5 Figures, 17 pages
References in corpus (3)
Cited by in corpus (9)
- Inverse design in photonics by topology optimization: tutorial
- Nanometer-scale photon confinement in topology-optimized dielectric cavities
- TOPress: a MATLAB implementation for topology optimization of structures subjected to design-dependent pressure loads
- A directional Gaussian smoothing optimization method for computational inverse design in nanophotonics
- Illustrated tutorial on global optimization in nanophotonics
- Neural Networks for Generating Better Local Optima in Topology Optimization
- Omnidirectional gradient force optical trapping in dielectric nanocavities by inverse design
- Engineering optical forces through Maxwell stress tensor inverse design
- A Memory Efficient Adjoint Method to Enable Billion Parameter Optimization on a Single GPU in Dynamic Problems