enforce boundary conditions

Designs, implements, and analyzes methods to encode and enforce boundary-condition constraints in computational models (including neural networks and physics-informed neural networks) so that model outputs satisfy Dirichlet, Neumann, periodic, or other boundary specifications exactly or in a controlled/approximate way. This includes constructing boundary-admissible architectures and transformations (analytical or polynomial lifting, periodic mappings), applying masking or loss-based enforcement, specifying and encoding boundary conditions, and implementing hard-constraint (hard-constrained PINN) or soft enforcement mechanisms.

enforceboundaryconditions

Recent Skill Trend

Momentum and market value over time
Trending
Score
No comparison yet
-0.1
Oct 01, 2026Oct 01, 2026
Career
Value
No comparison yet
$200K/year
Oct 01, 2026Oct 01, 2026

Must-Read Papers

Most classic and influential ideas
View more

PINN-FEM: A Hybrid Approach for Enforcing Dirichlet Boundary Conditions in Physics-Informed Neural Networks

Jan 14, 2025
NS
Nahil Sobh
🏛️ University of Illinois at Urbana-Champaign

Physical-informed neural networks (PINNs) suffer from inaccurate enforcement of Dirichlet boundary conditions, leading to large boundary errors and unstable convergence. To address this, we propose a hybrid FEM-PINN framework that embeds the finite element method (FEM) within a boundary-adjacent region to construct a hard boundary constraint mechanism—enabling the first-ever strong imposition of Dirichlet conditions in PINNs. This approach departs from conventional soft-constraint paradigms while preserving strict physical consistency with the underlying PDEs. Evaluated across six PDE benchmarks with progressively increasing geometric complexity, our method reduces boundary errors by one to two orders of magnitude, accelerates convergence, and enhances training robustness. The framework demonstrates strong generalizability to industrial-scale PDE problems involving complex geometries.

Computational accuracy and stabilityDirichlet boundary conditionsPINNs

This work addresses the challenge that existing physics-informed machine learning methods struggle to enforce Dirichlet, Neumann, and Robin boundary conditions exactly on arbitrary curved quadrilateral domains, particularly due to compatibility constraints at corners where Neumann and Robin boundaries intersect. To overcome this limitation, the authors propose a systematic framework that integrates exact geometric mapping, the Theory of Functional Connections (TFC), and transfinite interpolation to construct trial functions that rigorously satisfy all boundary conditions and vertex compatibility requirements. These trial functions are embedded within an Extreme Learning Machine (ELM) to solve partial differential equations. The method achieves machine-precision enforcement of boundary conditions on complex curved quadrilateral domains—surpassing conventional approaches that only approximate such constraints—and demonstrates high accuracy and broad applicability across a range of linear/nonlinear and steady/unsteady problems.

compatibility constraintscurved boundariesDirichlet boundary conditions

Addressing the challenge of robustly enforcing mixed Dirichlet/Neumann/Robin boundary conditions on complex 3D geometries in Physics-Informed Neural Networks (PINNs), this work systematically benchmarks existing boundary enforcement techniques and introduces the first geometry-agnostic, PDE-agnostic, and boundary-type-agnostic unified PINNs framework. The proposed framework integrates geometry-aware sampling, dynamically weighted boundary loss, and adaptive constraint embedding—operating without mesh dependence and fully compatible with strong-form PDE formulations. Comprehensive evaluation across multiple nontrivial 3D benchmark problems demonstrates a 30–50% reduction in boundary error compared to state-of-the-art methods, significantly reduced hyperparameter sensitivity, and markedly improved robustness and generalization. This work provides critical methodological foundations for advancing PINNs toward engineering-grade reliability as numerical solvers.

Compares boundary condition enforcement techniques for PINNs.Proposes a framework for arbitrary 3D geometries with PINNs.Verifies methods on 3D linear and nonlinear test problems.

Safe PDE Boundary Control with Neural Operators

Nov 23, 2024
HH
Hanjiang Hu
🏛️ Carnegie Mellon University

This work addresses the safety-critical boundary control problem for unknown partial differential equation (PDE) dynamical systems. We propose Neural Boundary Control Barrier Functions (BCBFs), the first framework to integrate safety filtering into PDE boundary control. BCBFs explicitly model the mapping from boundary inputs to system outputs and exhibit linear dependence on control inputs, enabling seamless embedding into real-time quadratic programming (QP)-based safety filters for model-agnostic online safety enforcement. The approach unifies treatment of hyperbolic, parabolic, and Navier–Stokes-type PDEs without requiring exact system models, significantly improving adherence of boundary outputs to user-specified safety constraints. Experimental results demonstrate broad applicability, plug-and-play deployment, and superior performance over existing baselines.

Developing neural boundary control barrier functionsEnabling safe model-free PDE boundary controlEnsuring PDE boundary output meets safety constraints

Latest Papers

What's happening recently
View more

This work addresses key limitations of conventional physics-informed neural networks (PINNs)—including slow convergence, sensitivity to loss weighting, and difficulty in accurately enforcing boundary conditions—by introducing a unified hard-soft PINN (HSPINN) framework. The method explicitly enforces Dirichlet and periodic boundary conditions as hard constraints through analytical or polynomial lifting, masking functions, and periodic feature mappings. Meanwhile, the PDE residuals, Neumann fluxes, and initial conditions are incorporated as soft constraints. To eliminate manual hyperparameter tuning, an inverse shared Softmax strategy is employed to adaptively balance the weights of all loss components. The proposed approach demonstrates significantly improved convergence speed, accuracy, and numerical stability across elliptic (Poisson), parabolic (Burgers), and hyperbolic (periodic convection) problems without requiring user-specified loss weights.

Boundary conditionsLoss weightingOptimization landscape

This work addresses the challenge of achieving high-order Sobolev accuracy in physics-informed neural networks (PINNs) for elliptic Dirichlet boundary value problems. The authors propose boundary-adaptive PINNs that exactly embed Dirichlet conditions into the network output by multiplying with a first-order normalized smooth boundary distance function ρ. Through a combined analysis grounded in approximation theory and statistical learning, they establish—for the first time—that merely satisfying boundary conditions is insufficient to guarantee an $H^2(\Omega)$ error bound, and rigorously identify the necessity of the first-order normalization property for ρ. Leveraging ReQU or tanh activation functions, they derive novel VC-dimension bounds for derivative hypothesis spaces and high-order Sobolev approximation rates for shallow networks, leading to a provable $H^2$ priori error estimate. Numerical experiments confirm that a properly constructed ρ significantly enhances both accuracy and convergence in MET computations.

A Priori Error BoundsBoundary EnforcementElliptic Dirichlet Problems

This work addresses the challenge of efficiently and accurately solving parametrized partial differential equations (PDEs) under varying boundary conditions, a task where traditional reduced-order models often struggle. To overcome this limitation, the authors propose the Graph-Instructed Neural Network (GINN), a novel approach that, for the first time, integrates graph structures into a deep learning framework to directly learn the mapping between parametric descriptions of the computational domain and the corresponding PDE solutions. By abandoning conventional Galerkin projections and fully connected architectures, GINN leverages graph representations to flexibly accommodate variable boundary conditions without requiring re-discretization for each new configuration. Experimental results demonstrate that GINN significantly outperforms traditional methods across multiple scenarios, achieving high accuracy while exhibiting superior robustness, scalability, and potential for real-time applications.

computational domainparametric PDEsreal-time simulation

This work addresses the challenge of accurately modeling viscous flow in highly porous media using physics-informed neural networks (PINNs), where complex boundaries and fine-scale structures lead to significant accuracy degradation—particularly as pore count increases. To overcome this, the authors propose a novel approach that integrates finite basis PINNs (FBPINNs) with hard boundary constraints. By decomposing the domain into local subregions, the method precisely embeds pore boundary conditions, effectively mitigating spectral bias and non-local effects. Notably, this is the first application of hard constraints within FBPINNs for porous flow problems, circumventing the stiffness and gradient conflicts associated with soft constraints and yielding convergence behavior that is largely independent of pore number. Numerical experiments demonstrate that the proposed framework achieves high accuracy, computational efficiency, and strong scalability in simulating Stokes flow.

boundary conditionshighly perforated domainsphysics-informed neural networks

Neural networks often struggle to strictly satisfy nonlinear constraints during inference, which hinders their deployment in safety-critical applications. This work proposes HardNet++, the first method capable of enforcing hard satisfaction of general nonlinear equality and inequality constraints, overcoming the limitation of existing approaches that are restricted to specific constraint forms. By integrating damped local linearization, differentiable projection layers, and end-to-end training, HardNet++ guarantees constraint compliance simultaneously during both training and inference. Evaluated on model predictive control tasks, HardNet++ achieves high-precision constraint adherence while preserving solution optimality.

constraint satisfactionhard constraintsneural networks

Hot Scholars

FW

Feng Wu

National University of Singapore
Mechine LearningMedical Time Series
SD

Suchuan Dong

Department of Mathematics, Purdue University
computational fluid dynamicsnumerical methods and algorithmsphase fieldscientific computing
TK

Taku Komura

The University of Hong Kong
Character AnimationComputer GraphicsRobotics
BL

Benzhuo Lu

Professor, Institute of Computational Mathematics and Scientific/Engineering Computing
Numerical methodsComputational Chemistry/BiologyPoisson-BoltzmannPoisson-Nernst-Planck equations
ZF

Zhuojia Fu

Professor of Hohai University
Computational mechanicsWave propagationNumerical PDEscientific computing