1 Introduction

The importance of fluid flow over a stretching sheet can be perceived for its ever increasing inevitable applications in industries and in contemporary technology. The applications of the stretching sheet problem are such as polymer sheet extrusion from a dye, drawing, thinning and annealing of copper wires, glass fiber and paper production, the cooling of a metallic plate in a cooling bath etc. The production of these sheets requires that the melt issues from a slit and is stretched to get the desired thickness. The final product depends on rate of cooling in the process and the process of stretching. Sakiadis [1] was first to study the boundary-layer behavior on a continuous solid surface moving with constant speed. Crane [2] was the first to achieve an elegant analytical solution to the boundary layer equations for the problem of steady two-dimensional flow through a stretching surface in a quiescent incompressible fluid.

The growing need for chemical reaction and hydrometallurgical industries needs the study of heat and mass transfer with chemical reaction. There are numerous transport processes that are governed by the combined action of buoyancy forces due to both thermal and mass diffusion in the presence of chemical reaction effect. These processes occur in the nuclear reactor safety and combustion systems, solar collectors, metallurgical and chemical engineering etc.

Khan and Sanjayanand [3] reported an analytical solution of the viscoelastic boundary layer flow and heat transfer over an exponentially stretched sheet considering the viscous dissipation in the heat transport equation. Kar et al. [4] investigated the heat and mass transfer effects on a dissipative and radiative viscoelastic MHD flow over a stretching porous sheet. Nayak et al. [5] analyzed the effects of chemical reaction on MHD flow of a viscoelastic fluid through porous medium.

Stagnation point flow is important because stagnation point appears in virtually all flow fields in science and engineering. The stagnation-region encounters the highest pressure, heat transfer and rates of mass diffusion. This problem has been studied extensively by Hayat et al. [6] and widely studied in several situations recently on account of the importance of its applications in industries and manufacturing processes.

Bataller [7] investigated the effect of thermal radiation on heat transfer in a boundary layer viscoelastic second order fluid over a stretching sheet with internal heat source/sink. Recently, Hayat et al. [8] studied the effects of chemical reaction of unsteady three dimensional flow of couple stress fluid over a stretching surface. Gireesha et al. [9] have studied the boundary-layer flow and heat transfer of a dusty fluid flow over a stretching sheet in presence of non-uniform heat source/sink and radiation. Parsa et al. [10] investigated the MHD boundary-layer flow over a stretching surface with internal heat generation or absorption. But these studies are confined to hydrodynamic flow and heat transfer in Newtonian fluids. However, most of the practical situations demand non-Newtonian fluids which are extensively used in many industrial and engineering applications.

Mustafa et al. [11, 12] studied the boundary layer flow as well as axisymmetric flow of nano fluid over a non-linearly stretching sheet. A common feature of the above investigations is that nano fluids can impart dramatic improvements in the thermal conductivity of host fluids compared to that of traditional fluids. This further leads to enhance the heat transfer and viscosity.

Raptis [13] studied the heat transfer in a viscous fluid over a stretching sheet with viscous dissipation with and without porous medium. Nayak et al. [14] discussed the unsteady radiative MHD free convective flow and mass transfer of a viscoelastic fluid past an inclined porous plate. Cortell [15] has worked on viscous flow and heat transfer over a nonlinearly stretching sheet. Effect of viscous dissipation and radiation on the thermal boundary layer over a nonlinearly stretching sheet was also studied by Cortell [16].

Singh [17] and Chen [18] contributed recently to this field of study. All their works are related to viscoelastic fluid model in the presence of magnetic field. They considered either an oscillatory stretching surface or surface with a linearly varying velocity. They have used hyper-geometric function i.e., Kummer’s function. All these works reported above considered either radiation effect/viscous dissipation or both. The novelty of the present study is starred due to the following three aspects.

  1. 1.

    Inclusion of porous media is justified since the flow and heat transport processes occur by using insulating material (porous matrix) which greatly prevents heat loss and accelerates the process of cooling/heating as the case may be serving as a heat exchanger.

  2. 2.

    Consideration of mass diffusion as the flow of industrial fluids is subjected to more than one fluid either generated/provided externally.

  3. 3.

    Inclusion of chemical reaction term in the mass transport equation which is vital since the fluids may be chemically reactive.

Second grade or Walters’ B models are considered in the present study. This is because this two models provide relative response to flow and heat transfer rate. Moreover, elastic property of Walters’ B flow model reduces the flow instabilities which are mainly driven by the fluid normal stresses or by the nature of boundary conditions.

The present study is a generalized approach by which we can discuss the results of Chen [18] as a special case, without considering mass diffusion and porous medium. Moreover, it is intended to bring out the effects of the emerging parameters on the heat and mass transport phenomena. The confluent hyper-geometric function i.e. Kummer’s function has been used to solve the heat and mass transport equations after using similarity transformation which reduces the governing partial differential equations into to ordinary differential equations.

2 Formulation of the problem

Consider a steady two-dimensional boundary-layer flow of an electrically conducting, viscoelastic fluid past a stretching sheet embedded in a porous medium, the flow being confined to y > 0. Two equal and opposite forces are applied along x-axis so that the surface is stretched, keeping the origin fixed. Assuming that a uniform magnetic field of strength B 0 is applied along y-axis that generates magnetic effect in the x-direction. Under the usual boundary layer assumptions, the equations of continuity, momentum, energy and species concentration for the flow of viscoelastic fluid are:

$$\frac{\partial u}{\partial x} + \frac{\partial v}{\partial y} = 0$$
(1)
$$u\frac{\partial u}{\partial x} + v\frac{\partial u}{\partial y} = \upsilon \frac{{\partial^{2} u}}{{\partial y^{2} }} + \frac{{k_{0} }}{\rho }\left( {\frac{\partial }{\partial x}\left( {u\frac{{\partial^{2} u}}{{\partial y^{2} }}} \right) + v\frac{{\partial^{3} u}}{{\partial y^{3} }} - \frac{\partial u}{\partial y}\frac{{\partial^{2} u}}{\partial x\partial y}} \right) - \frac{{\sigma B_{0}^{2} u}}{\rho } - \frac{\nu u}{{K_{p}^{{\prime }} }}$$
(2)
$$\begin{aligned} \rho C_{p} \left( {u\frac{\partial T}{\partial x} + v\frac{\partial T}{\partial y}} \right) & = k\frac{{\partial^{2} T}}{{\partial y^{2} }} + \mu \left( {\frac{\partial u}{\partial y}} \right)^{2} + k_{0} \left( {\frac{\partial u}{\partial y}\frac{\partial }{\partial y}\left( {u\frac{\partial u}{\partial x} + v\frac{\partial u}{\partial y}} \right)} \right) \\ & \quad + \sigma B_{0}^{2} u^{2} - \frac{{\partial q_{r} }}{\partial y} + q(T - T_{\infty } ) \\ \end{aligned}$$
(3)
$$u\frac{\partial C}{\partial x} + v\frac{\partial C}{\partial y} = D\frac{{\partial^{2} C}}{{\partial y^{2} }} - K_{c}^{{\prime }} (C - C_{\infty } )$$
(4)

Rosseland’s approximation for thermal radiation gives \(q_{r} = - \frac{{4\sigma^{*} }}{{3k_{1} }}\frac{{\partial (T^{4} )}}{\partial y}\). It is assumed that the temperature variation within the flow is such that \(T^{4}\) may be expanded in a Taylor series. Expanding \(T^{4}\) about \(T_{\infty }\) and neglecting the higher order terms, we have

$$T^{4} = 4T_{\infty }^{3} T - 3T_{\infty }^{4} \quad {\text{and}}\quad \frac{{\partial q_{r} }}{\partial y} = - \frac{{16\sigma^{*} T_{\infty }^{3} }}{{3k_{1} \rho C_{p} }}\frac{{\partial^{2} T}}{{\partial y^{2} }}.$$

Substituting the above value of \(\frac{{\partial q_{r} }}{\partial y}\) in Eq. (3), we get

$$\begin{aligned} u\frac{\partial T}{\partial x} + v\frac{\partial T}{\partial y} & = \alpha \frac{{\partial^{2} T}}{{\partial y^{2} }} + \frac{\mu }{{\rho C_{p} }}\left( {\frac{\partial u}{\partial y}} \right)^{2} + \frac{{k_{0} }}{{\rho C_{p} }}\left( {\frac{\partial u}{\partial y}\frac{\partial }{\partial y}\left( {u\frac{\partial u}{\partial x} + v\frac{\partial u}{\partial y}} \right)} \right) \\ & \quad + \frac{{16\sigma^{*} T_{\infty }^{3} }}{{3k_{1} \rho C_{p} }}\frac{{\partial^{2} T}}{{\partial y^{2} }} + \frac{q}{{\rho C_{p} }}(T - T_{\infty } ) + \frac{{\sigma B_{0}^{2} }}{{\rho C_{p} }}u^{2} \\ \end{aligned}$$
(5)

The boundary conditions are:

$$\left. \begin{array}{l} u = u_{w} = Ex,\quad v = v_{w} ,\quad T = T_{w} (x) = T_{\infty } + A\left( {\frac{x}{L}} \right)^{2} (PST\,case), \hfill \\ h_{w} (x) = - k\left( {\frac{\partial T}{\partial y}} \right) = B\left( {\frac{x}{L}} \right)^{2} (PHF\,case), \hfill \\ C = C_{w} (x) = C_{\infty } + E_{0} \left( {\frac{x}{L}} \right)^{2} ,\,m_{w} = - D\left( {\frac{\partial C}{\partial y}} \right) = E_{1} x^{2} ,\qquad {\text{at}}\,\,y \to 0 \hfill \\ u = 0,\,\frac{\partial u}{\partial y} = 0,\,T \to T_{\infty } ,\,C \to C_{\infty }\quad\quad\quad\quad\quad\quad\quad\quad\quad{\text{as}}\,\,y \to \infty \hfill \\ \end{array} \right\}$$
(6)

3 Solution of the flow field

Equations (1) and (2) admit self–similar solutions of the form

$$f = \frac{\psi }{{\upsilon \sqrt {\text{Re}_{x} } }},\,\,\eta = \frac{y}{x}\sqrt {\text{Re}_{x} }$$
(7)

where f is the dimensionless stream function and \(\eta\) is the similarity variable and \(\text{Re}_{x} = u_{w} x/\upsilon\) is the local Reynolds number, \(\psi \,(x,y)\) is the stream function satisfying the continuity Eq. (1).

Substituting Eqs. (7) in (2), we get

$$f^{{{\prime \prime \prime }}} + ff^{{{\prime \prime }}} - (f^{\prime })^{2} + R_{c} \left\{ {2f^{\prime }f^{{{\prime \prime \prime }}} - (f^{{\prime \prime }} )^{2} - ff^{iv} } \right\} - \left( {M_{n} + \frac{1}{{K_{p} }}} \right)f^{{\prime }} = 0,$$
(8)

where \(R_{c} = k_{0} E/\mu\) is the viscoelastic parameter, \(M_{n} = \sigma B_{0}^{2} /\rho E\) is the magnetic parameter and \(K_{p} = \frac{{EK_{p}^{{\prime }} }}{\nu }\) is the non-dimensional permeability parameter.

The corresponding boundary conditions are:

$$f(0) = f_{w} ,f^{{\prime }} (0) = 1,f^{{\prime }} (\infty ) = 0,f^{{\prime \prime }} (\infty ) = 0.$$
(9)

where \(f_{w} = \frac{{ - v_{w} \sqrt {\text{Re}_{x} } }}{{u_{w} }}\) is the suction/injection parameter, \(f_{w} > 0\) and \(f_{w} < 0\) represent suction and injection respectively.

The exact solution of Eq. (8) with boundary conditions expressed in Eq. (9) following Chakrabati and Gupta [19] is in the form

$$f(\eta ) = \frac{{1 - e^{ - r\eta } }}{r} + f_{w} ,$$
(10)

where r is a real positive root of the cubic algebraic equation

$$R_{c} f_{w} r^{3} + (R_{c} + 1)r^{2} - f_{w} r - \left(1 + M_{n} + \frac{1}{{K_{p} }}\right) = 0$$
(11)

The velocity profile can be obtained from the Eq. (10) as

$$f'(\eta ) = e^{ - r\eta }$$
(12)

The shear stress at the wall is defined as

$$\tau_{w} = \mu \left( {\frac{\partial u}{\partial y}} \right)_{y = 0} = \mu Ex\sqrt {E/\nu } .f^{{\prime \prime }} (0)$$
(13)

The non dimensional form of skin friction coefficient at the wall is

$$C_{f} R_{{e_{x} }}^{{{1 \mathord{\left/ {\vphantom {1 2}} \right. \kern-0pt} 2}}} = - f^{{\prime \prime }} (0) = r$$
(14)

4 Heat transfer analysis

4.1 Case I: Prescribed surface temperature (PST)

In prescribed surface temperature case, introducing non-dimensional quantities \(\theta (\eta ) = \frac{{T - T_{\infty } }}{{T_{w} - T_{\infty } }},\;P_{r} = {\nu \mathord{\left/ {\vphantom {\nu \alpha }} \right. \kern-0pt} \alpha },\;E_{c} = \frac{{E^{2} l^{2} }}{{AC_{p} }},\,R_{c} = \frac{{Ek_{0} }}{\mu },\,Q = \frac{q}{{E\rho C_{p} }},\;R = \frac{{16\sigma^{*} T_{\infty }^{3} }}{{3k_{1} k}}\) and using Eq. (6), the Eq. (5) becomes

$$(1 + R)\theta^{{\prime \prime }} + P_{r} f\theta^{{\prime }} + P_{r} (Q - 2f^{{\prime }} )\theta = - E_{c} P_{r} \left( {(f^{{\prime \prime }} )^{2} + R_{c} (f^{{\prime }} f^{{\prime \prime }} - ff^{{{\prime \prime \prime }}} ) + \left( {M_{n} + \frac{1}{{K_{p} }}} \right)(f^{{\prime }} )^{2} } \right)$$
(15)

with the boundary conditions

$$\theta (0) = 1,\theta (\infty ) = 0$$
(16)

Introducing the variable \(\xi = - \frac{{P_{r} e^{ - r\eta } }}{{(1 + R)r^{2} }}\) the Eq. (15) transformed to

$$\xi \frac{{d^{2} \theta }}{{d\xi^{2} }} + \left(1 - \frac{{P_{r} S}}{{(1 + R)r^{2} }} - \xi \right)\frac{d\theta }{d\xi } + \left( {\frac{{P_{r} Q}}{{(1 + R)r^{2} \xi }} + 2} \right)\theta = - \frac{{E_{c} (1 + R)r^{4} }}{{P_{r} }}\left[ {1 + R_{c} S + \frac{1}{{r^{2} }}\left( {M_{n} + \frac{1}{{K_{p} }}} \right)} \right]\xi$$
(17)

with the boundary conditions

$$\theta \left( {\xi = - \frac{{P_{r} }}{{(1 + R)r^{2} }}} \right) = 1,\,\,\,\theta (\xi = 0) = 0$$
(18)

where \(S = 1 + r\,f_{w}\).Using confluent hypergeometric function of first kind (Kummer’s function) we get,

$$\begin{aligned} \theta (\xi ) &= \left[ {1 + \frac{{E_{c} P_{r} (1 + R_{c} S + \frac{1}{{r^{2} }}\left( {M_{n} + \frac{1}{{K_{p} }}} \right)}}{{(1 + R)\left\{ {4 - (2S - Q)P_{r}^{*} } \right\}}}} \right]\left( {\frac{\xi }{{ - \text{P}_{r}^{*} }}} \right)^{a} \frac{{M\left( {a - 2,b + 1,\xi } \right)}}{{M\left( {a - 2,b + 1, - P_{r}^{*} } \right)}} \hfill \\ &\quad- \frac{{E_{c} P_{r} (1 + R_{c} S + \frac{1}{{r^{2} }}\left( {M_{n} + \frac{1}{{K_{p} }}} \right)}}{{(1 + R)\left\{ {4 - (2S - Q)P_{r}^{*} } \right\}}}\left( {\frac{\xi }{{P_{r}^{*} }}} \right)^{2} \hfill \\ \end{aligned}$$
(19)

where

$$a = \frac{{P_{r}^{*} S + \sqrt {\left( {P_{r}^{*} S} \right)^{2} - 4P_{r}^{*} Q} \,}}{2},b = \,\sqrt {\left( {P_{r}^{*} S} \right)^{2} - 4P_{r}^{*} Q} ,P_{r}^{*} = \frac{{P_{r} }}{{(1 + R)r^{2} }}\,,S = 1 + r\,f_{w}$$

and \(M(\alpha_{1} ,\alpha_{2} ;x)\) denotes the Kummer’s function and is given by

$$M(\alpha_{1} ,\alpha_{2} ;x) = \sum\limits_{n = 0}^{\infty } {\frac{{\left( {\alpha_{1} } \right)_{n} }}{{\left( {\alpha_{2} } \right)_{n} }}} \frac{{x^{n} }}{n!},\quad \alpha_{2} \ne 0, - 1, - 2 \ldots$$
(20)

where \(\left( \alpha \right)_{n}\) denoting the Pochhammer symbol defined in terms of the gamma function as

$$(\alpha )_{n} = \alpha (\alpha + 1)(\alpha + 2) \cdots (\alpha + n - 1) = \frac{\varGamma (\alpha + n)}{\varGamma (\alpha )}$$
(21)

The temperature profile in terms of \(\eta\) can be written as

$$\begin{aligned} \theta (\eta ) &= \left[ {1 + \frac{{E_{c} P_{r} \left\{ {1 + R_{c} S + \frac{1}{{r^{2} }}\left( {M_{n} + \frac{1}{{K_{p} }}} \right)} \right\}}}{{(1 + R)\left\{ {4 - (2S - Q)P_{r}^{*} } \right\}}}} \right]e^{ - ar\eta } \frac{{M\left( {a - 2,b + 1, - P_{r}^{*} e^{ - r\eta } } \right)}}{{M\left( {a - 2,b + 1, - P_{r}^{*} } \right)}} \hfill \\ &\quad - \frac{{E_{c} P_{r} \left\{ {1 + R_{c} S + \frac{1}{{r^{2} }}\left( {M_{n} + \frac{1}{{K_{p} }}} \right)} \right\}}}{{(1 + R)\left\{ {4 - (2S - Q)P_{r}^{*} } \right\}}}e^{ - 2r\eta } \hfill \\ \end{aligned}$$
(22)

The dimensionless wall temperature gradient is given by

$$\begin{aligned} \theta {\prime }(0) &= r\left[ {1 + \frac{{E_{c} P_{r} \left\{ {1 + R_{c} S + \frac{1}{{r^{2} }}\left( {M_{n} + \frac{1}{{K_{p} }}} \right)} \right\}}}{{(1 + R)\left\{ {4 - (2S - Q)P_{r}^{*} } \right\}}}} \right]\,\left[ {P_{r}^{*} \left( {\frac{a - 2}{b + 1}} \right)\frac{{M\left( {a - 1,b + 2, - P_{r}^{*} } \right)}}{{M\left( {a - 2,b + 1, - P_{r}^{*} } \right)}} - a} \right] \hfill \\ &\quad+ 2r\left[ {\frac{{E_{c} P_{r} \left\{ {1 + R_{c} S + \frac{1}{{r^{2} }}\left( {M_{n} + \frac{1}{{K_{p} }}} \right)} \right\}}}{{(1 + R)\left\{ {4 - (2S - Q)P_{r}^{*} } \right\}}}} \right] \hfill \\ \end{aligned}$$
(23)

The local Nusselt number for PST case is

$$N_{{u_{x} }} \text{Re}_{x}^{{{{ - 1} \mathord{\left/ {\vphantom {{ - 1} 2}} \right. \kern-0pt} 2}}} = - \theta^ {\prime }(0)$$
(24)

4.2 Case II: Prescribed heat flux (PHF)

In prescribed heat flux case, introducing the similarity variable \(T - T_{\infty } = \frac{{Bx^{2} }}{{kL^{2} }}\sqrt {\frac{\upsilon }{E}} \,\,\psi (\eta )\) and using Eqs. (6), (5) becomes

$$\begin{aligned} & (1 + R)\psi^{{\prime \prime }} + P_{r} \,f\psi^{{\prime }} + P_{r} \left( {Q - 2f^{{\prime }} } \right)\psi \\ & \quad = - E_{c} P_{r} \left[ {(f^{{\prime \prime }} )^{2} + R_{c} f^{{\prime \prime }} (f^{{\prime }} f^{{\prime \prime }} - ff^{{{\prime \prime \prime }}} ) + \left( {M_{n} + \frac{1}{{K_{p} }}} \right)\left( {f^{{\prime }} } \right)^{2} } \right] \\ \end{aligned}$$
(25)

with the boundary conditions

$$\psi (0) = - 1,\quad\psi (\infty ) = 0\,$$
(26)

where \(E_{c} = \frac{{E^{2} L^{2} k\sqrt {E/\upsilon } }}{{BC_{p} }}\) is the Eckert number and the other parameters are as defined in the PST case.

Substituting \(\xi = - \frac{{P_{r} e^{ - r\eta } }}{{(1 + R)r^{2} }}\) in Eqs. (25) and (26) we get respectively

$$\begin{aligned} &\xi \frac{{d^{2} \psi }}{{d\xi^{2} }} + \left(1 - \frac{{P_{r} S}}{{(1 + R)r^{2} }} - \xi \right)\frac{d\psi }{d\xi } + \left( {\frac{{P_{r} Q}}{{(1 + R)r^{2} \xi }} + 2} \right)\psi \hfill \\ &\quad= - \frac{{E_{c} (1 + R)r^{4} }}{{P_{r} }}\left[ {1 + R_{c} S + \frac{1}{{r^{2} }}\left( {M_{n} + \frac{1}{{K_{p} }}} \right)} \right]\xi \hfill \\ \end{aligned}$$
(27)
$$\psi (\xi = 0) = 0,\quad \psi^{{\prime }} \left( {\xi = - \frac{{P_{r} }}{{(1 + R)r^{2} }}} \right) = - \frac{(1 + R)r}{{P_{r} }}$$
(28)

The exact solution of Eq. (27) subject to the boundary conditions expressed in Eq. (28) can be written in terms of confluent hypergeometric function in terms of similarity variable \(\eta\) and is given by

$$\psi \,(\eta ) = \frac{{\left[ {\frac{1}{r} + 2\left[ {\frac{{E_{c} P_{r} \left\{ {1 + R_{c} S + \frac{1}{{r^{2} }}\left( {M_{n} + \frac{1}{{K_{p} }}} \right)} \right\}}}{{(1 + R)\left\{ {4 - (2S - Q)P_{r}^{*} } \right\}}}} \right]} \right] \cdot \,e^{ - ar\eta } \cdot M\left( {a - 2,b + 1; - P_{r}^{*} e^{ - r\eta } } \right)}}{{aM\left( {a - 2,b + 1; - P_{r}^{*} } \right) - P_{r}^{*} \left( {\frac{a - 2}{b + 1}} \right)M\left( {a - 1,b + 2; - P_{r}^{*} } \right)}}\, - \left[ {\frac{{E_{c} P_{r} \left\{ {1 + R_{c} S + \frac{1}{{r^{2} }}\left( {M_{n} + \frac{1}{{K_{p} }}} \right)} \right\}}}{{(1 + R)\left\{ {4 - (2S - Q)P_{r}^{*} } \right\}}}} \right] \cdot \,e^{ - 2r\eta }$$
(29)

The dimensionless wall temperature can be expressed as

$$\psi \,(\eta ) = \frac{{\frac{1}{r} + 2\left[ {\frac{{E_{c} P_{r} \left\{ {1 + R_{c} S + \frac{1}{{r^{2} }}\left( {M_{n} + \frac{1}{{K_{p} }}} \right)} \right\}}}{{(1 + R)\left\{ {4 - (2S - Q)P_{r}^{*} } \right\}}}} \right] \cdot M\left( {a - 2,b + 1; - P_{r}^{*} } \right)}}{{a \cdot M\left( {a - 2,b + 1; - P_{r}^{*} } \right) - P_{r}^{*} \left( {\frac{a - 2}{b + 1}} \right)M\left( {a - 2,b + 2; - P_{r}^{*} } \right)}}\, - \left[ {\frac{{E_{c} P_{r} \left\{ {1 + R_{c} S + \frac{1}{{r^{2} }}\left( {M_{n} + \frac{1}{{K_{p} }}} \right)} \right\}}}{{(1 + R)\left\{ {4 - (2S - Q)P_{r}^{*} } \right\}}}} \right]$$
(30)

The local Nusselt number for the PHF case can be written as

$$N_{{u_{x} }} R_{{e_{x} }}^{{{{ - 1} \mathord{\left/ {\vphantom {{ - 1} 2}} \right. \kern-0pt} 2}}} = \frac{1}{\psi (0)}$$
(31)

5 Mass transfer analysis

Introducing the similarity variable \(C - C_{\infty } = \frac{{E_{1} x^{2} }}{D}\sqrt {\frac{\upsilon }{E}} \,\,\phi (\eta )\) and using Eqs. (6) in (4),

$$\phi^{{\prime \prime }} + S_{c} f\phi^{{\prime }} - S_{c} f^{{\prime }} \phi - S_{c} K_{c} \phi = 0$$
(32)

with the boundary conditions

$$\begin{aligned} \phi {\prime } = - 1\quad{\text{at}}\quad\eta = 0\\ \phi \to 0\quad{\text{at}}\quad\eta \to \infty \hfill \\ \end{aligned}$$
(33)

Again introducing a new variable \(\xi = - \frac{{S_{c} }}{{r^{2} }}e^{ - r\eta }\), the Eq. (32) becomes

$$\xi \frac{{d^{2} \phi }}{{d\xi^{2} }} + \left[ {\left( {1 - \frac{{S_{c} }}{{r^{2} }}\left( {r^{2} - M_{n} - \frac{1}{{K_{p} }}} \right)} \right) - \xi } \right]\frac{d\phi }{d\xi } + \left( {2 - \frac{{K_{c} }}{{r^{2} \xi }}} \right)\phi = 0$$
(34)

The corresponding boundary conditions are

$$\phi (\xi = 0) = 0,\phi {\prime }\left(\xi = - \frac{{S_{c} }}{{r^{2} }}\right) = - \frac{r}{{S_{c} }}$$
(35)

The exact solution of Eq. (34) subject to the boundary condition expressed in Eq. (35) is given by

$$\phi (\eta ) = \frac{{e^{{ - \left( {\frac{{S_{1} + S_{2} }}{2}} \right)\,\,r\eta }} M\left( {\frac{{S_{1} + S_{2} - 4}}{2},1 + S_{1} ;\, - \frac{{S_{c} }}{{r^{2} }}.\,e^{ - r\eta } } \right)}}{{\frac{{r(S_{1} + S_{2} )}}{2}.M\left( {\frac{{S_{1} + S_{2} - 4}}{2},1 + S_{1} ,\, - \frac{{S_{c} }}{{r^{2} }}} \right) - \frac{{S_{c} }}{r}\left[ {\left( {\frac{{S_{1} + S_{2} - 2)}}{{2\,(1 + S_{1} )}}} \right)\,M\left( {\frac{{S_{1} + S_{2} - 2}}{2},2 + S_{1} ,\, - \frac{{S_{c} }}{{r^{2} }}} \right)} \right]}}$$
(36)

where \(S_{1} = \frac{{S_{c} }}{{r^{2} }}\left[ {r^{2} - \left( {M^{2} + \frac{1}{{K_{p} }}} \right)} \right]\) and \(S_{2} = \sqrt {S_{1}^{2} + \frac{{4K_{c} }}{{r^{2} }}}\). The dimensionless wall concentration gradient is given by

$$\phi^ {\prime }(0) = \frac{{ - r\left( {\frac{{S_{1} + S_{2} }}{2}} \right)M\left( {\frac{{S_{1} + S_{2} - 4}}{2},1 + S_{1} ;\, - \frac{{S_{c} }}{{r^{2} }}.\,e^{ - r\eta } } \right) + M\left( {\frac{{S_{1} + S_{2} - 2}}{2},2 + S_{1} ;\, - \frac{{S_{c} }}{{r^{2} }}.\,e^{ - r\eta } } \right)}}{{\frac{{r(S_{1} + S_{2} )}}{2}.M\left( {\frac{{S_{1} + S_{2} - 4}}{2},1 + S_{1} ,\, - \frac{{S_{c} }}{{r^{2} }}} \right) - \frac{{S_{c} }}{r}\left[ {\left( {\frac{{S_{1} + S_{2} - 2)}}{{2\,(1 + S_{1} )}}} \right)\,M\left( {\frac{{S_{1} + S_{2} - 2}}{2},2 + S_{1} ,\, - \frac{{S_{c} }}{{r^{2} }}} \right)} \right]}}$$
(37)

The local Sherwood number can be expressed as

$$S_{{h_{x} }} \text{Re}_{x}^{{{{ - 1} \mathord{\left/ {\vphantom {{ - 1} 2}} \right. \kern-0pt} 2}}} = - \phi^ {\prime }(0)$$
(38)

6 Results and discussion

In the course of discussion the following aspects are highlighted.

  1. 1.

    Effect of permeability of the medium on flow characteristics.

  2. 2.

    Effect of diffusion species as well as first order chemical reaction

  3. 3.

    Relative response of two viscoelastic models to velocity and temperature distribution in the presence of uniform porous matrix.

  4. 4.

    Presenting the generality of the present study by discussing the previous result as particular case.

It is important to note that \(R_{c} > 0\), \(R_{c} < 0\) and \(R_{c} = 0\) represent second grade, Walters \(B{\prime }\) and viscous fluids respectively.

Figure 1a shows the velocity distribution of second grade fluid for suction (\(f_{w} > 0\)), injection (\(f_{w} < 0\)) and impermeable plate (\(f_{w} = 0\)) in the presence (\(K_{p} = 0.5\)) and absence (\(K_{p} = 100\)) of porous matrix. The profiles \(K_{p} = 100,\;M_{n} = 0.5,\;R_{c} = 1\) coincides with Fig. 1b of Chen [18] and hence our result finds a good agreement. The porous medium (\(K_{p} = 0.5\)) reduces the primary velocity at all points due to resistive force offered by the porous medium which results in thinning of boundary layer. Further, it is interesting to note that the suction at the plate reduces the velocity. Thus, it is concluded that combined effect of suction and porous matrix favorable to thinning of boundary layer which favors the stability of the flow.

Fig. 1
figure 1

a Velocity profiles (second grade fluid) for \(M_{n} = 0.5,\,R_{c} = 1\). b Velocity profiles for \(M_{n} = 1,\,f_{w} = 0\)

Figure 1b exhibits the velocity profiles for Walters B′ (R c  = −0.2), viscous (\(R_{c} = 0\)) and second grade flow (R c  = 0.2). It is observed that velocity attains low value in case of visco-elasticity (Walters B′ model), in the presence of porous medium. Viscoelastic flows are prone to instabilities due to non-linearity in the constitutive equations. Instability are mainly driven by the fluid normal stresses (elasticity) or by the nature of the boundary conditions. Therefore, elastic property of Walters flow model in conjunction with the permeability of the porous medium reduces the boundary layer thickness and hence reduces the instability.

Figures 2a, b display the temperature distribution in case of PST and PHF cases respectively without suction/injection. The effects of the permeability of the medium and elasticity of the fluid subject to present study on temperature distribution are opposite to that of viscous dissipation that is the temperature increases at all points and this is further contributed by Walters \(B^{\prime}\) model. Both the cases of PST and PHF display the same effect.

Fig. 2
figure 2

a Temperature profiles for \(P_{r} = 3,M_{n} = 1,\,E_{c} = 0.1,R = 1,Q = 0,\,f_{w} = 0\) (PST case). b Temperature profiles for \(P_{r} = 3,M_{n} = 1,\,E_{c} = 0.1,R = 1,Q = 0,\,f_{w} = 0\) (PHF case)

Figures 3a, b illustrate the effects of Eckert number in case of second grade fluid in the absence of suction/injection and thermal radiation in both PST and PHF cases. The energy dissipation of the flow configuration is measured by Eckert number. It is seen that an increase in \(E_{c}\) increases the temperature and hence increases the thermal boundary layer thickness. This leads to reduction of the rate of heat transfer from the plate surface. This reduction is further decreased due to presence of porous medium. Therefore, the presence of porous medium acts as an insulator to the plate surface. This result is in good agreement with the result of Chen [18].

Fig. 3
figure 3

a Temperature profiles for \(P_{r} = 1,M_{n} = 1,\,R_{c} = 1,R = 0,Q = 0,\,f_{w} = 0\) (PST case). b Temperature profiles for \(P_{r} = 3,M_{n} = 1,\,E_{c} = 0.1,R_{c} = 1,R = 0,\,Q = 0,\,f_{w} = 0\) (PHF case)

Figure 4a, b delineate the effect of radiation parameter in case of second grade fluid. It is observed that an increase in thermal radiation parameter (\(R\)) increases the temperature of the fluid layer and the processes get accelerated due to the presence of the porous matrix. The increase in temperature with an increase in radiation parameter causes a reduction in temperature gradient of the wall in PST case. Thus, it is concluded that thermal radiation is to reduce in order to make the cooling process faster.

Fig. 4
figure 4

a Temperature profiles for \(P_{r} = 3,M_{n} = 1,\,E_{c} = 0.1,R_{c} = 0.5,Q = 0,\,f_{w} = 0\) (PST case). b Temperature profiles for \(P_{r} = 3,M_{n} = 1,\,E_{c} = 0.1,Q = 0,\,f_{w} = 0\) (PHF case)

Figure 5a, b exhibit the effect of the internal heat generation/absorption parameter (\(Q\)) on the temperature distribution \(\theta (\eta )\) (PST) and \(\psi (\eta )\) (PHF) in case of second grade fluid. This shows that an increase in heat source strength (\(Q > 0\)) increases the temperature. This is due to generation of the heat in thermal boundary layer which causes the temperature to rise. In similar manner the heat sink causes the temperature absorption resulting in decrease in temperature. The result holds good for both PST and PHF. The role of porous matrix is to accelerate/decelerate the process in case of source/sink respectively.

Fig. 5
figure 5

a Temperature profiles for \(P_{r} = 3,M_{n} = 1,\,E_{c} = 0.1,R_{c} = 0.5,R = 0,\,f_{w} = 0.5\) (PST case). b Temperature profiles for \(P_{r} = 3,M_{n} = 1,\,E_{c} = 0.1,R_{c} = 0.5,R = 0,\,f_{w} = 0.5\) (PHF case)

Figure 6 exhibits the concentration profiles for various values of the parameters characterizing the concentration distribution. It is observed that chemical reaction parameter reduces the concentration distribution at all points irrespective of the presence or absence of porous matrix. From the curves V and X it is seen that the presence of porous matrix enhances the concentration level at all points of the flow domain in the presence of chemical reaction. Now, it is further seen that the effect of magnetic field is to increase the concentration (Curve II, M = 2, Curve VIII, M = 0) but further increase in M has no significant effect on concentration field in the absence of porous matrix whereas in the presence of porous matrix (Curves IV and IX) an increase in magnetic field reduces the concentration level. Moreover, heavier species (high value of \(S_{c}\)) contributes to the reduction in the level of concentration in the absence of porous matrix (Curve II and III).

Fig. 6
figure 6

Concentration profiles

From Table 1 it is noticed that an increasing magnetic parameter enhances the skin friction and it is further increased due to the presence of porous matrix. However, elasticity effect increases the skin friction. Thus, it is concluded that higher value of elastic elements is favorable in enhancing the skin friction in both impermeable (\(f_{w} = 0\)) and permeable (\(f_{w} \ne 0\)) surfaces.

Table 1 Skin friction coefficients

Tables 2 and 3 show the comparison of temperature gradients for second grade and second order fluids in PST and PHF cases respectively. On comparison it is observed that the results accomplished by Liu [20] and Datti et al. [21] well agree with the present study. From Table 2, it is seen that the absence of porous matrix and magnetic parameter with higher Prandtl value cause the Nusselt number to increase irrespective of source/sink in PST whereas, the reverse effect is attained in PHF. It is also seen that in the presence of porous matrix, the reverse trend appears in both PST and PHF. It is interesting to mention that in the presence of magnetic parameter with higher Prandtl value, the Nusselt number decreases in PST and increases in PHF in presence/absence of porous matrix and source/sink. Thus, it is concluded that for second grade fluid, the characteristics of Nusselt number are achieved in the permeable surface (\(f_{w} = 0\)) without thermal radiation (\(R = 0\)). From Table 3 it is observed that absence of porous matrix with high \(P_{r}\) enhances the Nusselt number in PST and reduces in PHF and the reverse effect is attained in the presence of the porous matrix but increasing value of magnetic parameter, presence/absence of source/sink parameter and thermal radiation parameter lead to the reverse effects in both PST and PHF. Therefore, the rate of heat transfer is influenced by the presence of porous matrix, magnetic parameter and thermal radiation parameter causes instability in the rate of heat transfer phenomena.

Table 2 Comparison of Nusselt numbers to Liu [20] for a second-grade fluid for R c  = 1.0, E c  = 0.2, R = 0 and f w  = 0
Table 3 Comparison of Nusselt numbers to Datti et al. [21] for Walters’ liquid \(B^{\prime }\)

Table 4 enlists the numerical values of the rate of mass transfer at the plate. It is interesting to observe that absence of chemical reaction contributes to positive value whereas presence of it gives rise to negative values. It is noticed that an increase in magnetic parameter \((M_{n} )\), porosity parameter \((K_{p} )\) and Schmidt parameter \((S_{c} )\) (that is for heavier species) enhances the Sherwood number whereas increase in chemical reaction parameter decreases the Sherwood number.

Table 4 Sherwood number

7 Conclusion

  1. 1.

    Porous matrix acting as an insulator to the vertical surface prevents energy loss due to free convection which in turn enhances the velocity.

  2. 2.

    Presence of porous matrix and elasticity of the fluid overcomes the resistive force of magnetic field and hence the velocity increases due to the presence of both.

  3. 3.

    Presence of elasticity also leads to increase the temperature at all points irrespective of presence/absence of porous matrix.

  4. 4.

    The slow rate of thermal diffusion in presence of magnetic field and porous matrix causes thinning of thermal boundary layer thickness.

  5. 5.

    The variation in temperature is more sensitive on account of heat flux.

  6. 6.

    Presence of chemical reaction as well as porous matrix with moderate values of magnetic parameter in case of heavier species reduces the concentration level.

  7. 7.

    Higher value of magnetic field in conjunction with porous matrix reduce the concentration level.

  8. 8.

    Presence of elastic element favors in reducing the skin friction in both permeable and impermeable surfaces.

  9. 9.

    Presence of magnetic parameter causes to decrease the Nusselt number in PST case and increase the same in PHF case

  10. 10.

    Presence of porous matrix and magnetic parameter influences the rate of heat transfer.

  11. 11.

    Porous matrix enhances the rate of mass transfer whereas increase in chemical reaction has no impact on the absence of porous matrix.