PINN-FEM: A Hybrid Approach for Enforcing Dirichlet Boundary Conditions in Physics-Informed Neural Networks
Nahil Sobh, Rini Jasmine Gladstone, Hadi Meidani
TL;DR
The authors address the difficulty of enforcing Dirichlet boundary conditions in Physics-Informed Neural Networks by proposing PINN-FEM, a hybrid method that uses a boundary-focused finite element mesh to enforce essential BCs exactly while solving the interior with a PINN. The method relies on a domain decomposition and a loss function based on the principle of minimum potential energy, ensuring stability and seamless coupling at the interface between FE and PINN regions. Through six elasticity-based experiments with increasing geometric and boundary-condition complexity, PINN-FEM consistently outperforms standard PINNs with soft enforcement and other exact-BC PINN variants, particularly in scenarios with discontinuous or point boundaries and cracks. The approach demonstrates strong potential for industrial applications where accurate BC enforcement is critical and suggests a generalizable framework for combining FE rigor with PINN flexibility.
Abstract
Physics-Informed Neural Networks (PINNs) solve partial differential equations (PDEs) by embedding governing equations and boundary/initial conditions into the loss function. However, enforcing Dirichlet boundary conditions accurately remains challenging, often leading to soft enforcement that compromises convergence and reliability in complex domains. We propose a hybrid approach, PINN-FEM, which combines PINNs with finite element methods (FEM) to impose strong Dirichlet boundary conditions via domain decomposition. This method incorporates FEM-based representations near the boundary, ensuring exact enforcement without compromising convergence. Through six experiments of increasing complexity, PINN-FEM outperforms standard PINN models, showcasing superior accuracy and robustness. While distance functions and similar techniques have been proposed for boundary condition enforcement, they lack generality for real-world applications. PINN-FEM bridges this gap by leveraging FEM near boundaries, making it well-suited for industrial and scientific problems.
