## 1. Introduction

Due to the increasing importance in processing industries and elsewhere when materials whose flow behavior cannot be characterized by Newtonian relationships, a new stage in the evolution of fluid dynamics theory is in progress. An intensive effort, both theoretical and experimental, has been devoted to problems of non-Newtonian fluids. The study of MHD flow of viscoelastic fluids over a continuously moving surface has wide range of applications in technological and manufacturing processes in industries. This concerns the production of synthetic sheets, aerodynamic extrusion of plastic sheets, cooling of metallic plates, etc.

(Crane, 1970) considered the laminar boundary layer flow of a Newtonian fluid caused by a flat elastic sheet whose velocity varies linearly with the distance from the fixed point of the sheet. (Chang, 1989; Rajagopal et al., 1984) presented an analysis on flow of viscoelastic fluid over stretching sheet. Heat transfer cases of these studies have been considered by (Dandapat & Gupta, 1989, Vajravelu & Rollins, 1991), while flow of viscoelastic fluid over a stretching surface under the influence of uniform magnetic field has been investigated by (Andersson, 1992).

Thereafter, a series of studies on heat transfer effects on viscoelastic fluid have been made by many authors under different physical situations including (Abel et al., 2002, Bhattacharya et al., 1998, Datti et al., 2004, Idrees & Abel, 1996, Lawrence & Rao, 1992, Prasad et al., 2000, 2002). (Khan & Sanjayanand, 2005) have derived similarity solution of viscoelastic boundary layer flow and heat transfer over an exponential stretching surface.

(Cortell, 2006) have studied flow and heat transfer of a viscoelastic fluid over stretching surface considering both constant sheet temperature and prescribed sheet temperature. (Abel et al., 2007) carried out a study of viscoelastic boundary layer flow and heat transfer over a stretching surface in the presence of non-uniform heat source and viscous dissipation considering prescribed surface temperature and prescribed surface heat flux.

(Khan, 2006) studied the case of the boundary layer problem on heat transfer in a viscoelastic boundary layer fluid flow over a non-isothermal porous sheet, taking into account the effect a continuous suction/blowing of the fluid, through the porous boundary. The effects of a transverse magnetic field and electric field on momentum and heat transfer characteristics in viscoelastic fluid over a stretching sheet taking into account viscous dissipation and ohmic dissipation is presented by (Abel et al., 2008). (Hsiao, 2007) studied the conjugate heat transfer of mixed convection in the presence of radiative and viscous dissipation in viscoelastic fluid past a stretching sheet. The case of unsteady magnetohydrodynamic was carried out by (Abbas et al., 2008). Using Kummer’s funcions, (Singh, 2008) carried out the study of heat source and radiation effects on magnetohydrodynamics flow of a viscoelastic fluid past a stretching sheet with prescribed power law surface heat flux. The effects of non-uniform heat source, viscous dissipation and thermal radiation on the flow and heat transfer in a viscoelastic fluid over a stretching surface was considered in (Prasad et al., 2010). The case of the heat transfer in magnetohydrodynamics flow of viscoelastic fluids over stretching sheet in the case of variable thermal conductivity and in the presence of non-uniform heat source and radiation is reported in (Abel & Mahesha, 2008). Using the homotopy analysis, (Hayat et al., 2008) looked at the hydrodynamic of three dimensional flow of viscoelastic fluid over a stretching surface. The investigation of biomagnetic flow of a non-Newtonian viscoelastic fluid over a stretching sheet under the influence of an applied magnetic field is done by (Misra & Shit, 2009). (Subhas et al., 2009) analysed the momentum and heat transfer characteristics in a hydromagnetic flow of viscoelastic liquid over a stretching sheet with non-uniform heat source. (Nandeppanavar et al., 2010) analysed the flow and heat transfer characteristics in a viscoelastic fluid flow in porous medium over a stretching surface with surface prescribed temperature and surface prescribed heat flux and including the effects of viscous dissipation. (Chen, 2010) studied the magneto-hydrodynamic flow and heat transfer characteristics viscoelastic fluid past a stretching surface, taking into account the effects of Joule and viscous dissipation, internal heat generation/absorption, work done due to deformation and thermal radiation. (Nandeppanavar et al., 2011) considered the heat transfer in viscoelastic boundary layer flow over a stretching sheet with thermal radiation and non-uniform heat source/sink in the presence of a magnetic field

Although the forgoing research works have covered a wide range of problems involving the flow and heat transfer of viscoelastic fluid over stretching surface they have been restricted, from thermodynamic point of view, to only the first law analysis. The contemporary trend in the field of heat transfer and thermal design is the second law of thermodynamics analysis and its related concept of entropy generation minimization.

Entropy generation is closely associated with thermodynamic irreversibility, which is encountered in all heat transfer processes. Different sources are responsible for generation of entropy such as heat transfer and viscous dissipation (Bejan, 1979, 1982). The analysis of entropy generation rate in a circular duct with imposed heat flux at the wall and its extension to determine the optimum Reynolds number as function of the Prandtl number and the duty parameter were presented by (Bejan, 1979, 1996). (Sahin, 1998) introduced the second law analysis to a viscous fluid in circular duct with isothermal boundary conditions.

In another paper, (Sahin, 1999) presented the effect of variable viscosity on entropy generation rate for heated circular duct. A comparative study of entropy generation rate inside duct of different shapes and the determination of the optimum duct shape subjected to isothermal boundary condition were done by (Sahin, 1998). (Narusawa, 1998) gave an analytical and numerical analysis of the second law for flow and heat transfer inside a rectangular duct. In a more recent paper, (Mahmud & Fraser, 2002a, 2002b, 2003) applied the second law analysis to fundamental convective heat transfer problems and to non-Newtonian fluid flow through channel made of two parallel plates. The study of entropy generation in a falling liquid film along an inclined heated plate was carried out by (Saouli & Aïboud-Saouli, 2004). As far as the effect of a magnetic field on the entropy generation is concerned, (Mahmud et al., 2003) studied the case of mixed convection in a channel. The effects of magnetic field and viscous dissipation on entropy generation in a falling film and channel were studied by (Aïboud-saouli et al., 2006, 2007). The application of the second law analysis of thermodynamics to viscoelastic magnetohydrodynamic flow over a stretching surface was carried out by (Aïboud & Saouli 2010a, 2010b).

The objective of this paper is to study the entropy generation in viscoelastic fluid over a stretching sheet with prescribed surface temperature in the presence of uniform transverse magnetic field.

## 2. Formulation of the problem

In two-dimensional Cartesian coordinate system

Under the usual boundary layer approximations, the flow is governed by the following equations:

The constant

The boundary conditions are given by

The heat transfer governing boundary layer equation with temperature-dependent heat generation (absorption) is

The relevant boundary conditions are

## 3. Analytical solution

The equation of continuity is satisfied if we choose a dimensionless stream function

Introducing the similarity transformations

Momentum equation (2) becomes

where

Now let us seek a solution of Eq. (8) in the form

which is satisfied by the following boundary conditions:

On substituting (9) into (8) and using boundary conditions (12) and (13) the velocity components take the form

Where

Defining the dimensionless temperature

and using (11), (14), (15), Eq. (17) and the boundary conditions (6) and (7) can be written as

Where

Introducing the variable

And inserting (21) in (18) we obtain

And (19) and (20) transform to

The solution of Eq. (22) satisfying (23) and (24) is given by

The solution of (25) in terms of

where

## 4. Second law analysis

According to (Woods, 1975), the local volumetric rate of entropy generation in the presence of a magnetic field is given by

Eq. (27) clearly shows contributions of three sources of entropy generation. The first term on the right-hand side of Eq. (27) is the entropy generation due to heat transfer across a finite temperature difference; the second term is the local entropy generation due to viscous dissipation, whereas the third term is the local entropy generation due to the effect of the magnetic field. It is appropriate to define dimensionless number for entropy generation rate

therefore, the entropy generation number is

using Eq. (11), (26) and (27), the entropy generation number is given by

where

## 5. Results and discussion

The flow and heat transfer in a viscoelastic fluid under the influence of a transverse uniform magnetic field has been solved analytically using Kummer’s functions and analytic expressions of the velocity and temperature have been used to compute the entropy generation. Figs. 1 and 2 show the variations of the longitudinal velocity

The effects of the viscoelastic parameter

Fig. 5 depicts the temperature profiles

The temperature profiles

The influence of the magnetic parameter

fixed value of

Fig. 9 illustrates the effect of the Prandtl number

The influence of the Reynolds number

The effect of the dimensionless group parameter

The effect of the Hartman number

## 6. Conclusion

The velocity and temperature profiles are obtained analytically and used to compute the entropy generation number in viscoelastic magnetohydrodynamic flow over a stretching surface

The effects of the magnetic parameter and the viscoelastic parameter on the longitudinal and transverse velocities are discussed. The influences of the Prandtl number, the magnetic parameter and the heat source/sink parameter on the temperature profiles are presented. As far as the entropy generation number is concerned, its dependence on the magnetic parameter, the Prandlt, the Reynolds, the Hartmann numbers and the dimensionless group are illustrated and analyzed.

From the results the following conclusions could be drawn:

The velocities depend strongly on the magnetic and the viscoelastic parameters.

The temperature varies significantly with the Prandlt number, the magnetic parameter and the heat source/sink parameter.

The entropy generation increases with the increase of the Prandlt, the Reynolds, the Hartmann numbers and also with the magnetic parameter and the dimensionless group.

The surface acts as a strong source of irreversibility.

## 7. Nomenclature

^{-2}^{-1}.K^{-1}^{-1}.K^{-1}^{2}^{-3}.K^{-1} ^{-3}.K^{-1} ^{-3}.K^{-1}^{-1}^{-1}^{-1}^{-1}^{-1}^{-1}.s^{-1}^{2}.s^{-1}^{-3}^{-1}.m^{-1}* subscripts*P plate