A numerical study of natural convection in the horizontal bridgman configuration under an external magnetic field