Hostname: page-component-77c78cf97d-bzm8f Total loading time: 0 Render date: 2026-04-24T07:06:11.685Z Has data issue: false hasContentIssue false

Poisson CNN: Convolutional neural networks for the solution of the Poisson equation on a Cartesian mesh

Published online by Cambridge University Press:  29 June 2021

Ali Girayhan Özbay*
Affiliation:
Department of Aeronautics, Imperial College London, South Kensington Campus, London, United Kingdom
Arash Hamzehloo
Affiliation:
Department of Aeronautics, Imperial College London, South Kensington Campus, London, United Kingdom
Sylvain Laizet
Affiliation:
Department of Aeronautics, Imperial College London, South Kensington Campus, London, United Kingdom
Panagiotis Tzirakis
Affiliation:
Department of Computing, Imperial College London, South Kensington Campus, London, United Kingdom
Georgios Rizos
Affiliation:
Department of Computing, Imperial College London, South Kensington Campus, London, United Kingdom
Björn Schuller
Affiliation:
Department of Computing, Imperial College London, South Kensington Campus, London, United Kingdom
*
*Corresponding author. E-mail: aligirayhan.ozbay14@imperial.ac.uk

Abstract

The Poisson equation is commonly encountered in engineering, for instance, in computational fluid dynamics (CFD) where it is needed to compute corrections to the pressure field to ensure the incompressibility of the velocity field. In the present work, we propose a novel fully convolutional neural network (CNN) architecture to infer the solution of the Poisson equation on a 2D Cartesian grid with different resolutions given the right-hand side term, arbitrary boundary conditions, and grid parameters. It provides unprecedented versatility for a CNN approach dealing with partial differential equations. The boundary conditions are handled using a novel approach by decomposing the original Poisson problem into a homogeneous Poisson problem plus four inhomogeneous Laplace subproblems. The model is trained using a novel loss function approximating the continuous $ {L}^p $ norm between the prediction and the target. Even when predicting on grids denser than previously encountered, our model demonstrates encouraging capacity to reproduce the correct solution profile. The proposed model, which outperforms well-known neural network models, can be included in a CFD solver to help with solving the Poisson equation. Analytical test cases indicate that our CNN architecture is capable of predicting the correct solution of a Poisson problem with mean percentage errors below 10%, an improvement by comparison to the first step of conventional iterative methods. Predictions from our model, used as the initial guess to iterative algorithms like Multigrid, can reduce the root mean square error after a single iteration by more than 90% compared to a zero initial guess.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution, and reproduction in any medium, provided the original work is properly cited.
Open Practices
Open materials
Copyright
© The Author(s), 2021. Published by Cambridge University Press
Figure 0

Figure 1. High-level diagram of Poisson convolutional neural network (CNN). Variable names in parentheses in each block indicate the shape of the output of the block.

Figure 1

Figure 2. Homogeneous Poisson neural network (NN) diagram. Variable names in parentheses in each block indicate the shape of the output of the block. Variables named “HP*” are hyperparameters.

Figure 2

Figure 3. Dirichlet boundary condition neural network (NN) diagram. Variable names in parentheses in each block indicate the shape of the output of the block. Variables named “HP*” are hyperparameters.

Figure 3

Table 1. Details of the number of samples used to train each submodel.

Figure 4

Table 2. Summary of the number of parameters.

Figure 5

Table 3. Summary of the results presented in this section, plus averaged figures for larger numbers of examples for each case where applicable.

Figure 6

Figure 4. Performance of the homogeneous Poisson neural network (HPNN) model on an example with grid size $ 365\times 365 $ and $ \Delta =1.81\times {10}^{-2} $. The HPNN submodel performs well, producing a prediction within 10% of the target for over half of the grid points.

Figure 7

Figure 5. Performance of the homogeneous Poisson neural network (HPNN) model on an example with grid size $ 384\times 192 $ and $ \Delta =3.47\times {10}^{-2} $. The HPNN submodel can handle a variety of different aspect ratios well, including in this case where it predicts values within 10% of the target for almost three-quarters of the grid points.

Figure 8

Figure 6. Performance of the Dirichlet boundary condition neural network (DBCNN) model on an example generated in the same manner as its training data, with a grid size of $ 384\times 384 $ and $ \Delta =2.63\times {10}^{-2} $. The DBCNN submodel replicates the hyperbolic sine solution profile successfully.

Figure 9

Figure 7. Performance of the Dirichlet boundary condition neural network (DBCNN) model on an example generated in the same manner as its training data, with a grid size of $ 382\times 197 $ and $ \Delta =1.59\times {10}^{-2} $. Similar to the homogeneous Poisson neural network (HPNN), the DBCNN can handle different aspect ratios effectively, replicating the solution profile properly.

Figure 10

Figure 8. Performance of the Poisson convolutional neural network (CNN) model on an example with grid size $ 263\times 311 $ and $ \Delta =4.91\times {10}^{-2} $. The components predicted by the submodels reconstruct the solution accurately, demonstrating the flexibility of the decomposition.

Figure 11

Figure 9. Prediction of the homogeneous Poisson neural network (HPNN) submodel on the Taylor–Green vortex (TGV) case, compared to multigrid. Although the problem is materially dissimilar to the training set, the HPNN submodel performs in line with the 600 example average in Table 3.

Figure 12

Figure 10. Prediction of the Dirichlet boundary condition neural network (DBCNN) submodel on the Taylor–Green vortex (TGV) case, compared to multigrid. The DBCNN submodel performs well in this test case, marginally better than the 600 example average in Table 3, although mild artefacting is visible near the corners.

Figure 13

Figure 11. Prediction of the full model on the Taylor–Green vortex (TGV) case. Overall, the Poisson convolutional neural network (CNN) exhibits good performance only slightly behind the performance shown on the problems similar to the ones encountered in the dataset, highlighting the generalization performance of the model.

Figure 14

Figure 12. Root mean square (RMS) error model output w.r.t. the analytical solution versus grid density for the Taylor–Green vortex (TGV) case. Interval of grid sizes encountered in training is marked by red lines. Yellow dot indicates the results presented in Section 8.2.

Figure 15

Figure 13. Poisson convolutional neural network (CNN) predictions on $ 120\times 120 $ (left), $ 500\times 500 $ (middle) and $ 750\times 750 $ (right) grids for the Taylor–Green vortex (TGV) case. Although the model does not perform well for grids smaller than those seen during training, its predictive ability diminishes only gradually for larger grids.

Figure 16

Figure 14. Comparison of the model’s performance versus multigrid with a single cycle, with five Jacobi post-smoothing iterations applied to each. The Poisson convolutional neural network (CNN) prediction clearly outperforms the single-cycle multigrid prediction.

Figure 17

Figure 15. Root mean square (RMS) error comparison for multigrid iterations with zero, single cycle multigrid and Poisson convolutional neural network (CNN) prediction initial guesses on the Taylor–Green vortex (TGV) snapshot case. Red lines indicate the grid parameter range seen by the model during training.

Figure 18

Figure 16. Raw Neumann boundary condition (BC) homogeneous Poisson neural network (HPNN) prediction (left), Poisson convolutional neural network (CNN) prediction with one traditional solver iteration (middle) and ground truth solution (right) of the Taylor–Green vortex (TGV) simulation at $ t=1.0 $ (time step 637). The raw HPNN prediction displays artefacting near the edges and overshoot at local extrema, however, a single traditional solver iteration aids it to achieve a high degree of accuracy.

Figure 19

Table 4. $ {L}_2 $ error norms for the velocities $ \left(u,v\right) $ and the pressure $ p $ at the end of the Navier–Stokes simulation ($ t=1.0 $).

Figure 20

Table 5. Percentage change to the validation MSE and inference speed of the Poisson CNN when key model architecture features are removed.

Figure 21

Table 6. Wall clock runtimes of the multigrid solver versus the DBCNN, HPNN, and Poisson CNN models (in seconds).

Figure 22

Figure 17. Prediction of a homogeneous Poisson neural network (NN) model on an example with grid size $ 384\times 96 $ and $ \Delta =2.64\times {10}^{-2} $. As shown, when trained on an appropriate dataset, the model architecture is capable of handling aspect ratios well above the results in Section 8.

Figure 23

Figure 18. Prediction of a homogeneous Poisson neural network (NN) model on an example with grid size $ 96\times 384 $ and $ \Delta =3.26\times {10}^{-2} $. The same model can handle domains that have low aspect ratios as well as those with large ones.

Submit a response

Comments

No Comments have been published for this article.