TY - JOUR
T1 - A trial solution for imposing boundary conditions of partial differential equations in physics-informed neural networks
AU - Manavi, Seyedalborz
AU - Fattahi, Ehsan
AU - Becker, Thomas
N1 - Publisher Copyright:
© 2023 Elsevier Ltd
PY - 2024/1
Y1 - 2024/1
N2 - This article proposes an auxiliary function for imposing the boundary and initial conditions in physics-informed neural network models in a hard manner that accelerates the learning process. This auxiliary function consists of two pre-trained neural networks and a main deep neural network with trainable parameters. The novelty of this new auxiliary function is the input of main deep neural network, which takes the outputs of distance function and boundary function as inputs in addition to the spatiotemporal variables. We demonstrate the efficacy and general applicability of the proposed model by applying it to several benchmark-forward problems namely, advection, Helmholtz and Klein-Gordon equations. The accuracy of predictions is examined by comparison with exact solutions. Our findings imply the superiority of the proposed model because of the improvement of the loss convergence to lower values by one order of magnitude for the same number of epochs. In the case of the advection equation, the relative L2 error has been reduced from 0.025 to 0.0201, and from 0.016 to 0.0152. When applied to the Helmholtz equation, our novel model achieved an error of 8.67 × 10−3, surpassing the conventional model's performance, which yielded an error of 6.04 × 10−2. Furthermore, for the Klein-Gordon equation, our new model led to a remarkable reduction in the relative L2 error, from 0.18 to an impressive 4.2 × 10−2.
AB - This article proposes an auxiliary function for imposing the boundary and initial conditions in physics-informed neural network models in a hard manner that accelerates the learning process. This auxiliary function consists of two pre-trained neural networks and a main deep neural network with trainable parameters. The novelty of this new auxiliary function is the input of main deep neural network, which takes the outputs of distance function and boundary function as inputs in addition to the spatiotemporal variables. We demonstrate the efficacy and general applicability of the proposed model by applying it to several benchmark-forward problems namely, advection, Helmholtz and Klein-Gordon equations. The accuracy of predictions is examined by comparison with exact solutions. Our findings imply the superiority of the proposed model because of the improvement of the loss convergence to lower values by one order of magnitude for the same number of epochs. In the case of the advection equation, the relative L2 error has been reduced from 0.025 to 0.0201, and from 0.016 to 0.0152. When applied to the Helmholtz equation, our novel model achieved an error of 8.67 × 10−3, surpassing the conventional model's performance, which yielded an error of 6.04 × 10−2. Furthermore, for the Klein-Gordon equation, our new model led to a remarkable reduction in the relative L2 error, from 0.18 to an impressive 4.2 × 10−2.
KW - Hard constraint
KW - Partial differential equations
KW - Physics-informed neural networks
KW - Surrogate modelling
UR - http://www.scopus.com/inward/record.url?scp=85174707070&partnerID=8YFLogxK
U2 - 10.1016/j.engappai.2023.107236
DO - 10.1016/j.engappai.2023.107236
M3 - Article
AN - SCOPUS:85174707070
SN - 0952-1976
VL - 127
JO - Engineering Applications of Artificial Intelligence
JF - Engineering Applications of Artificial Intelligence
M1 - 107236
ER -