A Unified Hard-Constraint Framework for Solving Geometrically Complex PDEs

Songming Liu, Zhongkai Hao, Chengyang Ying, Hang Su, Jun Zhu +1 more
10/6/2022
cs.LG

Official code: csuastt/HardConstraint (20 stars, Python, MIT, PyTorch, last commit 2023-03-04).

Abstract

We present a unified hard-constraint framework for solving geometrically complex PDEs with neural networks, where the most commonly used Dirichlet, Neumann, and Robin boundary conditions (BCs) are considered. Specifically, we first introduce the "extra fields" from the mixed finite element method to reformulate the PDEs so as to equivalently transform the three types of BCs into linear equations.

Show full abstract

Based on the reformulation, we derive the general solutions of the BCs analytically, which are employed to construct an ansatz that automatically satisfies the BCs. With such a framework, we can train the neural networks without adding extra loss terms and thus efficiently handle geometrically complex PDEs, alleviating the unbalanced competition between the loss terms corresponding to the BCs and PDEs. We theoretically demonstrate that the "extra fields" can stabilize the training process. Experimental results on real-world geometrically complex PDEs showcase the effectiveness of our method compared with state-of-the-art baselines.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Official implementation of *A Unified Hard-Constraint Framework for Solving Geometrically Complex PDEs*

202PythonOct 10, 20223 years agoMIT
pytorch

Similar Papers

Cite this paper

@article{liu2022unified,
  title  = {A Unified Hard-Constraint Framework for Solving Geometrically Complex PDEs},
  author = {Songming Liu and Zhongkai Hao and Chengyang Ying and Hang Su and Jun Zhu and Ze Cheng},
  year   = {2022},
  eprint = {2210.03526},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.03526}
}

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/2210.03526.svg)](https://codeofpaper.com/paper/2210.03526)

Discussion