Physics-informed neural networks with hard and soft boundary conditions for problems in fluid dynamics
Licentiatavhandling, 2025
For the linear wave problem, both hard and soft strategies were used to enforce periodic boundary conditions (PBCs). The vanilla PINN predicted the velocity field with 2.31 % error. A periodic input achieved a 0.16 % velocity error, while soft constraints performed slightly better (0.10 %) but did not fully enforce periodicity. Hard enforcement of the kinematic bottom boundary condition (KBBC) using trial functions satisfied the constraint at machine precision, though at the cost of increased velocity error (2.36 %). The network also predicted the angular frequency omega with 0.03 % error and maintained velocity errors below 0.2 % without labeled data.
In the cavity flow case, a baseline PINN with soft boundary enforcement performed well across most of the domain but struggled near the top corners due to singularities. To improve accuracy, two strategies were tested: trial functions for hard boundary conditions and spatially varying loss weights. Hard Constraints 1, which left the top boundary soft, led to a marginal improvement, reducing MAE(v) by about 8 %, while Hard Constraints 2, which enforced the top boundary with a trial function, worsened the results. Weighting strategies were more effective: applying omega_mw reduced MAE(u) by 63 % and MAE(v) by 68 %, and using both omega_F and omega_mw yielded the best accuracy, with reductions of 81 % in MAE(u) and 78 % in MAE(v). These findings highlight the challenge of handling singularities.
Overall, the study provides practical insights and quantitative benchmarks to guide the design and training of PINNs for fluid dynamics problems.
linear waves
PINN
Physics-informed neural network
soft constraints
periodic boundary condition
hard constraints
lid-driven cavity
Författare
Mohammad Sheikholeslami
Chalmers, Mekanik och maritima vetenskaper, Marin teknik
Physics-Informed Neural Networks for Modeling Linear Waves
Proceedings of the International Conference on Offshore Mechanics and Arctic Engineering - OMAE,;Vol. 9(2024)
Paper i proceeding
M. Sheikholeslami, S. Salehi, W. Mao, A. Eslamdoost, and H. Nilsson. Physics-informed neural networks with hard and soft boundary conditions for linear free surface waves
M. Sheikholeslami, S. Salehi, W. Mao, A. Eslamdoost, and H. Nilsson. Comparative Evaluation of Periodic Boundary Condition Approaches in PINNs.
M. Sheikholeslami, S. Salehi, W. Mao, A. Eslamdoost, and H. Nilsson. Addressing Corner Singularities in Physics- Informed Neural Network Solutions of the Lid-Driven Cavity Problem.
PINNs -- Multi-Fidelity Physics-Informed Neural Network för att lösa partiella differentialekvationer
Chalmers, 2023-01-01 -- 2027-06-30.
Artificial intelligence for enhanced hydraulic turbine lifetime
Energimyndigheten (VKU33020), 2023-01-01 -- 2027-06-30.
Energiforsk AB (VKU33020), 2023-01-01 -- 2027-06-30.
Ämneskategorier (SSIF 2025)
Maskinteknik
Utgivare
Chalmers
Gamma/Delta room, Hörsalsvägen 7A
Opponent: Yu Rixin, Senior Lecturer, Lund University, rixin.yu@energy.lth.se