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 PINN (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. We use AD at complex boundaries and FDM in other domains. To avoid the background mesh, we propose HFD-PINN-sdf, which uses the signed distance function (sdf) to avoid the difference scheme from crossing the domain boundary. In this paper, we demonstrate the performance and compare the results with different numbers of collocation points and architectures for the Poisson equation and Burgers equation. We also chose several different finite-difference schemes, including the compact finite-difference and Crank–Nicolson methods, 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. In summary, HFD-PINN is more instructive and efficient when solving PDEs in complex geometries.
Read full abstract