Three dimensional mesoscopic simulation of magnetic field effect on natural convection of nanofluid