This post is part of the CFDPython series that shows how to solve the Navier Stokes equations with finite difference method by use of Python. This is the last step to the small solver we want to create. The Poisson equation is actually the Laplace equation to which we add a source term to the right hand side:
To better understand how this appears, we must return at the Navier Stokes equations; for a incompressible fluid we must resolve the continuity and the momentum equations; the continuity equation creates a kinematic constraint which implies that div(U) should be zero everywhere in the domain and is not coupled with the pressure; that is why we cannot use the continuity directly in the developing a solving procedure.
∂2p∂x2+∂2p∂y2=b
![]() |
| 2D Poisson equation solve for 4 source terms |

