Abstract The fixed-wall rectangular cavity flow problem is a classic problem that has been studied since the beginning of computational fluid mechanics. The present work aims to provide a numerical and computational solution of the Navier-Stokes equations using the finite difference method, applied to model the problem of a magnetorheological fluid in a rectangular cavity with a fixed wall in shock absorbers devices, used in civil structures that use energy dissipators.