Introduction

Nano-fluids are basically in the form of dispersing solid nanometer-sized particles in fluids such as water, oil or ethylene glycol. These nanoparticles are typically made of metals, oxides and carbon nanotubes. The nanoparticles are also used for biomedical applications, such as magnetic resonance imaging, photothermal therapy, controlled drug delivery, protein separation, biosensors, DNA detection and immunosensors [1]. The nanofluids are responsible for the increase of thermal conductivity and thereby heat transfer. An innovative technique, which uses a mixture of nanoparticles and base fluid, was first introduced by Choi [2] with an aim to enhance the heat transfer by means of increasing thermal conductivity of fluids. Later on, Boungiorno [3] explored the reasons behind the enhancement of heat transfer of nanofluids and concluded that Brownian diffusion and thermophoresis are responsible for this enhancement. On the basis of this principle, Kuznetsov and Nield [4] and Nield and Kuznetsove [5] have developed the double diffusive natural convective boundary layer flow of a nanofluid past over a flat plate. Influence of stratification is an important aspect in heat and mass transfer analysis. The formation or deposition of the layers is known as the stratification. This phenomenon occurs due to the change in temperature or concentration, or variations in both, or presence of various fluids. In this regard, Hayat et al. [6, 7] have examined the thermal stratification effects in the mixed convection flow of Maxwell as well as Jeffrey fluid over a stretching surface and provided analytical solution via homotopy analysis method. Malvandi and Ganji [8] investigated the effects of nanoparticle migration on force convective flow of alumina/water nanofluid and heat transfer in a cooled parallel-plate channel in the presence of heat generation. Recently, the study of boundary layer flow of nanofluids over a stretching sheet has become the great interest to the researchers because of various technical processes involved in the production of stretching materials. These materials needs either heating or cooling for increasing the quality of final products. Crane [9] first studied the boundary layer flow over a stretching sheet, which moves with a velocity varying linearly with a distance from a fixed point. Gupta and Gupta [10] carried out the heat and mass transfer effects on the boundary layer flow of a viscous fluid over a stretching sheet subject to suction or blowing. Khan and Pop [11] have investigated the steady boundary layer flow and heat transfer in nanofluids over a stretching surface by considering the nanoparticle volume fraction. They observed that the local Nusselt number and local Sherwood number are completly depends on the effects of Lewise number, Brownian motion number and thermophoresis number. Makinde and Aziz [12] studied the effect of convective boundary layer flow and heat transfer and nanoparticle volume fraction over a stretching surface in nanofluid. Malvandi and Ganji [13] carried out the mixed convective heat transfer of water/alumina nanofluid inside a vertical microchannel by employing modified Buongiorno’s model. Further, Malvandi and Ganji [14] numerically investigated the laminar flow and convective heat transfer of alumina/water nanofluid inside a circular microchannel in the presence of a uniform magnetic field.

Hassani et al. [15] carried out analytical solution via HAM for the problem of boundary layer flow of a nanofluid past over a linear stretching sheet. They have only considered the effects of Brownian motion and thermophoresis. At the same time Rana and Bhargava [16] presented numerical solution using variational finite element method for the boundary layer flow and heat transfer of a nanofluid over a nonlinearly stretching sheet. They assumed that the sheet is being stretched as the nth power of the distance from the origin. Malvandi et al. [17] have investigated the steady two-dimensional stagnation point flow and heat transfer of a nanofluid over a porous stretching sheet by taking into account the effects of Brownian motion and thermophoresis diffusion of nanoparticles. In a separate study, Malvandi et al. [18] have also solved same problem by considering non-linear stretching sheet without porous effect. Loganthan and Vimala [19] dealt with the combined influence of MHD, suction and radiation on the forced convection boundary layer flow of a nanofluid over an exponentially stretching sheet embedded in a thermally stratified medium. However all the above mentioned studies are restricted in the Newtonian fluid model. These studies are not examined the effects of viscoelasticity of the nanofluid as well as the effect of magnetic field. But the study of magnetohydrodynamic (MHD) flow of an electrically conducting nanofluid is of considerable interest in modern metallurgical and metal-working process lies in the purification of molten metals.

Again the non-newtonian fluids are commonly useful in the process of manufacturing coated sheets, foods, plastic polymers, blood etc. Although several studies [2023] are available, who considered different kinds of non-Newtonian fluid models. But these studies are not examined through nanofluid models. However, Cheng [24] studied the free convective heat transfer over a truncated cone embedded in a porous medium saturated by a non-Newtonian power-law nanofluid with constant wall temperature and nanoparticle volume fraction without applying magnetic field. Hedayati and Domiarry [25] and Hedayati et al. [26] studied the effects of nanoparticle migration on different nanofluids by employing the hypothesis that the Brownian motion and the thermophoresis are the only responsible mechanisms for nanoparticle migration. Moreover Goyal and Bhargava [27, 28] examined the effect of velocity slip condition on the flow and heat transfer of a non-Newtonian viscoelastic nanofluid over a stretching sheet in the presence of applied magnetic field. But their studies are restricted in the consideration of the effects of viscous dissipation and buoyancy force.

Recently, Bhattacharyya and Layek [29] put forwarded a Newtonian model for the steady boundary layer flow of a nanofluid over a permeable stretching sheet in the presence of magnetic field. They pointed out that magnetic field has significant effect on enhancing heat transfer rate. The other studies [30, 31] who have considered the effect of magnetic field on the boundary layer flow of nanofluid but restricted in the consideration of non-Newtonian nanofluid model.

This paper aims to study the viscoelastic nanofluid flow and heat transfer over a linearly stretching sheet in the presence of externally applied magnetic field. The effects of Brownian motion and thermophoretic volume fraction of nanoparticles are taken into account. The problem is solved numerically by using finite difference scheme along with the Newton’s linearization technique. The effects of various values of the non-dimensional parameters are examined on the velocity and thermal boundary layers as well as on the heat transfer rate in terms of Nusselt number.

Flow Analysis

Let us consider the steady two-dimensional boundary-layer flow of an incompressible homogeneous, electrically conducting viscoelastic nanofluid past over an isothermal stretching sheet. The flow is assumed to be in the x-direction, which is taken along the sheet and the y-axis is normal to it. Two equal and opposite forces are introduced along the x-axis, so that the sheet is stretched linearly with a velocity proportional to the distance from the fixed origin. The flow of nanofluid takes place in the region \(y>0\) obeying Walters liquid \(B'\) fluid model under the action of an externally applied magnetic field. The magnetic field of uniform strength \(B_0\) is applied perpendicular to the sheet. Since there is no external applied electric field and the assumption of the low magnetic Reynolds number, the induced electric field as well as induced magnetic field have been neglected from the present study. The effects of Brownian motion and the thermophoresis of nanoparticles are incorporated in the present model.

Employing Oberbeck–Boussinesq approximations, the governing equations of conservation of mass, momentum, thermal and nanoparticle volume fraction in the boundary layer are taken as (cf. Nield and Kuznetsov [22] and Kuznetsov and Nield [23])

$$\begin{aligned}&\displaystyle \frac{\partial u}{\partial x} + \frac{\partial v}{\partial y} =0,\end{aligned}$$
(1)
$$\begin{aligned}&\displaystyle \left( u\frac{\partial u}{\partial x}+v\frac{\partial u}{\partial y}\right) = \nu _{f}\frac{\partial ^2 u}{\partial y^2}-\frac{k_0}{\rho _{f}}\left\{ u \frac{\partial ^3 u}{\partial x \partial y^2}+v\frac{\partial ^3 u}{\partial y^3}-\frac{\partial u}{\partial y}\frac{\partial ^2 u}{\partial x \partial y} +\frac{\partial u}{\partial x}\frac{\partial ^2 u}{\partial y^2}\right\} \nonumber \\&\displaystyle \qquad +g\beta _t \left( T-T_\infty \right) + g\beta _n \left( N-N_\infty \right) -\frac{\sigma B_0^2}{\rho _{f}} u, \end{aligned}$$
(2)
$$\begin{aligned}&\displaystyle \left( u\frac{\partial T}{\partial x}+v\frac{\partial T}{\partial y}\right) ={\alpha }\frac{\partial ^2 T}{\partial y^2}+\frac{(\rho c)_p}{(\rho c)_f} \left[ D_{B}\frac{\partial N}{\partial y}\frac{\partial T}{\partial y}+\left( \frac{D_{T}}{T_{\infty }}\right) \left( \frac{\partial T}{\partial y}\right) ^2 \right] +\frac{\mu _{f}}{(\rho c)_{f}} \left( \frac{\partial u}{\partial y}\right) ^2, \end{aligned}$$
(3)
$$\begin{aligned}&\displaystyle u\frac{\partial N}{\partial x}+v\frac{\partial N}{\partial y}=D_{B} \frac{\partial ^2 N}{\partial y^2} + \left( \frac{D_{T}}{T_{\infty }} \right) \frac{\partial ^2 T}{\partial y^2}, \end{aligned}$$
(4)

where u and v are the velocity components in the \(x-\) and \(y-\)directions respectively, T be the temperature, N the nanoparticle volume fraction, \(\nu _f\) and \(\rho _{f}\) be the coefficient of kinematics viscosity and density of the base fluid, g be the acceleration due to gravity, \(k_0\) the coefficient of viscoelasticity, \(\beta _t\) and \(\beta _n\) be the thermal expansion coefficient and expansion coefficient of nanoparticle volume fraction, \(\sigma \) the electrical conductivity of the nanofluid, \(T_\infty \) and \(N_\infty \) be the ambient temperature and nanoparticle volume fraction far away from the sheet, \(\alpha \) is the thermal diffusivity, \((\rho c)_p\) the effective heat capacity of nanoparticle, \((\rho c)_f\) the effective heat capacity of the base fluid, \(D_{B}\) is the Brownian diffusion coefficient and \(D_{T}\) is the thermophoresis diffusion coefficient.

The boundary conditions for the present problem are taken as

$$\begin{aligned} u=U_w=bx,~~ v=0,~~ T=T_w,~~ N=N_w~~ at ~~y=0, \end{aligned}$$
(5)

and

$$\begin{aligned} u \rightarrow 0,~~ T \rightarrow T_\infty , ~~ N \rightarrow N_\infty ~~as ~~ y \rightarrow \infty , \end{aligned}$$
(6)

where \(T_w\) and \(N_w\) be the temperature and nanoparticle volume fraction at the sheet. In the above, \(U_w\) be the velocity at the sheet with \(b ~(>0)\) denotes the constant stretching rate.

Now we express the following non-dimensional variables by defining,

$$\begin{aligned} \psi =\sqrt{b\nu _f} x f(\eta ); ~~\eta =\sqrt{\frac{b}{\nu _f}}y; ~~\theta (\eta ) =\frac{T-T_\infty }{T_w-T_\infty }; ~~\phi (\eta ) =\frac{N-N_\infty }{N_w-N_\infty } \end{aligned}$$
(7)

where \(\psi \) is a dimensional stream function defined by \(u=\frac{\partial \psi }{\partial y}\) and \(v=- \frac{\partial \psi }{\partial x}\), f is a dimensionless stream function, \(\eta \) be the similarity space variable, \(\theta \) and \(\phi \) are the dimensionless temperature and nanoparticle volume fraction respectively. Using these dimensionless variables, the velocity components in non-dimensional form can be expressed as

$$\begin{aligned} u=bxf'(\eta ), ~~ v=- \sqrt{b\nu _f}f(\eta ). \end{aligned}$$

The continuity Eq. (1) is satisfied by u and v automatically.

Substituting the dimensionless variables defined in (7) into the Eqs. (2)–(4) yield

$$\begin{aligned}&\displaystyle f''' + ff'' -f'^2 - K_1 \left[ 2f'f''' -ff^{iv} -f''^2\right] + \left( \lambda _{t} \theta + \lambda _{n} \phi \right) -M f'= 0,\end{aligned}$$
(8)
$$\begin{aligned}&\displaystyle \theta '' +Pr(f\theta ' +N_b\theta '\phi ' + N_t\theta '^2 +Ec f''^2) =0,\end{aligned}$$
(9)
$$\begin{aligned}&\displaystyle \phi '' +Lef\phi ' +\frac{N_t}{N_b}\theta ''=0. \end{aligned}$$
(10)

Similarly, the boundary conditions (5) and (6) reduce to

$$\begin{aligned} f'(\eta ) =1,~~ f(\eta ) =0,~~ \theta (\eta ) =1,~~ \phi (\eta ) =1~~ at ~~ \eta =0, \end{aligned}$$
(11)

and

$$\begin{aligned} f'(\eta ) \rightarrow 0, ~~\theta (\eta ) \rightarrow 0, ~~\phi (\eta )\rightarrow 0 ~~ as ~~ \eta \rightarrow \infty , \end{aligned}$$
(12)

where primes denotes differentiation with respect to \(\eta \) only.

The dimensionless parameters that appear in Eqs. (8)–(10) are defined as \(M=\frac{\sigma B^2_{0}}{b \rho _{f}}\) the magnetic parameter, \(K_1 = \frac{k_0b}{\rho _{f}\nu _{f}}\) the viscoelastic parameter, \(N_{t} = \frac{(\rho c)_p}{(\rho c)_f} \frac{D_T}{T_\infty }\frac{(T_w-T_{\infty })}{\nu _f} \) the thermophoresis parameter, \(N_{b} = \frac{(\rho c)_p}{(\rho c)_f}\frac{D_{B}(N_w-N_{\infty })}{\nu _f} \) the Brownian motion parameter, \(P_r = \frac{\nu _f}{\alpha } \) the Prandtl number, \(E_c = \frac{U_w^2}{C_p(T_w-T_\infty )} \) the Eckert number, \(Le = \frac{\nu _f}{D_{B}}\) be the Lewis number, \(\lambda _{t} = \frac{Gr_x}{Re_x^2}=\frac{g\beta _t(T_w-T_{\infty })}{b^2x}\) the thermal buoyancy parameter, \(\lambda _{n} = \frac{Gn_x}{Re_x^2}=\frac{g\beta _n(N_w-N_{\infty })}{b^2x}\) the solutal buoyancy parameter, \(Gr_{x} = \frac{g\beta _{t}(T_{w}-T_{\infty })x^3}{\nu _f^2}\) the local Grashof number, \(Gn_{x} = \frac{g\beta _{n}(N_{w}-N_{\infty })x^3}{\nu _f^2}\) the local modified Grashof number and \(Re_{x} = \frac{U_{w}x}{\nu _f}\) be the local Reynolds number.

Since the viscoelastic parameter \(K_1\) is very small, it is therefore, reasonable to seek a solution of the nonlinear Eq. (8) in the form

$$\begin{aligned} f = f_0(\eta ) + K_1f_1(\eta ) +\cdots . \end{aligned}$$
(13)

Substituting (13) in (8) and equating the like powers of \(K_1\), we get

$$\begin{aligned}&\displaystyle f_0''' + f_0f_0'' - f_0'^2 - Mf_0'+ \lambda _{t} \theta + \lambda _{n} \phi = 0,\end{aligned}$$
(14)
$$\begin{aligned}&\displaystyle f_1''' + f_0f_1'' - 2f_0'f_1' - Mf_1'+ f_1f_0'' -2f_0'f_0'''+ f_0f_0^iv +f_0''^2 = 0, \end{aligned}$$
(15)

Using (13), the boundary conditions for \(f_0\) and \(f_1\) can be derived from (11) and (12) as

$$\begin{aligned}&f_0 = 0, ~~f'_0= 1~~ \text {at}~~ \eta = 0;~~ f'_0\longrightarrow 0, ~~ \text {as}~~ n\longrightarrow \infty \end{aligned}$$
(16)
$$\begin{aligned}&f_1=f_1' = 0~~ \text {at}~~ \eta =0; ~~f'_1\longrightarrow 0,~~\text {as}~~n\longrightarrow \infty . \end{aligned}$$
(17)

The other important characteristics of the present investigation are the local skin-friction coefficient \(C_f\), the local Nusselt number Nu and the local Sherwood number Sh defined by

$$\begin{aligned} C_f= & {} \frac{\tau _w }{\mu _{f} (bx)\sqrt{\frac{b}{\nu _{f}}}}= \left[ 1 -K_1\right] f''(0),\nonumber \\&{\text {where}}~~\tau _w = \left( \frac{\mu _{f}}{\rho _{f}}\frac{\partial u}{\partial y}\right) _{y=0} - k_0\left[ u\frac{\partial ^2 u}{\partial x \partial y}+ v\frac{\partial ^2 u}{\partial y^2} + \frac{\partial u}{\partial x}\frac{\partial u}{\partial y}\right] _{y=0},\end{aligned}$$
(18)
$$\begin{aligned} Nu= & {} \frac{q_w}{k\sqrt{\frac{b}{\nu _{f}}}(T_w-T_\infty )}=-\theta '(0), \nonumber \\&{\text {where}}~~ q_w=-k\left( \frac{\partial T}{\partial y} \right) _{y=0}=-k\sqrt{\frac{b}{\nu _{f}}}(T_w-T_\infty )\theta '(0),\end{aligned}$$
(19)
$$\begin{aligned} Sh= & {} \frac{n_w}{D_{B}\sqrt{\frac{b}{\nu _{f}}}(N_w-N_\infty )}=-\phi '(0), \nonumber \\&{\text {where}}~~ n_w=-D_{B}\left( \frac{\partial N}{\partial y} \right) _{y=0}=-D_{B}\sqrt{\frac{b}{\nu _{f}}}(N_w-N_\infty )\phi '(0). \end{aligned}$$
(20)

Numerical Results and Discussion

The system of nonlinear couple differential Eqs. (14) and (15) subject to the boundary conditions (16) and (17) are solved numerically by employing finite difference scheme along with the Newton’s linearization technique (cf. Cebeci and Cousteix [32]). However, the linear coupled ordinary differential Eqs. (9) and (10) using the boundary conditions (11) and (12) for \(\theta \) and \(\phi \) are solved by using finite difference scheme only. The detail numerical procedures can be found in [20, 21, 32]. The essential features of this technique is that it is based on a finite difference scheme, which has better stability, simple, accurate and more efficient. Implicit finite difference technique leads to a system which is tri-diagonal and therefore speedy convergence. The numerical computation has been carried out by taking grid size \({\Delta } \eta =0.01\). We observed that further decrease in \({\Delta } \eta \) does not bring about any significant change in the results. This confirms the stability and convergence of the present numerical scheme. In order to examine the flow and heat transfer characteristic of the present problem, the following values of the different quantities of parameters are invoked in which \(0\le M\le 6\), \(0\le K_1\le 0.1\), \(0\le N_t\le 1.0\), \(5\le Le\le 20\), \(-1\le \lambda _t\le 1.5\), \(0.1\le N_b\le 0.5\), \(-1\le \lambda _n\le 1.5\), \(1\le Pr\le 7\).

Figures 1, 2 and 3 illustrate the variation of axial velocity along the height from the sheet with different values of the magnetic parameter M, the viscoelastic parameter \(K_1\) and the thermal buoyancy parameter \(\lambda _t\). Figure 1 shows that the axial velocity gradually decreases with the increase of magnetic parameter M. This is happens due to the fact that in the presence of magnetic field there arises a resistive force known as Lorentz force, which has a tendency to slow down the motion of the fluid in the boundary layer. The velocity boundary layer thickness decreases in the presence of strong magnetic field. From Fig. 2 we observe a very interesting result that near the stretching sheet the axial velocity increases with increasing viscoelastic parameter \(K_1\), while the trend is reverse near the edge of the boundary layer. Therefore, viscoelasticity of the nanofluid play an important role in the boundary layer thickness. It seems that there would be a decrease of boundary layer thickness in the presence of thermophoresis parameter and the viscoelasticity of the nanofluid. These results may have greater importance in polymer processing by the choice of the higher order viscoelasticity of the nanofluid to reduce the power consumption. Figure 3 indicates that the axial velocity within the boundary layer layer has increasing effects on the thermal buoyancy parameter \(\lambda _t\).

Fig. 1
figure 1

Variation of \(f'(\eta )\) with \(\eta \) for different values of M (when Pr = 7.0, \(Nt = 0.3\), \(Nb = 0.5\), \(\gamma = 1.0\), \(\lambda _{t} = 0.5 = \lambda _{n}\), \(Ec = 0.002 \), \(Le = 10.0\), \(K_1 = 0.01\))

Fig. 2
figure 2

Variation of \(f'(\eta )\) with \(\eta \) for different values of the viscoelastic parameter  \(K_1\) (when \(M = 2.0\), Pr = 7.0, \(Nt = 0.3\), \(Nb = 0.5\), \(\gamma = 1.0\), \(\lambda _{t} = 0.5 = \lambda _{n}\), \(Ec = 0.002\), \(Le = 10.0\))

Fig. 3
figure 3

Variation of \(f'(\eta )\) with \(\eta \) for different values of \(\lambda _{t}\) (when \(M = 2.0\), Pr = 7.0, \(Nt = 0.3\), \(Nb = 0.5\), \(\gamma = 1.0\), \(\lambda _{n} = 0.5 \), \(Ec = 0.002 \), \(Le = 10.0\), \(K_1 = 0.01\))

The variation of dimensionless temperature within the boundary layer for different values of the magnetic parameter M, Brownian motion parameter \(N_b\), thermophoresis parameter \(N_t\), viscoelastic parameter \(K_1\), and Prandatl number Pr are shown in Figs. 4, 5, 6, 7, 8 and 9. Figures 4, 5 and 6 show that the temperature increases significantly with increasing the magnetic parameter, Brownian motion parameter and thermophoresis parameter. These parameters have enhancing effect on the thermal boundary layer thickness due to the presence of nanoparticle in the fluid as well as the applied magnetic field. However, from Figs. 7, 8 and 9 we observe that the temperature has reducing effect for increasing values of the viscoelasticity of the fluid, the Prandatl number Pr and the thermal buoyancy parameter \(\lambda _t\). Therefore the viscoelastic parameter \(K_1\), the Prandatl number Pr and the thermal buoyancy parameter \(\lambda _t\) are responsible for increasing thermal boundary layer thickness.

Fig. 4
figure 4

Distribution of dimensionless temperature \(\theta (\eta )\) with \(\eta \) for different values of  M ( with Pr = 7.0, \(Nt = 0.3\), \(Nb = 0.5\), \(\gamma = 1.0\), \(\lambda _{t} = 0.5 = \lambda _{n}\), \(Ec = 0.002 \), \(Le = 10.0\), \(K_1 = 0.01\))

Fig. 5
figure 5

Distribution of dimensionless temperature \(\theta (\eta )\) with \(\eta \) for different values of Nb (when \(M = 2.0\), Pr = 7.0, \(Nt = 0.3\), \(K_1 = 0.01\), \(\gamma = 1.0\), \(\lambda _{t} = 0.5 = \lambda _{n}\), \(Ec = 0.002 \), \(Le = 10.0\))

Fig. 6
figure 6

Distribution of dimensionless temperature \(\theta (\eta )\) with \(\eta \) for different values of Nt (\(M = 2.0\), \( Pr = 7.0\), \(Nb = 0.5\), \(K_1 = 0.01\), \(\gamma = 1.0\), \(\lambda _{t} = 0.5 = \lambda _{n}\), \(Ec = 0.002 \), \(Le = 10.0\))

Fig. 7
figure 7

Distribution of dimensionless temperature \(\theta (\eta )\) with \(\eta \) for different values of \( K_1\) ( with \(M = 2.0\), Pr = 7.0, \(Nt = 0.3\), \(Nb = 0.5\), \(\gamma = 1.0\), \(\lambda _{t} = 0.5 = \lambda _{n}\), \(Ec = 0.002 \), \(Le = 10.0\))

Fig. 8
figure 8

Distribution of dimensionless temperature \(\theta (\eta )\) with \(\eta \) for different values of Pr (\(M = 2.0\), \( Nt = 0.3\), \(Nb = 0.5\), \(K_1 = 0.01\), \(\gamma = 1.0\), \(\lambda _{t} = 0.5 = \lambda _{n}\), \(Ec = 0.002 \), \(Le = 10.0\))

Fig. 9
figure 9

Distribution of dimensionless temperature \(\theta (\eta )\) with \(\eta \) for different values of \( \lambda _{t}\) (when \(M = 2.0\), Pr = 7.0, \(Nb = 0.5\), \(Nt = 0.3\), \(K_1 = 0.01\), \(\gamma = 1.0\), \(\lambda _{n} = 0.5 \), \(Ec = 0.002 \), \(Le = 10.0\))

Figures 10, 11, 12 and 13 depict the variation of nanoparticle volume fraction \(\phi (\eta )\) along the perpendicular distance from the sheet within the boundary layer. It is interesting to note from Fig. 10 that the volume fraction of nanoparticle increases with increasing magnetic field strength. However, the volume fraction of nanoparticle decreases with increasing the Brownian motion parameter \(N_b\), the Lewis number Le and the solute buoyancy parameter \(\lambda _n\) as shown in Figs.  11, 12 and 13 respectively. Therefore, the presence of magnetic field has enhancing effect on the boundary layer thickness of the nanoparticle volume fraction, while the opposite trend is observed in the case of Brownian motion parameter, the Lewis number and the solute buoyancy parameter.

Table 1 The numerical values of the Skin-friction coefficient, Nusselt number and Sherwood number for different physical parameters
Fig. 10
figure 10

Variation of nanoparticle volume fraction \(\phi (\eta )\) with \(\eta \) for different values of M (with \(Pr = 7.0\), \( Nt = 0.3\), \(Nb = 0.5\), \(K_1 = 0.01\), \(\gamma = 1.0\), \(\lambda _{t} = 0.5 = \lambda _{n}\), \(Ec = 0.002 \), \(Le = 10.0\))

Fig. 11
figure 11

Variation of nanoparticle volume fraction \(\phi (\eta )\) with \(\eta \) for different values of Nb (when \(Pr = 7.0\), \( K_1 = 0.01\), \(Nt = 0.3\), \(M = 2.0\), \(\gamma = 1.0\), \(\lambda _{t} = 0.5 = \lambda _{n}\), \(Ec = 0.002 \), \(Le = 10.0\))

Fig. 12
figure 12

Variation of nanoparticle volume fraction \(\phi (\eta )\) with \(\eta \) for different values of Le (when \(Nb = 0.5\), \( K_1 = 0.01\), \(Nt = 0.3\), \(M = 2.0\), \(\gamma = 1.0\), \(\lambda _{t} = 0.5 = \lambda _{n}\), \(Ec = 0.002 \), \(Pr = 7.0\))

Fig. 13
figure 13

Variation of nanoparticle volume fraction \(\phi (\eta )\) with \(\eta \) for different values of \(\lambda _{n}\) (with \(M = 2.0 \), \(Pr = 7.0\), \( Nt = 0.3\), \(Nb = 0.5\), \(K_1 = 0.01\), \(\gamma = 1.0\), \(\lambda _{t} = 0.5 \), \(Ec = 0.002 \), \(Le = 10.0\))

The important characteristics of the present problem are the skin-friction coefficient \((C_f)\), Nusselt number (Nu) and the Sherwood number (Sh). The mathematical expressions of those physical quantities are presented in the Eqs. (18)–(20) and their corresponding numerical values for various parameters are given in Table 1. From Table 1 we observed that the skin-friction coefficient and the magnitude of the Nusselt number |Nu| increases with increasing magnetic field strength. However, the rate of nanoparticle volume fraction i.e., sherwood number Sh decreases when the magnetic filed strength increases. The viscoleasticity of the nanofluid has an enhancing effect on the skin-friction coefficient, the rate of heat transfer |Nu| and the Sherwood number. However, the thermophoresis parameter \(N_t\) has a reducing effect on the local skin-friction coefficient \(C_f\), while the parameter \(N_t\) has increasing behaviour on the magnitude of the Nusselt number and the Sherwood number. Moreover, the increasing values of the Lewis number Le has an accelerating impact on each of the local skin-friction coefficient and the magnitude of the Nusselt number as well as the rate of nanoparticle volume fraction. This enhancing effect is more significant for Sherwood number.

Concluding Remarks

The effect of viscoelasticity on the nano-fluid flow and heat transfer past over a stretching sheet in the presence of magnetic field has been the main concern in this paper. Moreover the effects of Brownian motion and thermophoretic volume fraction of nanoparticles are taken into account. The governing partial differential equations in the boundary layer have been reduced to a system of couple nonlinear ordinary differential equations under similarity transformation. The transformed governing equations are then solved numerically by using finite difference scheme along with the Newton’s linearization technique. From the present analysis the following important findings are summarized as follows.

  • The viscoelasticity of the nanofluid has reducing effect on the boundary layer thickness.

  • The presence of magnetic field causes decreasing of the velocity boundary layer thickness and enhancement of the thermal boundary layer thickness.

  • The thermal buoyancy effect leads to the decreasing of momentum boundary layer thickness and enhancement of the thermal boundary layer thickness.

  • The presence of nanoparticle in the viscoelastic fluid increases the thermal boundary layer thickness.

  • The volume fraction of the nanoparticle increases with the magnetic field strength.

  • The viscoelasticity of the nanofluid has uplifting effect on the local skin-frintion, the Nusselt number and the rate of volume fraction of nanoparticle.