[Paper Review] Hybrid Finite Difference with the Physics-informed Neural Network for solving PDE in complex geometries
This paper proposes HFD-PINN, a hybrid method combining finite difference method (FDM) with physics-informed neural networks (PINN) to improve accuracy and efficiency in solving PDEs on complex geometries. By replacing automatic differentiation with local FDM in regular domains while retaining AD at complex boundaries, and introducing HFD-PINN-sdf with signed distance functions to avoid mesh generation, the method achieves up to 40× lower prediction error than standard AD-PINN on irregular domains.
The physics-informed neural network (PINN) is effective in solving the partial differential equation (PDE) by capturing the physics constraints as a part of the training loss function through the Automatic Differentiation (AD). This study proposes the hybrid finite difference with the physics-informed neural network (HFD-PINN) to fully use the domain knowledge. The main idea is to use the finite difference method (FDM) locally instead of AD in the framework of PINN. In particular, we use AD at complex boundaries and the FDM in other domains. The hybrid learning model shows promising results in experiments. To use the FDM locally in the complex boundary domain and avoid the generation of background mesh, we propose the HFD-PINN-sdf method, which locally uses the finite difference scheme at random points. In addition, the signed distance function is used to avoid the difference scheme from crossing the domain boundary. In this paper, we demonstrate the performance of our proposed methods and compare the results with the different number of collocation points for the Poisson equation, Burgers equation. We also chose several different finite difference schemes, including the compact finite difference method (CDM) and crank-nicolson method (CNM), to verify the robustness of HFD-PINN. We take the heat conduction problem and the heat transfer problem on the irregular domain as examples to demonstrate the efficacy of our framework. In summary, HFD-PINN, especially HFD-PINN-sdf, are more instructive and efficient, significantly when solving PDEs in complex geometries.
Motivation & Objective
- To address the limitations of standard PINN in solving PDEs on complex or irregular geometries.
- To reduce reliance on automatic differentiation (AD) in regions where it introduces numerical instability or inaccuracy.
- To eliminate the need for background mesh generation in complex domains by using a mesh-free finite difference approach.
- To enhance solution accuracy and training stability through hybrid use of FDM and PINN in different spatial regions.
- To validate the method’s robustness across varying numbers of collocation points and different PDE types.
Proposed method
- The HFD-PINN framework replaces automatic differentiation with local finite difference schemes in regular domains, while preserving AD at complex boundaries.
- The HFD-PINN-sdf variant uses a signed distance function to define local stencils at random collocation points, avoiding domain boundary crossing.
- Finite difference stencils are applied adaptively at each point using the signed distance function to ensure accuracy near irregular boundaries.
- The method integrates PDE residuals, initial, and boundary conditions into a loss function, with FDM used to compute derivatives in the residual.
- Multiple finite difference schemes—such as compact finite difference method (CDM) and Crank-Nicolson method (CNM)—are evaluated for robustness.
- The framework uses a fully connected deep neural network with hyperbolic tangent activation, trained via Adam optimizer with 10,000 iterations.
Experimental results
Research questions
- RQ1Can replacing automatic differentiation with finite differences in regular domains improve the accuracy of PINN for PDEs on complex geometries?
- RQ2How does the use of a signed distance function enable mesh-free finite difference approximation without boundary crossing?
- RQ3What is the impact of different finite difference schemes (e.g., CDM, CNM) on the convergence and stability of the hybrid HFD-PINN?
- RQ4How does the number of collocation points affect the performance of HFD-PINN and HFD-PINN-sdf?
- RQ5Can HFD-PINN-sdf outperform standard AD-PINN in solving PDEs on highly irregular domains?
Key findings
- HFD-PINN-sdf reduced the relative L2 prediction error to 0.013 on a two-dimensional Poisson equation with a star-shaped domain, significantly outperforming AD-PINN.
- The prediction accuracy of HFD-PINN-sdf was more than 40 times better than AD-PINN in the irregular domain test case.
- The loss function of HFD-PINN-sdf converged more stably than AD-PINN, with lower boundary and domain errors as shown in loss evolution plots.
- The method effectively handled sharp irregular boundaries and corner regions, as demonstrated in heat conduction and heat transfer problems with center and corner holes.
- The use of signed distance functions enabled accurate local finite difference stencils without requiring background mesh generation.
- The framework showed robustness across different PDE types (Poisson, Burgers) and varying numbers of collocation points.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.