COMSOL now supports topology optimization with the density method and a Helmholtz filter. The method is able to generate complex designs based on the physics and a simple input geometry. See this blog post for more details:
Hide player controls
Hide resume playing