Skip to main content
QUICK REVIEW

[Paper Review] Physics-Informed Neural Networks with Complementary Soft and Hard Constraints for Solving Complex Boundary Navier-Stokes Equations

Chuyu Zhou, Tianyu Li|arXiv (Cornell University)|Nov 12, 2024
Model Reduction and Neural NetworksPhysics and Astronomy3 citations
TL;DR

This paper proposes a physics-informed neural network (mPINN) that combines soft and hard constraints with a novel distance metric network to solve Navier-Stokes equations with complex boundary conditions. By pretraining a soft-constrained network and refining predictions via a hard-constrained primary network and power-function distance weighting, the method achieves significantly higher accuracy than traditional PINNs, reducing mean squared error to 0.0003 in benchmark cases.

ABSTRACT

Soft- and hard-constrained Physics Informed Neural Networks (PINNs) have achieved great success in solving partial differential equations (PDEs). However, these methods still face great challenges when solving the Navier-Stokes equations (NSEs) with complex boundary conditions. To address these challenges, this paper introduces a novel complementary scheme combining soft and hard constraint PINN methods. The soft-constrained part is thus formulated to obtain the preliminary results with a lighter training burden, upon which refined results are then achieved using a more sophisticated hard-constrained mechanism with a primary network and a distance metric network. Specifically, the soft-constrained part focuses on boundary points, while the primary network emphasizes inner domain points, primarily through PDE loss. Additionally, the novel distance metric network is proposed to predict the power function of the distance from a point to the boundaries, which serves as the weighting factor for the first two components. This approach ensures accurate predictions for both boundary and inner domain areas. The effectiveness of the proposed method on the NSEs problem with complex boundary conditions is demonstrated by solving a 2D cylinder wake problem and a 2D blocked cavity flow with a segmented inlet problem, achieving significantly higher accuracy compared to traditional soft- and hard-constrained PINN approaches. Given PINN's inherent advantages in solving the inverse and the large-scale problems, which are challenging for traditional computational fluid dynamics (CFD) methods, this approach holds promise for the inverse design of required flow fields by specifically-designed boundary conditions and the reconstruction of large-scale flow fields by adding a limited number of training input points. The code for our approach will be made publicly available.

Motivation & Objective

  • To address the poor accuracy of standard physics-informed neural networks (PINNs) in solving Navier-Stokes equations with complex boundary conditions.
  • To overcome the limitations of soft-constrained PINNs in enforcing boundary conditions and hard-constrained PINNs in convergence and generalization.
  • To develop a hybrid framework that leverages the efficiency of soft constraints and the precision of hard constraints through a complementary architecture.
  • To introduce a distance metric network that predicts power functions of point-to-boundary distance to improve loss weighting and solution accuracy.
  • To demonstrate the method’s robustness and scalability on challenging 2D incompressible flow problems with segmented inlets and internal obstructions.

Proposed method

  • A two-stage training process is employed: first, a soft-constrained PINN (sPINN) is trained to generate preliminary solutions with reduced computational cost.
  • A primary network (N_P) is then trained with hard constraints on the PDE residual, focusing on interior domain points to ensure physical consistency.
  • A separate distance metric network (N_D) is introduced to predict the power function of the distance from each point to the nearest boundary, used as a dynamic weighting factor in the loss function.
  • The distance metric network enhances solution accuracy at boundaries by adaptively increasing loss contribution near boundary regions based on geometric proximity.
  • The final model, termed mPINN, combines the particular solution from sPINN and the refined solution from the hard-constrained primary network, with loss weighted by the distance metric.
  • The method is validated on two benchmark problems: 2D cylinder wake and segmented inlet cavity flow, with comparisons to sPINN, hPINN, mP, and mD variants.

Experimental results

Research questions

  • RQ1Can a hybrid soft- and hard-constrained PINN framework improve solution accuracy for Navier-Stokes equations with complex boundary conditions?
  • RQ2How does incorporating a learned distance metric network affect the convergence and accuracy of PINN solutions near boundaries?
  • RQ3Does pretraining with a soft-constrained network enhance the stability and performance of the subsequent hard-constrained training phase?
  • RQ4How does the proposed method compare quantitatively to existing soft- and hard-constrained PINN approaches on benchmark Navier-Stokes problems?
  • RQ5Can the method generalize to complex geometries with discontinuous or segmented boundary conditions, such as a segmented inlet with internal obstructions?

Key findings

  • The proposed mPINN method achieved a mean squared error (MSE) of 0.0003 on the 2D cylinder wake problem, significantly lower than sPINN (0.4958) and hPINN (0.5023).
  • In the segmented inlet cavity flow case, mPINN achieved an MSE of 0.0184, outperforming sPINN (0.0925), hPINN (0.0889), mP (0.0335), and mD (0.0691).
  • The distance metric network (mD) reduced MSE to 0.0006 in Case 1, demonstrating its effectiveness in improving boundary accuracy for smooth boundary conditions.
  • The particular solution method (mP) achieved the best performance in Case 2 (MSE 0.0335), indicating its superiority for segmented or discontinuous boundary conditions.
  • The combination of both mP and mD components in mPINN yielded the most robust and accurate results across all test cases, validating the complementary nature of the approach.
  • The method successfully converged and produced accurate solutions for the segmented inlet case, where the original hard-constrained PINN failed to converge due to complex boundary enforcement.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.