1 Introduction

In present days, the review of non-Newtonian fluids is an interesting concept to the novel investigators in an aspect of their utilizations in the production and technology. Foodstuffs, material industries, shampoos, form oil and bioengineering are some examples of non-Newtonian fluids. Fluids those does not pursue the Newton’s law are called non-Newtonian fluids. Maxwell [1] developed the one-dimensional Maxwell fluid model, which includes a subclass of rate-type fluids, and it is found to have only relaxation time but not retardation time. Oldroyd [2] introduced the Oldroyd-B fluid; it is the branch of non-Newtonian fluid. It shows both relaxation and retardation time properties of a non-Newtonian fluid. Fetecau [3] investigated the Maxwell fluid is highly applicable for large relaxation time polymer extrusion process, drawing of metals. Temperature and concentration effects on non-Newtonian fluid were investigated by Chuo-Jeng Huang [4]. Abdul Gaffar et al. [5] were analyzed by a non-Newtonian fluid across a non-isothermal wedge, utilizing implicit finite difference method for obtaining graphical representations. Soret and Dufour effects on Casson and Maxwell fluids across a stretching sheet were investigated by Ramana Reddy et al. [6] by implementing RK Felhberg technique for obtaining solutions and presenting graphical representations to investigate the consequences for both the non-Newtonian fluids. Raju et al. [7] analyzed the impacts of non-Newtonian fluid over homogeneous/heterogeneous reactions, exhibiting graphical representations for both stretching and shrinking surfaces. Consequently, many researchers were involved in examining the different physical conditions of Oldroyd-B fluid in various regions (see [8,9,10,11,12,13,14,15,16,17]).

Magnetohydrodynamic flow across a stretching/shrinking disk was analyzed by Khuzaimah Soid et al. [18], investigating stability of the multiple solutions. Hydromagnetic flow over a stretchable curved space was studied by Hayat et al. [19] and presented graphical representations for friction factor, rate of heat and mass transfers to estimate curvature. MHD flow of a nano-fluid through a saturating permeability porous was analyzed by Siva Kumar Reddy et al. [20] by using HAM and carried out the study of numerical representations. HAM solutions on MHD 3D effects were scrutinized by Hayat et al. [21] and concluded that temperature and concentration fields are enhancing for escalating values of M. Influence of heat transfer effects on MHD flow of thermal radiation and viscous dissipation was investigated by Nayak [22]. Ganesh Kumar et al. [23] distinguish the Joule heating and viscous dissipation on 3D Oldroyd-B nano-fluid flow along thermal radiation. Impacts of Joule and viscous heating effects on 3D hydromagnetic flow including mass and heat fluxes were examined by Muhammad et al. [24]. Jaber [25] investigated the power law heat flux with Joule heating and viscous dissipation on 3D hydromagnetic through a porous stretching sheet.

Heat and mass transfer flows across a stretching sheet with double stratification have a main role in polymer production, chemical industries, wire drawing, paper production etc. Heat and mass transfer has several applications like glass fiber, extrusion process and damage of crops due to freezing. Impact of hydromagnetic tangent—hyperbolic nano-fluid—was explored by Sajid et al. [26] and analytically solved by using HAM. Impact of heat and mass transfer effects across a stretching sheet was considered by Mishra and Bhatti [27] determined numerically with the aid of successive linearization method and Chebyshev spectral collocation method. 2D heat and mass transfer effects of Casson fluid in the presence of wall mass transfer was explained by Ali et al. [28]. 2D boundary layer flow of double stratification of Eyring–Powell fluid was probed by Khalil et al. [29] and plotted graphical representations for friction factor, rate of heat and mass transfers for both the cylinder and plate. Hydromagnetic non-Newtonian fluid across a stretching cylinder with double stratification was examined by Khalil et al. [30] and concluded that \(\varepsilon_{1}\) enhances the rate of heat transfer decays.

In the raised references, the influence of viscous dissipation is not addressed. The objective of the current paper carried out the study of 3D flow of Oldroyd-B dual stratified fluid through a stretching sheet in direction of temperature-dependent heat source/sink, chemical reaction and viscous dissipation in the magnetic field.

2 Model problem

We consider an incompressible steady 3D flow of an Oldroyd-B fluid past a stretching surface at \(z = 0\). The physical interpretation of the flow is presented in Fig. 1. The fluid flow is taken at constant magnetic field \(B_{0}\) applied in the normal direction. The magnetic Reynold’s number is given to be small, and thus, the induced magnetic field is negligible. Let \(u_{w} = mx\) and \(v_{w} = ny\) be the velocities along \(x\) and \(y\) directions of the stretching surface. Thermal and solutal stratifications are taken into account in the direction of viscous dissipation, thermal radiation, temperature-dependent heat source/sink and chemical reaction parameter.

Fig. 1
figure 1

Physical model and coordinate system

The constitutive equation for 3D Oldroyd-B fluid can be addressed as [31] at pages 221–223.

$$\tau = - {\text{PI}} + S$$
(1)
$$S + \lambda_{1} \frac{\delta }{\delta t}S = \mu \left( { A_{1} + \lambda_{2} \frac{{\delta A_{1} }}{\delta t}} \right)$$
(2)

where \(\lambda_{1}\) and \(\lambda_{2}\) are the relaxation time and retardation time, respectively, and \(\frac{\delta }{\delta t}\) is the covariant differentiation. The first Rivlin–Ericksen tensor \(A_{1}\) is

$$A_{1} = {\text{grad}}\,U + \left( {{\text{grad}} U} \right)^{*}$$
(3)

where *denotes the transpose of the matrix and the velocity U is taken as

$$U = \left( {u_{1} \left( {x,y,z} \right), u_{2} \left( {x,y,z} \right),u_{3} \left( {x,y,z} \right)} \right)$$
(4)

The definition of \(\frac{\delta }{\delta t}\) is

$$\frac{{\delta a_{i} }}{\delta t} = \frac{{\partial a_{i} }}{\partial t} + u_{r} a_{i,r} - u_{i,r} a_{r}$$
(5)

The governing equations of the 3D Oldroyd-B fluid flow under the boundary layer assumptions are [32, 33]:

$$\frac{\partial u}{\partial x} + \frac{\partial v}{\partial y} + \frac{\partial w}{\partial z} = 0$$
(6)
$$\begin{aligned} & u\frac{\partial u}{\partial x} + v\frac{\partial u}{\partial y} + w\frac{\partial u}{\partial z} + \lambda_{1} \left( {u^{2} \frac{{\partial^{2} u}}{{\partial x^{2} }} + v^{2} \frac{{\partial^{2} u}}{{\partial y^{2} }} + w^{2} \frac{{\partial^{2} u}}{{\partial z^{2} }} + 2uv\frac{{\partial^{2} u}}{\partial x\partial y} + 2uw\frac{{\partial^{2} u}}{\partial x\partial z} + 2vw\frac{{\partial^{2} u}}{\partial y\partial z}} \right) \\ & \quad = \nu \left( {\frac{{\partial^{2} u}}{{\partial z^{2} }} + \lambda_{2} \left( {u\frac{{\partial^{3} u}}{{\partial x\partial z^{2} }} + v\frac{{\partial^{3} u}}{{\partial y\partial z^{2} }} + w\frac{{\partial^{3} u}}{{\partial z^{3} }} - \frac{\partial u}{\partial x}\frac{{\partial^{2} u}}{{\partial z^{2} }} - \frac{\partial u}{\partial y}\frac{{\partial^{2} u}}{{\partial z^{2} }} - \frac{\partial u}{\partial z}\frac{{\partial^{2} u}}{{\partial z^{2} }}} \right)} \right) - \frac{{\sigma B_{0}^{2} u}}{\rho } \\ \end{aligned}$$
(7)
$$\begin{aligned} u\frac{\partial v}{\partial x} + v\frac{\partial v}{\partial y} + w\frac{\partial v}{\partial z} + \lambda_{1} \left( {u^{2} \frac{{\partial^{2} v}}{{\partial x^{2} }} + v^{2} \frac{{\partial^{2} v}}{{\partial y^{2} }} + w^{2} \frac{{\partial^{2} v}}{{\partial z^{2} }} + 2uv\frac{{\partial^{2} v}}{\partial x\partial y} + 2uw\frac{{\partial^{2} v}}{\partial x\partial z} + 2vw\frac{{\partial^{2} v}}{\partial y\partial z}} \right) \hfill \\ = \nu \left( {\frac{{\partial^{2} v}}{{\partial z^{2} }} + \lambda_{2} \left( {u\frac{{\partial^{3} v}}{{\partial x\partial z^{2} }} + v\frac{{\partial^{3} v}}{{\partial y\partial z^{2} }} + w\frac{{\partial^{3} v}}{{\partial z^{3} }} - \frac{\partial v}{\partial x}\frac{{\partial^{2} v}}{{\partial z^{2} }} - \frac{\partial v}{\partial y}\frac{{\partial^{2} v}}{{\partial z^{2} }} - \frac{\partial v}{\partial z}\frac{{\partial^{2} v}}{{\partial z^{2} }}} \right)} \right) - \frac{{\sigma B_{0}^{2} v}}{\rho } \hfill \\ \end{aligned}$$
(8)
$$\begin{aligned} & u\frac{\partial T}{\partial x} + v\frac{\partial T}{\partial y} + w\frac{\partial T}{\partial z} = \frac{k}{{\rho c_{p} }}\frac{{\partial^{2} T}}{{\partial z^{2} }} + \frac{{16\sigma^{*} T_{\infty }^{3} }}{{3\rho c_{p} k^{*} }}\frac{{\partial^{2} T}}{{\partial z^{2} }} + \frac{\mu }{{\rho c_{p} }}\left[ {\left( {\frac{\partial u}{\partial z}} \right)^{2} + \left( {\frac{\partial v}{\partial z}} \right)^{2} } \right] \\ & \quad + \frac{{Q_{0} }}{{\rho c_{p} }}\left( {T - T\infty } \right) + \frac{{\sigma B_{0}^{2} }}{\rho }\left( {u^{2} + v^{2} } \right) \\ \end{aligned}$$
(9)
$$u\frac{C}{x} + v\frac{C}{y} + w\frac{C}{\text{z}} = D\frac{{\partial^{2} C}}{{z^{2} }} - k_{0} \left( {C - C_{\infty } } \right)$$
(10)

where u, v and w represent the velocity components in 3D, respectively,\(\lambda_{1 }\) and \(\lambda_{2}\) are the times of relaxation and retardation, T and C are the fluid temperature and concentration, \(\nu ,\sigma ,\rho\) and \(\mu\) denote the kinematic viscosity, thermal diffusivity, density and dynamic viscosity of the fluid, \(k\) the medium thermal conductivity, \(k^{*}\) the absorption coefficient, \(\sigma^{*}\) the Stefen–Boltzman constant, \(Q_{0}\) the heat generation \((Q_{0} > 0)\) or absorption \((Q_{0} < 0)\) coefficient, \(c_{p}\) the specific heat at constant pressure, D the fluid mass diffusivity and \(k_{0}\) the chemical reaction. The applicable boundary conditions to the present flow are:

$$u = U_{w} ,v = V_{w} ,w = 0,T = T_{w} = T_{0} + m_{1} x,C = C_{w} = C_{0} + n_{1} x\quad {\text{at}}\,z = 0$$
(11)
$$u,v \to 0,T \to T_{\infty } = T_{0} + m_{2} x,C \to C_{\infty } = C_{0} + n_{2} x,\quad {\text{as}}\,z \to \infty$$
(12)

where \(m_{1} , m_{2} , n_{1} , n_{2}\) are dimensional constants, \(T_{w}\) and \(T_{\infty }\) are uniform temperature and temperature of the fluid in the free stream with \(T_{w} > T_{\infty }\), \(C_{w}\) and \(C_{\infty }\) are the uniform concentration and concentration of the fluid in the free stream with \(C_{w} > C_{\infty }\) and the reference temperature, reference concentration are denoted by \(T_{0}\), \(C_{0}\), respectively.

3 Method of solution

The recommended similarity variables are given by:

$$f^{{\prime }} \left( \eta \right) = \frac{u}{mx}, \quad g^{{\prime }} \left( \eta \right) = \frac{v}{ny}, \quad f\left( \eta \right) + g\left( \eta \right) = - \frac{w}{{\sqrt {m\nu } }}$$
$$\eta = z\sqrt {\frac{m}{\nu }}, \quad \theta \left( \eta \right) = \frac{{T - T_{\infty } }}{{T_{w} - T_{0} }}, \quad \phi \left( \eta \right) = \frac{{C - C_{\infty } }}{{C_{w} - C_{0} }}$$
(13)

Equation (6) convinced automatically by using Eq. (13) and Eqs. (7)–(12)

$$\begin{aligned} & f^{{{\prime \prime \prime }}} + \left( {f + g} \right)f^{{{\prime \prime }}} - f^{{{\prime }2}} + \beta_{1} \left( {2\left( {f + g} \right)f^{{\prime }} f^{{\prime }} - \left( {f + g} \right)^{2} f^{{{\prime \prime \prime }}} } \right) \\ & \quad + \beta_{2} \left( {\left( {f^{{{\prime \prime }}} + g^{{{\prime \prime }}} } \right)f^{{{\prime \prime }}} - \left( {f + g} \right)f^{iv} } \right) - Mf^{{\prime }} = 0 \\ \end{aligned}$$
(14)
$$\begin{aligned} & g^{{{\prime \prime \prime }}} + \left( {f + g} \right)g^{{{\prime \prime }}} - g^{{{\prime }2}} + \beta_{1} \left( {2\left( {f + g} \right)g^{{\prime }} g^{{{\prime \prime }}} - \left( {f + g} \right)^{2} g^{{{\prime \prime \prime }}} } \right) \\ & \quad + \beta_{2} \left( {\left( {f^{{{\prime \prime }}} + g^{{{\prime \prime }}} } \right)g^{{{\prime \prime }}} - \left( {f + g} \right)g^{iv} } \right) - Mg^{{\prime }} = 0 \\ \end{aligned}$$
(15)
$$\left( {1 + \frac{4}{3}Nr} \right)\theta^{{{\prime \prime }}} - pr\left( {f^{{\prime }} \theta + f^{{\prime }} \varepsilon - \left( {f + g} \right)\theta^{{\prime }} - \left( {Ec_{x} f^{{''^{2} }} + Ec_{y} g^{{''^{2} }} } \right) - Q\theta - M\left( {Ec_{x} f^{{^{{{\prime }2}} }} + Ec_{y} g^{{{\prime }^{2} }} } \right)} \right) = 0$$
(16)
$$\phi^{{{\prime \prime }}} + Sc\left( {\left( {f + g} \right)\phi^{{\prime }} - f^{{\prime }} \phi - \varepsilon_{2} f^{{\prime }} - \gamma \phi } \right) = 0$$
(17)
$$f^{{\prime }} \left( 0 \right) = 1,\,g^{{\prime }} \left( 0 \right) = c,\,f\left( 0 \right) = 0,\,g\left( 0 \right) = 0,\,\theta \left( 0 \right) = 1 - \varepsilon_{1} ,\,\phi \left( 0 \right) = 1 - \varepsilon_{2}$$
(18)
$$f^{{\prime }} \left( \infty \right) \to 0,\,g^{{\prime }} \left( \infty \right) \to 0,\,\theta \left( \infty \right) \to 0,\,\phi \left( \infty \right) \to 0$$
(19)

where superscript expresses the differentiation with respect to \(\eta\).

\(M\left( { = \frac{{\sigma B_{0}^{2} }}{\rho m}} \right)\) the magnetic field parameter, \(c \left( { = \frac{n}{m}} \right)\) the stretching ratio parameter, \(\beta_{1} \left( { = \lambda_{1} m} \right)\) and \(\beta_{2} \left( { = \lambda_{2} n} \right))\) are Deborah numbers, \(Pr\left( { = \frac{{\rho c_{p} \nu }}{k}} \right)\) the Prandtl number, \(Nr( = \frac{{4\sigma^{*} T_{\infty }^{3} }}{{kk^{*} }})\) the thermal radiation parameter, \(Ec_{x} = \frac{{u_{w}^{2} }}{{c_{p} \left( {T_{w} - T_{0} } \right)}}\), \(Ec_{y} = \frac{{v_{w}^{2} }}{{c_{p} \left( {T_{w} - T_{\infty } } \right)}}\) the Eckert number along x and y directions, \(Q\left( { = \frac{{Q_{0} }}{{\rho c_{p} m}}} \right)\) the heat source/sink parameter, \(\varepsilon_{1} \left( { = \frac{{m_{2} }}{{m_{1} }}} \right)\) the thermal stratification parameter, \(\varepsilon_{2} \left( { = \frac{{n_{2} }}{{n_{1} }}} \right)\) the solutal stratification parameter, \(Sc\left( { = \frac{\nu }{D}} \right)\) the Schmidt number, \(\gamma \left( { = k_{0} /m} \right)\) the chemical reaction parameter.

In Eqs. (14) and (15), if

  1. 1.

    \(\beta_{2} = 0\), then the present problem performs Maxwell fluid model.

  2. 2.

    \(\beta_{1} = \beta_{2} = 0\), then the present problem performs classical Newtonian fluid.

The local frictional drag coefficients, heat and mass transfer rates are

$$C_{{f_{xz} }} \sqrt {Re_{x} } = \frac{{1 + \beta_{1} }}{{1 + \beta_{2} }}f^{{{\prime \prime }}} \left( 0 \right)$$
(20)
$$C_{{f_{yz} }} \sqrt {Re_{y} } = \frac{{1 + \beta_{1} }}{{1 + \beta_{2} }}g^{{{\prime \prime }}} \left( 0 \right)$$
(21)
$$Nu_{x} /Re_{x}^{1/2} = - \left( {1 + \frac{4}{3}Nr} \right)\theta^{{\prime }} \left( 0 \right)$$
(22)
$$Sh_{x} /Re_{x}^{1/2} = - \phi^{\prime}\left( 0 \right)$$
(23)

where \(Re_{x} \left( { = \frac{{u_{w} x}}{\nu } } \right)\) is the local Reynolds number.

The highly coupled nonlinear differential Eqs. (14)–(17) that are in subject to the corresponding boundary conditions (18)–(19) are worked out by employing bvp4c and obtained numerical values. The ability of numerical method is approved by examining the results, that is \(f^{{{\prime \prime }}} \left( 0 \right)\) of the present analysis with those calculated by Ibrahim et al. [31], Hayat et al. [32] in the limiting case for a Newtonian fluid when \(Pr = Nr = Ec_{x} = Ec_{y} = Q = Sc = \gamma = \varepsilon_{1} = \varepsilon_{2} =\) \(\beta_{1} = \beta_{2} = 0\). Table 1 explains that the outcomes are in wonderful agreement (Tables 2, 3).

Table 1 Comparison of local skin friction coefficient \(f^{{{\prime \prime }}} \left( 0 \right)\) with Ibrahim et al. [34] and Hayat et al. [35] when \(\beta_{1} = \beta_{2} = Pr = Nr = Ec_{x} = Ec_{y} = Q = Sc = \gamma = \varepsilon_{1} = \varepsilon_{2} = 0\) for Newtonian fluid
Table 2 Comparison of various values of c with Hayat et al. [36], Rudraswamy et al. [37] and Ganesh et al. [38]
Table 3 Numerical values of \(- \theta^{{\prime }} \left( 0 \right)\) and \(- \phi^{{\prime }} \left( 0 \right)\) for some values of Pr = 1.2, Ec = 0.1, Sc = 0.8, \(\gamma\) = 0.1, Q = 0.2 and Nr = 1.0

4 Results and discussion

The investigation is focused to explore the consequences of double stratification on 3D flow of an Oldroyd-B fluid past a stretching surface under the effect of a transverse magnetic field, thermal radiation in the direction of temperature-dependent heat source/sink, viscous heating and first-order chemical reaction. To understand the physics of the problem under investigation, the flow variables, viz. velocity, temperature and species concentration, are computationally evaluated at some fixed values of non-dimensional parameters \(\beta_{1} = \beta_{2} = 0.5, \varepsilon_{1} = \varepsilon_{2 } = 0.1\), M = 0.5, Pr = 1.2, \(Ec_{x} = Ec_{y}\) = 0.1, Sc = 0.8, \(\gamma\) = 0.1, Q = 0.2, Nr = 1.0, c = 0.8 except the diverse values as addressed in the respective figures and illustrated through plots. Physical interpretations of the results are discussed in detail.

Figures 2, 3 and 4 indicate the velocity, temperature and concentration plots for various values of Deborah number \(\left( {\beta_{1} } \right)\). Figure 2 shows that velocity decreases with increasing \(\beta_{1}\) as it reduces the drag experienced by the stretching surface. Temperature distribution is seen to increase in the thermal boundary layer as \(\beta_{1}\) enlarges and the associated thermal boundary layer thickness increases due to the reduction in velocity in the boundary layer. Species concentration qualitatively follows the same behavior as that of temperature.

Fig. 2
figure 2

Deviation of \(\beta_{1}\) on \(f^{{\prime }} (\eta )\)

Fig. 3
figure 3

Deviation of \(\beta_{1}\) on \(\theta (\eta )\)

Fig. 4
figure 4

Deviation of \(\beta_{1}\) on \(\phi (\eta )\)

Figures 5, 6 and 7 depict the deviations in velocity, temperature and concentration profiles for distinct values of \(\beta_{2}\), and it is observed that the velocity increases with increasing \(\beta_{2}\) as it enhances the drag experienced by stretching plane. The profile of temperature and thermal boundary layer thickness is reducing objectives of \(\beta_{2}\). The Deborah numbers \(\beta_{1}\) and \(\beta_{2}\) have reversal effects on the profile of temperature in Figs. 3 and 6. Higher relaxation time inspires to larger temperature, while larger retardation time leads to lower temperature. Therefore, an increment in \(\beta_{1}\) produces a high temperature while higher \(\beta_{2}\) illustrates the lower temperature. Concentration profile follows the similar behavior as that of temperature.

Fig. 5
figure 5

Deviation of \(\beta_{2}\) on \(f^{{\prime }} (\eta )\)

Fig. 6
figure 6

Deviation of \(\beta_{2}\) on \(\theta (\eta )\)

Fig. 7
figure 7

Deviation of \(\beta_{2}\) on \(\phi (\eta )\)

Figure 8 presents the consequences of the parameter M on the profile of velocity. It is clear that enhancing the strength of M resulted in diminishing the velocity near the plate \(\left( {0 \le \eta \le 3} \right)\) and outside this range its influence is negligible. Velocity is observed to decrease with the increase in M accompanied by thinning of boundary layers. This reduction can be attributed to the fact that the transverse magnetic field generates the Lorentz force that resists the flow. Consequently the motion of the fluid slows down leading to the depreciation of velocity. Figure 9 reveals that temperature is seen to increase with magnetic field, and hence, the corresponding thermal boundary layers are enlarged; since the fluid is decelerated, energy is dissipated in the form of heat leading to an increase in temperature in the thermal boundary layer. Figure 10 plots the solutal concentration response to magnetic field is qualitatively similar to that on temperature as illustrated in Fig. 9.

Fig. 8
figure 8

Deviation of \(M\) on \(f^{{\prime }} (\eta )\)

Fig. 9
figure 9

Deviation of \(M\) on \(\theta (\eta )\)

Fig. 10
figure 10

Deviation of \(M\) on \(\phi (\eta )\)

Figure 11 shows the effect of thermal stratification on temperature profile. Temperature gradient between boundary surface and ambient fluid decreases, leading to a reduction in temperature. Physically thermal stratification effect decreases the temperature difference between surface and the ambient fluid which leads to weaker temperature field. Figure 12 explores the influence of solutal stratification (\(\varepsilon_{2}\)) on the concentration profile. It is clearly seen that species concentration falls significantly for increasing values of \(\varepsilon_{2}\). Figure 13 is the plot of temperature showing the deviation of Prandtl number (Pr). It is seen that temperature diminishes when Pr is expanded as the fluid has low thermal diffusivity for higher Prandtl number which causes minimization in temperature. Figure 14 indicates the temperature profile for a variation in thermal radiation parameter (Nr). Temperature and the thermal boundary layer thickness are enhanced with increasing values of Nr. The fluid provides more heat for higher values of Nr which leads to enlarge the temperature and the thickness of thermal boundary layer.

Fig. 11
figure 11

Deviation of \(\varepsilon_{1}\) on \(\theta (\eta )\)

Fig. 12
figure 12

Deviation of \(\varepsilon_{2}\) on \(\phi (\eta )\)

Fig. 13
figure 13

Deviation of \(Pr\) on \(\theta (\eta )\)

Fig. 14
figure 14

Deviation of \(Nr\) on \(\theta (\eta )\)

Figure 15 presents the influence of heat source enhancing the temperature profile, since heat source discharges energy in the thermal boundary layer and augments the temperature. For increasing \(Q > 0\) (heat source), the temperature further increases. In the case of absorption of heat \(Q < 0\) (heat sink), temperature drops with decreasing values of \(Q < 0\) due to absorption of energy in the thermal boundary layer.

Fig. 15
figure 15

Deviation of \(Q\) on \(\theta (\eta )\)

It is evident from Fig. 16 that the species concentration diminishes when Schmidt number increases owing to reduction in the solutal boundary layer thickness. It exhibits the larger diffusing species have high retarding influence on concentration profile. Figure 17 indicates that the non-dimensional concentration reduces for larger values of chemical reaction parameter (\(\gamma\)). Higher chemical reaction parameter results in further reduction in the thickness of the solutal boundary layer. This results in watery molecular diffusivity and thinner boundary layers.

Fig. 16
figure 16

Deviation of \(Sc\) on \(\phi (\eta )\)

Fig. 17
figure 17

Deviation of \(\gamma\) on \(\phi (\eta )\)

Figures 18 and 19 present that the temperature significantly increases for increasing values of \(Ec_{x}\) and \(Ec_{y}\). For \(Ec_{x} = Ec_{y} = 1.5\), we notice an overshoot of the temperature very close to the boundary. Consequently, the thickness of the thermal boundary layer increases in a region. Physically, increase in Eckert number implies storage of heat energy in the fluid owing to the frictional heating. The coefficient of frictional drag is seen to decrease with Deborah number \(\left( {\beta_{1} } \right)\) and magnetic field parameters as plotted in Fig. 20. Nusselt number versus thermal radiation parameter varying thermal stratification parameter is drawn in Fig. 21. It is noticed that Nusselt number decreases significantly for increasing values of thermal radiation. Increasing values of thermal stratification parameter decrease Nusselt number uniformly. It exhibits from Fig. 22 that the Nusselt number is seen to enhance appreciably with Prandtl number while it depreciates with increasing Eckert number. It is noticed that when \(Ec_{x}\) > 0.7, the Nusselt number shows the reversal behavior as that of \(Ec_{x}\) < 0.7. Figure 23 projects the behavior of Sherwood number eliciting the influence of \(\varepsilon_{2}\) and Sc. The parameter \(\varepsilon_{2}\) has a decreasing influence on Sherwood number while Schmidt number has a reversal effect.

Fig. 18
figure 18

Deviation of \(Ec_{x}\) on \(\theta (\eta )\)

Fig. 19
figure 19

Deviation of \(Ec_{y}\) on \(\theta (\eta )\)

Fig. 20
figure 20

Deviation of \(M\) versus \(\beta_{1}\) on \(C_{fx}\)

Fig. 21
figure 21

Deviation of \(Nr\) versus \(\varepsilon_{1}\) on \(N_{ux}\)

Fig. 22
figure 22

Deviation of \(Ec_{x}\) versus \(Pr\) on \(N_{ux}\)

Fig. 23
figure 23

Deviation of \(Sc\) versus \(\varepsilon_{2}\) on \(Sh_{x}\)

5 Conclusions

The concurrent effects of magnetic field and dual stratification of 3D Oldroyd-B fluid flow were analyzed in the direction of thermal radiation, viscous heating and heat generation or absorption. Some significant points of the problem are summarized below:

  • The Deborah number (\(\beta_{1}\)) and magnetic field parameters have a decreasing effect on velocity while temperature and concentration show a reverse behavior.

  • The parameters \(\varepsilon_{1}\) and Pr are reducing the temperature, whereas thermal radiation and heat source parameters have an increasing effect.

  • Species concentration is depreciated with regard to Schmidt number, chemical reaction and solutal stratification parameters.

  • Frictional drag coefficient is decreased with respect to the Deborah number (\(\beta_{1}\)) and magnetic field parameters.

  • Nusselt number increases with Prandtl number, while it decreases with parameters Nr and \(\varepsilon_{1}\).

  • Rate of mass transfer increases with solutal stratification parameter (\(\varepsilon_{2}\)).