Deep Energy Method with Large Language Model assistance: an open-source Streamlit-based platform for solving variational PDEs
Yizheng Wang, Cosmin Anitescu, Mohammad Sadegh Eshaghi, Xiaoying Zhuang, Timon Rabczuk, Yinghua Liu
TL;DR
The paper presents LM-DEM, an open-source, Streamlit-based platform that solves variational PDEs via the deep energy method while leveraging large-language-models to generate Gmsh geometries from natural language or images. It combines energy-form PINNs with optional FEM solutions, supports built-in and user-defined energy functionals, and provides flexible solver configuration across geometry, boundary conditions, materials, networks, and training. The approach reduces geometry preprocessing burdens, enables easy definition of custom energy functionals via a UMAT-like interface, and offers in-app visualization plus ParaView-compatible exports, making energy-form PINNs accessible to beginners and practitioners. The work highlights quasi-static capabilities, potential for dynamic extensions, and a vision toward agentic workflows and adaptive strategies to improve robustness and efficiency in variational PDEsolving.
Abstract
Physics-informed neural networks (PINNs) in energy form, also known as the deep energy method (DEM), offer advantages over strong-form PINNs such as lower-order derivatives and fewer hyperparameters, yet dedicated and user-friendly software for energy-form PINNs remains scarce. To address this gap, we present \textbf{LM-DEM} (Large-Model-assisted Deep Energy Method), an open-source, Streamlit-based platform for solving variational partial differential equations (PDEs) in computational mechanics. LM-DEM integrates large language models (LLMs) for geometry modeling: users can generate Gmsh-compatible geometries directly from natural language descriptions or images, significantly reducing the burden of traditional geometry preprocessing. The solution process is driven by the deep energy method, while finite element solutions can be obtained in parallel. The framework supports built-in problems including Poisson, screened Poisson, linear elasticity, and hyperelasticity in two and three dimensions, as well as user-defined energy functionals analogous to the \texttt{UMAT} interface in Abaqus. The source code is available at https://github.com/yizheng-wang/LMDEM, and a web-based version is accessible at https://ai4m.llmdem.com. LM-DEM aims to lower the barrier for practitioners and beginners to adopt energy-form PINNs for variational PDE problems.
