Fig. 3: Topology optimization.
From: NeuralMag: an open-source nodal finite-difference code for inverse micromagnetics

Optimization result of a permanent magnetic sample with magnetization M = (0, 0, Mz) that maximizes Hz(M) at a single point above the sample marked by the grey sphere.