AutoFreeFem: Automatic code generation with FreeFEM++ and LaTex output for shape and topology optimization of non-linear multi-physics problems
Gr\'egoire Allaire, Michael H. Gfrerer

TL;DR
AutoFreeFem is a Python package that automates code generation for shape and topology optimization in complex multi-physics problems, ensuring consistency and simplifying the process with symbolic differentiation and LaTeX documentation.
Contribution
It introduces an educational Python tool that automates FreeFEM++ code generation and documentation for multi-physics shape optimization, integrating symbolic differentiation and mesh evolution methods.
Findings
Verified accuracy of shape derivatives through numerical experiments.
Successfully applied to various non-linear and multi-physics problems.
Demonstrated the tool's capability in complex shape optimization scenarios.
Abstract
For an educational purpose we develop the Python package AutoFreeFem which generates all ingredients for shape optimization with non-linear multi-physics in FreeFEM++ and also outputs the expressions for use in LaTex. As an input, the objective function and the weak form of the problem have to be specified only once. This ensures consistency between the simulation code and its documentation. In particular, AutoFreeFem provides the linearization of the state equation, the adjoint problem, the shape derivative, as well as a basic implementation of the level-set based mesh evolution method for shape optimization. For the computation of shape derivatives we utilize the mathematical Lagrangian approach for differentiating PDE-constrained shape functions. Differentiation is done symbolically using Sympy. In numerical experiments we verify the accuracy of the computed derivatives. Finally, we…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Numerical Analysis Techniques · Topology Optimization in Engineering · Robotic Mechanisms and Dynamics
