Free Strecs3D tool varies FDM infill density by FEM stress results
Strecs3D is a free open-source tool that sets infill density from finite element stress results. It reads an STL model and a stress file, then writes 3MF files for Cura and Bambu Studio. Highly stressed zones get dense infill, lightly loaded zones a sparse lattice, which should save material without losing strength.