Autofreefem: automatic code generation with FreeFEM and LaTex output for shape and topology optimization of non-linear multi-physics problems

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 showcase the capabilities of AutoFreeFEM by considering shape optimization of a non-linear diffusion problem, linear and non-linear elasticity problems, a thermo-elasticity problem, and a fluid–structure interaction problem.

Authors

Institutions

Publication Details

Journal
Structural and Multidisciplinary Optimization
Published
2024-12-01
DOI
https://doi.org/10.1007/s00158-024-03917-5
Citations
3
Primary Topic
Topology Optimization in Engineering
Type
article
Field-Weighted Citation Impact
0.78

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Autofreefem: automatic code generation with FreeFEM and LaTex output for shape and topology optimization of non-linear multi-physics problems

Michael Helmut Gfrerer, Grégoire Allaire
3 citations
Structural and Multidisciplinary Optimization
Topology Optimization in Engineering
0.78
article

Autofreefem: automatic code generation with FreeFEM and LaTex output for shape and topology optimization of non-linear multi-physics problems

Michael Helmut Gfrerer, Grégoire Allaire
article en
3 citations

Abstract

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 showcase the capabilities of AutoFreeFEM by considering shape optimization of a non-linear diffusion problem, linear and non-linear elasticity problems, a thermo-elasticity problem, and a fluid–structure interaction problem.

Structural and Multidisciplinary OptimizationVol. 67(12)
École Polytechnique (FR), Graz University of Technology (AT)
TU Graz, Internationale Beziehungen und Mobilitätsprogramme
Quality Education
Openalex Percentile: Top 29%
Topology Optimization in Engineering
0.78
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.