Enforcing Dirichlet boundary conditions in physics-informed neural networks and variational physics-informed neural networks

被引:12
作者
Berrone, S. [1 ]
Canuto, C. [1 ]
Pintore, M. [1 ]
Sukumar, N. [2 ]
机构
[1] Politecn Torino, Dipartimento Sci Matemat, Corso Duca Abruzzi 24, I-10129 Turin, Italy
[2] Univ Calif Davis, Dept Civil & Environm Engn, Davis, CA 95616 USA
关键词
Dirichlet boundary conditions; PINN; VPINN; Deep neural networks; Approximate distance function; DEEP LEARNING FRAMEWORK; ALGORITHM;
D O I
10.1016/j.heliyon.2023.e18820
中图分类号
O [数理科学和化学]; P [天文学、地球科学]; Q [生物科学]; N [自然科学总论];
学科分类号
07 ; 0710 ; 09 ;
摘要
In this paper, we present and compare four methods to enforce Dirichlet boundary conditions in Physics-Informed Neural Networks (PINNs) and Variational Physics-Informed Neural Networks (VPINNs). Such conditions are usually imposed by adding penalization terms in the loss function and properly choosing the corresponding scaling coefficients; however, in practice, this requires an expensive tuning phase. We show through several numerical tests that modifying the output of the neural network to exactly match the prescribed values leads to more efficient and accurate solvers. The best results are achieved by exactly enforcing the Dirichlet boundary conditions by means of an approximate distance function. We also show that variationally imposing the Dirichlet boundary conditions via Nitsche's method leads to suboptimal solvers.
引用
收藏
页数:20
相关论文
共 50 条
[21]   Solving PDEs by variational physics-informed neural networks: an a posteriori error analysis [J].
Berrone S. ;
Canuto C. ;
Pintore M. .
ANNALI DELL'UNIVERSITA' DI FERRARA, 2022, 68 (2) :575-595
[22]   hp-VPINNs: Variational physics-informed neural networks with domain decomposition [J].
Kharazmi, Ehsan ;
Zhang, Zhongqiang ;
Karniadakis, George E. M. .
COMPUTER METHODS IN APPLIED MECHANICS AND ENGINEERING, 2021, 374
[23]   The variational physics-informed neural networks for time-fractional nonlinear conservation laws [J].
Li, Changpin ;
Li, Dongxia .
IFAC PAPERSONLINE, 2024, 58 (12) :472-477
[24]   Hemodynamics modeling with physics-informed neural networks: A progressive boundary complexity approach [J].
Chen, Xi ;
Yang, Jianchuan ;
Liu, Xu ;
He, Yong ;
Luo, Qiang ;
Chen, Mao ;
Hu, Wenqi .
COMPUTER METHODS IN APPLIED MECHANICS AND ENGINEERING, 2025, 438
[25]   Parametric extended physics-informed neural networks for solid mechanics with complex mixed boundary conditions [J].
Cao, Geyong ;
Wang, Xiaojun .
JOURNAL OF THE MECHANICS AND PHYSICS OF SOLIDS, 2025, 194
[26]   Learning Specialized Activation Functions for Physics-Informed Neural Networks [J].
Wang, Honghui ;
Lu, Lu ;
Song, Shiji ;
Huang, Gao .
COMMUNICATIONS IN COMPUTATIONAL PHYSICS, 2023, 34 (04) :869-906
[27]   Solving PDEs on spheres with physics-informed convolutional neural networks [J].
Lei, Guanhang ;
Lei, Zhen ;
Shi, Lei ;
Zeng, Chenyu ;
Zhou, Ding-Xuan .
APPLIED AND COMPUTATIONAL HARMONIC ANALYSIS, 2025, 74
[28]   Physics-Informed Neural Networks for Inverse Problems in Structural Dynamics [J].
Teloli, Rafael de O. ;
Bigot, Mael ;
Coelho, Lucas ;
Ramasso, Emmanuel ;
Tittarelli, Roberta ;
Le Moal, Patrice ;
Ouisse, Morvan .
NONDESTRUCTIVE CHARACTERIZATION AND MONITORING OF ADVANCED MATERIALS, AEROSPACE, CIVIL INFRASTRUCTURE, AND TRANSPORTATION XVIII, 2024, 12950
[29]   Can physics-informed neural networks beat the finite element method? [J].
Grossmann, Tamara G. ;
Komorowska, Urszula Julia ;
Latz, Jonas ;
Schonlieb, Carola-Bibiane .
IMA JOURNAL OF APPLIED MATHEMATICS, 2024, 89 (01) :143-174
[30]   Parallel physics-informed neural networks via domain decomposition [J].
Shukla, Khemraj ;
Jagtap, Ameya D. ;
Karniadakis, George Em .
JOURNAL OF COMPUTATIONAL PHYSICS, 2021, 447