I am trying to simulate the magnetic flux density in 3D space. I can get B by following model which is a dipole's contribution to the magnetic field at a point.
However, the strength of B is wrong when i test a point inside the magnet. Whats the strength of the field within a magnet? Is there any model to calculate the B-field inside a magnet?