Abstract
The flow of viscous fluid between two parallel plates is investigated. The applications of the magnetic field effect have been considered in the vertical direction to the plates. Velocity has been presented in the presence of suction and injection. The temperature equation is assisted with the Joule heating effect. One of the numerical techniques, that is, finite difference approach has been used to tackle the given partial differential system. This method results in a system of simple algebraic equations. The unknown function is analyzed inside the domain. In this technique of solution, a system is subdivided into many smaller parts called finite elements. The obtained simpler algebraic equations are then assembled to form a system of equation which governs the original problem. The variational method is used to get an approximate solution by reducing the error function. The effects of pertinent variables on temperature and velocity are shown graphically in the discussion section. The obtained results show that the velocity decreases with magnetic and porosity parameters. Temperature increases for larger values of Hartmann and Eckert numbers.