JAX-FEM: A differentiable GPU-accelerated 3D finite element solver for automatic inverse design and mechanistic data science

Tianju Xue, Shuheng Liao, Zhengtao Gan, Chanwook Park, Xiaoyu Xie +2 more
12/2/2022
cs.MScs.CE

Official code: CMSL-HKUST/jax-am (363 stars, Jupyter Notebook, GPL-3.0, JAX, last commit 2025-07-11).

Abstract

This paper introduces JAX-FEM, an open-source differentiable finite element method (FEM) library. Constructed on top of Google JAX, a rising machine learning library focusing on high-performance numerical computing, JAX-FEM is implemented with pure Python while scalable to efficiently solve problems with moderate to large sizes.

Show full abstract

For example, in a 3D tensile loading problem with 7.7 million degrees of freedom, JAX-FEM with GPU achieves around 10$\times$ acceleration compared to a commercial FEM code depending on platform. Beyond efficiently solving forward problems, JAX-FEM employs the automatic differentiation technique so that inverse problems are solved in a fully automatic manner without the need to manually derive sensitivities. Examples of 3D topology optimization of nonlinear materials are shown to achieve optimal compliance. Finally, JAX-FEM is an integrated platform for machine learning-aided computational mechanics. We show an example of data-driven multi-scale computations of a composite material where JAX-FEM provides an all-in-one solution from microscopic data generation and model training to macroscopic FE computations. The source code of the library and these examples are shared with the community to facilitate computational mechanics research.

View on arXivView PDF

Code Implementations(1)

CMSL-HKUST/jax-amOfficial100%
JAXGPL-3.0

Additive manufacturing simulation with JAX.

36371Jupyter Notebook, PythonJun 30, 20221 years agoGPL-3.0
additive-manufacturingcfdcrystal-plasticityfinite-element-methodjax+2 more

Similar Papers

Cite this paper

@article{xue2022jaxfem,
  title  = {JAX-FEM: A differentiable GPU-accelerated 3D finite element solver for automatic inverse design and mechanistic data science},
  author = {Tianju Xue and Shuheng Liao and Zhengtao Gan and Chanwook Park and Xiaoyu Xie and Wing Kam Liu and Jian Cao},
  year   = {2022},
  eprint = {2212.00964},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.00964}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.00964.svg)](https://codeofpaper.com/paper/2212.00964)

Discussion