Sharp-PINNs: staggered hard-constrained physics-informed neural networks for phase field modelling of corrosion
Nanxi Chen, Chuanjie Cui, Rujin Ma, Airong Chen, Sifan Wang
TL;DR
Sharp-PINN tackles complex phase-field corrosion by decoupling the strongly coupled Allen–Cahn and Cahn–Hilliard equations through a staggered training scheme, and by enforcing hard concentration constraints via a KKS-based output layer embedded in a Fourier-feature backbone. The method combines a random Fourier feature input, a modified MLP, and physically constrained outputs to stabilize training and improve accuracy. Empirical results across 2D and 3D pit scenarios show substantial efficiency gains over traditional FEM (3D speedups of 5–10x) while maintaining high fidelity to reference solutions, with ablation studies highlighting the critical role of each component. The work suggests broad applicability of staggered PINNs to other multi-physics, multi-scale problems and points toward physics-informed neural operators for parametric, real-time simulations.
Abstract
Physics-informed neural networks have shown significant potential in solving partial differential equations (PDEs) across diverse scientific fields. However, their performance often deteriorates when addressing PDEs with intricate and strongly coupled solutions. In this work, we present a novel Sharp-PINN framework to tackle complex phase field corrosion problems. Instead of minimizing all governing PDE residuals simultaneously, the Sharp-PINNs introduce a staggered training scheme that alternately minimizes the residuals of Allen-Cahn and Cahn-Hilliard equations, which govern the corrosion system. To further enhance its efficiency and accuracy, we design an advanced neural network architecture that integrates random Fourier features as coordinate embeddings, employs a modified multi-layer perceptron as the primary backbone, and enforces hard constraints in the output layer. This framework is benchmarked through simulations of corrosion problems with multiple pits, where the staggered training scheme and network architecture significantly improve both the efficiency and accuracy of PINNs. Moreover, in three-dimensional cases, our approach is 5-10 times faster than traditional finite element methods while maintaining competitive accuracy, demonstrating its potential for real-world engineering applications in corrosion prediction.
