MHD simulations of the magnetosheath