Physics-informed neural networks with hard and soft boundary conditions for linear free surface waves
Journal article, 2025

Physics-informed neural networks (PINNs) are introduced to solve the linear wave problem described by potential flow theory. In the proposed PINN framework, both soft and hard enforcing of boundary conditions (BCs) at the bottom and sides of the wave domain are proposed. Two scenarios for solving the linear wave problem are investigated to find suitable PINN architectures. In the first scenario, the free surface wave is considered to be completely defined, and in the second scenario, the wave angular frequency is considered an unknown parameter. With a completely defined free surface wave and incorporating both the free surface and bottom BCs as soft constraints, the average velocity distribution error is less than 3%. Incorporation of a periodic BC (PBC) as a soft constraint reduces the average error to 0.10%. A hard constraint PBC gives an average error of 0.16%, with a strict representation of the PBC. This study also explores the design of trial functions to impose the kinematic bottom BC (KBBC) as a hard constraint. While these trial functions strictly satisfy the KBBC, they limit the solution space, increasing the average error up to almost 15 times. When the angular frequency of the wave is considered as an unknown parameter, to be estimated by the PINN, its value is estimated with an average error of 0.03%. Since linear wave theory underpins many wave simulation approaches, the results of this study lay the groundwork for extending the PINN framework to more complex wave models.

Equations of fluid dynamics

Surface waves

Potential theory

Symbolic computation

Optimization algorithms

Laminar flows

Wave model

Artificial neural networks

Navier Stokes equations

Author

Mohammad Sheikholeslami

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

Saeed Salehi

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

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

Physics of Fluids

1070-6631 (ISSN) 1089-7666 (eISSN)

Vol. 37 8 087158

PINNs -- Multi-Fidelity Physics-Informed Neural Network to Solve Partial Differential Equations

Chalmers, 2023-01-01 -- 2027-06-30.

Artificial intelligence for enhanced hydraulic turbine lifetime

Swedish Energy Agency (VKU33020), 2023-01-01 -- 2027-06-30.

Energiforsk AB (VKU33020), 2023-01-01 -- 2027-06-30.

Driving Forces

Sustainable development

Areas of Advance

Transport

Energy

Subject Categories (SSIF 2025)

Fluid Mechanics

Artificial Intelligence

Roots

Basic sciences

DOI

10.1063/5.0277421

Related datasets

Code for paper Physics-informed neural networks with hard and soft boundary conditions for linear free surface waves [dataset]

URI: https://github.com/M-Sheikholeslami/PINNs-with-soft-and-hard-constraints-for-linear-waves

More information

Latest update

8/22/2025