Comparative Evaluation of Periodic Boundary Condition Approaches in PINNs
Paper in proceeding, 2025

This study investigates the enforcement of periodic boundary conditions (PBCs) in physics-informed neural networks (PINNs), a key challenge in fluid dynamics. Both soft and hard constraint approaches are examined, comparing their theoretical foundations and practical implications. For soft PBCs, the One-Period approach is shown to be the most effective, preventing convergence to suboptimal solutions. For hard PBCs, various functions are evaluated. Additionally, the required number of neurons in the periodic layer is analyzed, confirming that at least two neurons are necessary for proper optimization and convergence across all tested functions. The linear surface wave problem serves as a benchmark, providing a comprehensive assessment of these strategies. The findings offer valuable insights optimal design choices for PINNs in periodic problems, guiding their application in fluid dynamics and related fields.

Hard Constraints

Soft Constraints

Periodic Boundary Conditions

Physics-Informed Neural Networks (PINNs)

Author

Mohammad Sheikholeslami

Chalmers, Mechanics and Maritime Sciences (M2), Marine Technology

Saeed Salehi

Chalmers, Mechanics and Maritime Sciences (M2), Fluid Dynamics

Stiftelsen Chalmers Industriteknik

Wengang Mao

Chalmers, Mechanics and Maritime Sciences (M2), Marine Technology

Arash Eslamdoost

Chalmers, Mechanics and Maritime Sciences (M2), Marine Technology

Håkan Nilsson

Chalmers, Mechanics and Maritime Sciences (M2), Fluid Dynamics

Proceedings of the 1st International Symposium on AI and Fluid Mechanics

S11 P3

Proceedings of the 1st international Symposium on AI and Fluid Mechanics Paper No S11 P3
Chania, Greece,

Subject Categories (SSIF 2025)

Computer Sciences

Mechanical Engineering

More information

Latest update

6/16/2026