Physics-constrained DeepONet for Surrogate CFD models: a curved backward-facing step case

Anas Jnini, Harshinee Goordoyal, Sujal Dave, Artem Korobenko, Flavio Vella, Katharine Fraser · DOI

Abstract

This paper introduces PC-DeepONet, a physics-constrained neural operator architecture designed for surrogate modeling in computational fluid dynamics (CFD). By embedding the law of mass conservation (divergence-free constraint) directly into the network structure as a hard constraint, the model ensures physical consistency and improves data efficiency. Evaluated on flow over curved backward-facing steps, PC-DeepONet demonstrates superior accuracy and stability compared to standard data-driven approaches, particularly in scenarios with limited training data.

Introduction

Computational Fluid Dynamics (CFD) is essential for modern engineering, yet high-fidelity simulations are computationally expensive. While machine learning models like DeepONets offer fast surrogate alternatives, purely data-driven approaches often produce physically inconsistent results, such as violations of the continuity equation. This work addresses the need for models that combine the speed of neural networks with the physical grounding of traditional solvers, especially when training data is scarce.

Methodology: PC-DeepONet

The proposed PC-DeepONet builds upon the Deep Operator Network (DeepONet) framework, which utilizes two sub-networks: a Branch Net for input parameters (geometry) and a Trunk Net for spatial coordinates.

The DeepONet architecture consists of a Branch Net and a Trunk Net, whose outputs are combined to predict the target field.

The "Physics-Constrained" (PC) innovation involves a hard constraint on the velocity field. Instead of direct output, the network generates a vector field from which a skew-symmetric matrix is constructed using its Jacobian. The final velocity is defined as the divergence of this matrix, mathematically guaranteeing a divergence-free field ($\nabla \cdot \mathbf{u} = 0$). This ensures mass conservation for incompressible flows by design, regardless of the training data volume.

Experimental Setup

The model was tested on flow over a curved backward-facing step (BFS), a standard benchmark for flow separation and reattachment.

  • Data Generation: Synthetic data was produced using the FreeFEM++ finite element solver for laminar flow (Reynolds number 1000).
  • Geometry: 50 distinct curved geometries were parameterized using Non-Uniform Rational B-splines (NURBS).
  • Training: The model was trained on 50 geometry samples with 1,000 random sensor points each and evaluated on a dense grid of 50,000 points to test resolution independence.

Results and Discussion

PC-DeepONet significantly outperformed the vanilla DeepONet in both accuracy and stability. It achieved a Relative L2 Error of $4.45 \times 10^{-3}$, representing a 2.6x improvement over the standard version ($1.16 \times 10^{-2}$).

Comparison of predicted velocity (U, V) and pressure (P) fields against ground truth, showing low absolute error across the domain.

The model demonstrated extreme data efficiency, converging in just 50 iterations. Visual analysis confirms that PC-DeepONet maintains high fidelity in complex vortex regions. However, errors remain concentrated near boundary layers, likely due to sampling challenges near curved surfaces. Unlike standard PINNs that use soft penalty constraints, the hard constraints used here ensure the model never produces physically impossible divergence.

Conclusion

PC-DeepONet provides a robust framework for physics-consistent surrogate modeling. By learning the operator rather than a simple mapping, it maintains accuracy across varying resolutions. Future work will focus on incorporating hard boundary conditions and extending the model to turbulent flow regimes, which present greater chaotic complexity than the laminar cases studied here.

Summary updated

BibTeX
@misc{jnini2024physics,
  author = {Anas Jnini and Harshinee Goordoyal and Sujal Dave and Artem Korobenko and Flavio Vella and Katharine Fraser},
  title = {{Physics-constrained DeepONet for Surrogate CFD models: a curved backward-facing step case}},
  year = {2024},
  eprint = {2503.11196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.11196},
}
Figure