Effect of magnetic field on thermal convection and nanofluid in cavity flows higher order numerical study