Hard-constraining Neumann boundary conditions in physics-informed neural networks via Fourier feature embeddings

Christopher Straub, Philipp Brendel, Vlad Medvedev, Andreas Rosskopf
4/1/2025
cs.LGcs.AIphysics.comp-ph

No official code found. Best implementation: FhG-IISB/HC_Neumann_Experiments (4 stars, last commit 2025-03-28).

Abstract

We present a novel approach to hard-constrain Neumann boundary conditions in physics-informed neural networks (PINNs) using Fourier feature embeddings. Neumann boundary conditions are used to described critical processes in various application, yet they are more challenging to hard-constrain in PINNs than Dirichlet conditions. Our method employs specific Fourier feature embeddings to directly incorporate Neumann boundary conditions into the neural network's architecture instead of learning them. The embedding can be naturally extended by high frequency modes to better capture high frequency phenomena. We demonstrate the efficacy of our approach through experiments on a diffusion problem, for which our method outperforms existing hard-constraining methods and classical PINNs, particularly in multiscale and high frequency scenarios.

View on arXivView PDF

Code Implementations(1)

Source code used for the numerical experiments in the paper "Hard-constraining Neumann boundary conditions in physics-informed neural networks via Fourier feature embeddings".

40PythonMar 28, 20251 years ago

Similar Papers

Cite this paper

@article{straub2025hardconstraining,
  title  = {Hard-constraining Neumann boundary conditions in physics-informed neural networks via Fourier feature embeddings},
  author = {Christopher Straub and Philipp Brendel and Vlad Medvedev and Andreas Rosskopf},
  year   = {2025},
  eprint = {2504.01093},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.01093v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.01093.svg)](https://codeofpaper.com/paper/2504.01093)

Discussion