Discontinuity Computing with Physics-Informed Neural Network

Li Liu, Shengping Liu, Heng Yong, Fansheng Xiong, Tengchao Yu · DOI

Introduction

Physics-Informed Neural Networks (PINNs) have emerged as a powerful tool for solving partial differential equations (PDEs) by integrating physical laws into the loss function of a neural network. Despite their success in smooth problems, PINNs struggle significantly with discontinuities, such as shock waves in fluid dynamics. These sharp transitions involve near-infinite gradients that create "loss traps" during training. Standard optimizers often become fixated on reducing the massive residuals at these points, leading to numerical oscillations or "smeared" solutions that fail to capture the true physics of the discontinuity.

The PINN-WE Methodology

To address this, the authors propose PINN-WE (Weighted Equation). The core innovation is a "retreat to advance" strategy that selectively relaxes the PDE constraints in regions where discontinuities are detected.

The PINN-WE architecture integrates a gradient-dependent weight $\lambda$ into the PDE loss term.

As shown in the architecture above, the standard PDE residual is multiplied by a local weight, $\lambda$. This weight is dynamically determined based on the flow's local compression, typically using the velocity divergence ($\nabla \cdot \vec{u}$). In smooth regions, $\lambda$ remains close to 1, ensuring the physics are strictly enforced. However, in regions of high compression (shocks), $\lambda$ decreases, effectively "muting" the PDE residual. This prevents the optimizer from getting stuck on the impossible task of representing a zero-thickness jump with a continuous neural network. Instead, the network learns the accurate states on either side of the shock, allowing the underlying physics to naturally compress the transition into a sharp edge.

Experimental Results and Discussion

The PINN-WE method was evaluated on several classic computational fluid dynamics benchmarks, including the 1D Burgers equation, Sod shock tube, and 2D Riemann problems. The results were compared against traditional high-order numerical schemes like WENO-Z.

Performance of PINN-WE: (a) Loss history, (b) shock profile sharpness, (c) residual distribution, and (d) the spatial distribution of the weight $\lambda$ at the shock.

The results demonstrate a significant improvement over standard PINNs. As seen in the figure above, the weighting mechanism (panel d) successfully identifies the shock location at $x=1$, where the weight $\lambda$ drops to near zero. This allows the network to achieve a much sharper shock profile (panel b) compared to standard PINN implementations, which often suffer from severe oscillations. Furthermore, the loss history (panel a) shows a stable convergence, avoiding the erratic spikes typical of standard PINN training on discontinuous problems. In 2D tests, PINN-WE captured complex contact discontinuities more clearly than traditional methods, even when using fewer training points.

Conclusion

PINN-WE provides a robust framework for handling discontinuities by intelligently weighting the governing equations. By de-prioritizing high-gradient "trouble spots," the network can focus on learning the global flow structure, which in turn leads to sharper and more accurate shock captures. Future work involves incorporating entropy conditions to ensure physical validity and refining conservation constraints to improve the precision of shock positioning in complex supersonic flow simulations.

Summary updated

BibTeX
@article{liu2024discontinuity,
  author = {Li Liu and Shengping Liu and Heng Yong and Fansheng Xiong and Tengchao Yu},
  title = {{Discontinuity Computing with Physics-Informed Neural Network}},
  journal = {J. Sci. Comput.},
  year = {2024},
  doi = {10.1007/s10915-023-02412-1},
}
Figure