I need an algorithm to solve Poisson's equation for gravitational potential.
$$ \nabla^2\phi = 4\pi G\rho $$ where, $\phi$ is Gravitational Potential.
I am trying PDE for the first time so, I need a numerical method with its proper algorithm to solve this in $x-y$ plane. Could anyone help me with itP