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.
Enforcing Dirichlet boundary conditions in physics-informed neural networks and variational physics-informed neural networks / Berrone, Stefano; Canuto, Claudio; Pintore, Moreno; Sukumar, Natarajan. - In: HELIYON. - ISSN 2405-8440. - ELETTRONICO. - 9:8(2023), pp. 1-20. [10.1016/j.heliyon.2023.e18820]
Enforcing Dirichlet boundary conditions in physics-informed neural networks and variational physics-informed neural networks
Berrone, Stefano;Canuto, Claudio;Pintore, Moreno;
2023
Abstract
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.File | Dimensione | Formato | |
---|---|---|---|
BeCaPiSu_enforcing.pdf
accesso aperto
Descrizione: Published paper
Tipologia:
2a Post-print versione editoriale / Version of Record
Licenza:
Creative commons
Dimensione
2.65 MB
Formato
Adobe PDF
|
2.65 MB | Adobe PDF | Visualizza/Apri |
Pubblicazioni consigliate
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.
https://hdl.handle.net/11583/2981366