# Calculating the magnetic flux density in cylandrical coordinates near a neodymium disc magnet

I am looking for an analysis of a disc magnet, I have heard there are 2D analaysis and 3D. Could someone point me in the right direction of a paper or some academic text on the matter.

I don't mind if the solutions are Cartesian, cylindrical or spherical.

I have seen solutions to solving for the $Z$ axis (the axis of magnetisation).

$B = \frac{M}{2}(\frac{h + z}{\sqrt{r^2 + (h + z)^2}} - \frac{z}{\sqrt{r^2 + z^2}})$

Where $B$ is the magnetic flux density at axial distance $z$ from the centre of the magnet, $h$ is the height of the disc, $r$ is the radius of the magnet and $M$ is the remanence field (units in flux-density).

I understand if the only practical solve is a finite element synthesis but an indication of this would be nice.