Introduction

Magnetohydrodynamic (MHD) flow is a fluid flow that interacts with an applied magnetic field. Newtonian and non-Newtonian versions are used to engage the fluid. Commonly well-known Newtonian fluids are gasoline, alcohol, water, and minerals. When it comes to the study of MHD, the inferred fluid model will serve as the electrical conductor. To better understand the significance of MHD flows, scientists suggested linking the integrated magnetic field with Navier–Stokes equations, and the final results identify appropriate remarks in both engineering and industrial areas such as electrolytic Hall cells, plasma welding, casting processes, defensive eccentricities, and thermal transmission characteristics are some examples. Numerous researchers and scientists expressed their perspectives on the role of magnetic field participation like Walker and Hua1 discussed the interaction of magnetic field over rectangular ducts. Chaturvedi2 addressed the MHD flow of viscous fluid with variable suction through a porous plate. Aldoss3 used a vertical cylinder to investigate the influence of magnetic field using the non-Darcian model. He discovered that when a magnetic field is introduced, both normal and forced convection regimes produce a reverse effect. Nanousis4 signified the time-dependent MHD flow of viscous fluid though an oscillatory surface. The MHD flow of electrically conducting fluid over a thermally stratified medium was addressed by Chamkha5. The heat transfer in MHD stagnation point flow of micropolar fluid over a three-dimensional frame was addressed by Gupta and Bhattacharyya6. The micropolar fluid flow with Joule heating and magnetic impacts is represented by Hakiem et al.7. The mass and heat transfer characteristics of MHD micropolar fluid flow through a circular cylinder was analyzed by Mansour et al.8. The thermal transmission characteristics of MHD fluid flow in the existence of thermal radiation were proposed by Sadeek9. The flow of micropolar fluid with MHD and constant suction impacts was presented by Amin10. The MHD flow of Oldroyd-B fluid was addressed by Hayat et al.11. The MHD flow of Casson fluid through a shrinking surface was discussed by Nadeem et al.12. Thammanna et al.13 addressed the chemically reactive MHD flow of Casson fluid through an unsteady stretching sheet with convective boundary conditions. Ramesh et al.14 presented the MHD Casson fluid flow with Cattaneo–Christov heat theory heat absorption/generation. The MHD flow of nanofluid past an unsteady contracting cylinder with convective condition and heat generation/absorption was investigated by Ramesh et al.15. Bilal et al.16 presented the numerical analysis of MHD viscoelastic fluid past an exponentially extending sheet. The related studies towards this development can be seen in Refs.17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46.

Because of its useful applications in engineering and industry, a study of stratification phenomena in non-Newtonian fluids has got a lot of interest. Temperature fluctuations, composition variations, or a combination of different liquids of varying thicknesses causes stratification of the medium. For instance, thermal rejection into the atmosphere, storage systems of heat energy, geophysical flows, etc. In short, stratification takes place in both natural and industrial phenomena. Using thermal and solutal stratifications many attempts have been performed like Yang et al.47 analyzed the convective fluid flow over a thermally stratified medium. The buoyance flow over a stratified medium was discussed by Jaluria and Gebhart48. The mixed convection fluid flow over a stratified medium was introduced by Ishak et al.49. The thermally stratified flow of micropolar fluid over a vertical plate constant and uniform heat flux was examined by Chang and Lee50. The incompressible and electrically conducting viscous fluid flow through an inclined plate was presented by Singh and Makinde51. The MHD flow of dissipative fluid with heat generation and second-order chemical reaction was introduced by Malik and Rehman52. The incompressible and mixed convective flow of viscous fluid through a thermally stratified stretching cylinder was introduced by Mukhopadhyay and Ishak53. Cheng et al.54 investigated the mass and heat transmission in a power-law fluid through a stratified medium. The heat transmission in a boundary layer flow through a stratified vertical plate was presented by Ibrahim and Makinde55. Furthermore, related analyses are mentioned in Refs.56,57,58,59,60.

Our contribution to the field of non-Newtonian fluids consists of Casson fluid flow containing gyrotactic microorganisms through a stratified stretching cylinder. Furthermore, stagnation point, Joule heating, heat absorption/generation, thermal stratification, mass stratification, motile stratification, nonlinear thermal radiation, magnetic field, and chemical reaction are taken into account. Also, the fluid flow is treated for magnetized and non-magnetized conditions. The present analysis consists of five phases. In the first four phases, we have compared our work with previously published investigations while phase five is consists of our new results.

At the end of this analysis, we will be able to answer that:

  • How the streamlines behave for non-Newtonian (Casson) and Newtonian fluid?

  • How the streamlines behave for magnetized and non-magnetized Casson fluid flow under the stagnation point?

  • What are the impacts of bioconvection Lewis number, Peclet number, and microorganisms’ concentration difference parameter on Casson fluid flow?

  • What are the impacts of bioconvection Lewis number, Peclet number, and microorganisms’ concentration difference parameter on density number?

Problem formulation

The mathematical model for Casson fluid containing gyrotactic microorganisms through a stretching cylinder is modeled under the effects of various parameters like stagnation point, Joule heating, heat absorption/generation, thermal stratification, mass stratification, motile stratification, thermal radiation, magnetic field, and chemical reaction.

For an isotropic and incompressible flow of Casson fluid, the rheological equation is stated as61:

$$ \tau_{ij} = \left\{ {\begin{array}{*{20}l} {2\left( {\mu_{B} + \frac{{p_{y} }}{{\sqrt {2\pi } }}} \right)e_{ij} ,\,\,\,\pi > \pi_{c} } \hfill \\ {2\left( {\mu_{B} + \frac{{p_{y} }}{{\sqrt {2\pi_{c} } }}} \right)e_{ij} ,\,\,\,\pi < \pi_{c} } \hfill \\ \end{array} } \right., $$

where \(\tau_{ij}\) is the \(\left( {i,j} \right){\text{th}}\) component of stress tensor, \(\pi = e_{ij} e_{ij}\) and \(e_{ij}\) are the \(\left( {i,j} \right){\text{th}}\) component of the deformation rate, \(p_{y}\) is the fluid yield stress, and \(\mu_{B}\) is the plastic dynamic viscosity of the non-Newtonian fluid, \(\pi\) is the product of component of deformation rate with itself and \(\pi_{c}\) is the critical value of this product.

According to these assumptions the leading equations are38,57,60:

$$ \frac{{\partial \left( {rU} \right)}}{\partial x} + \frac{{\partial \left( {rV} \right)}}{\partial r} = 0, $$
(1)
$$ U\frac{\partial U}{{\partial x}} + V\frac{\partial V}{{\partial r}} = U_{e} \frac{{\partial U_{e} }}{\partial x} + \nu \left( {1 + \frac{1}{\beta }} \right)\left( {\frac{1}{r}\frac{\partial U}{{\partial r}} + \frac{{\partial^{2} U}}{{\partial r^{2} }}} \right) - \frac{{\sigma B_{0}^{2} }}{\rho }\left( {U - U_{e} } \right), $$
(2)
$$ \begin{aligned} U\frac{\partial T}{{\partial x}} + V\frac{\partial T}{{\partial r}} & = \frac{\alpha }{r}\frac{\partial }{\partial r}\left( {r\frac{\partial T}{{\partial r}}} \right) + \frac{1}{{\rho c_{p} }}\frac{1}{r}\frac{{4\sigma^{*} }}{{3k^{*} }}\frac{\partial }{\partial r}\left( {r\frac{{\partial T^{4} }}{\partial r}} \right) \\ & \quad + \tau \left( {D_{B} \frac{\partial T}{{\partial r}}\frac{\partial C}{{\partial r}} + \frac{{D_{T} }}{{T_{\infty } }}\left( {\frac{\partial T}{{\partial r}}} \right)^{2} } \right) + \frac{{Q_{0} }}{{\rho c_{p} }}\left( {T - T_{\infty } } \right) + \frac{{\sigma B_{0}^{2} }}{{\rho c_{p} }}U^{2} , \\ \end{aligned} $$
(3)
$$ U\frac{\partial C}{{\partial x}} + V\frac{\partial C}{{\partial r}} = D_{B} \left( {\frac{1}{r}\frac{\partial C}{{\partial r}} + \frac{{\partial^{2} C}}{{\partial r^{2} }}} \right) + \frac{{D_{T} }}{{T_{\infty } }}\left( {\frac{1}{r}\frac{\partial T}{{\partial r}} + \frac{{\partial^{2} T}}{{\partial r^{2} }}} \right) - R_{0} \left( {C - C_{\infty } } \right), $$
(4)
$$ U\frac{\partial N}{{\partial x}} + V\frac{\partial N}{{\partial r}} = D_{n} \left( {\frac{1}{r}\frac{\partial N}{{\partial r}} + \frac{{\partial^{2} N}}{{\partial r^{2} }}} \right) - \frac{{\alpha W_{c} }}{{C_{w} - C_{\infty } }}\left( {\frac{\partial N}{{\partial r}}\frac{\partial C}{{\partial r}} + N\frac{{\partial^{2} C}}{{\partial r^{2} }}} \right), $$
(5)

with boundary conditions57:

$$ \left. {\begin{array}{*{20}l} {U = \overline{U}\left( x \right) = ax,\,\,\,V = 0,\,\,\,T\left( {x,r} \right) = T_{w} \left( x \right) = T_{0} + {{bx} \mathord{\left/ {\vphantom {{bx} L}} \right. \kern-\nulldelimiterspace} L},\,\,\,C\left( {x,r} \right) = C_{w} \left( x \right) = C_{0} + {{dx} \mathord{\left/ {\vphantom {{dx} L}} \right. \kern-\nulldelimiterspace} L},\,\,\,} \hfill \\ {N\left( {x,r} \right) = N_{w} \left( x \right) = N_{0} + {{gx} \mathord{\left/ {\vphantom {{gx} L}} \right. \kern-\nulldelimiterspace} L}\,\,\,\,at\,\,\,\,r = R,} \hfill \\ {U \to U_{e} = a^{*} x,\,\,\,T\left( {x,r} \right) \to T_{\infty } \left( x \right) = T_{0} + {{cx} \mathord{\left/ {\vphantom {{cx} L}} \right. \kern-\nulldelimiterspace} L},\,\,\,C\left( {x,r} \right) \to C_{\infty } \left( x \right) = C_{0} + {{ex} \mathord{\left/ {\vphantom {{ex} L}} \right. \kern-\nulldelimiterspace} L},\,\,\,} \hfill \\ {N\left( {x,r} \right) \to N_{\infty } \left( x \right) = N_{0} + {{hx} \mathord{\left/ {\vphantom {{hx} L}} \right. \kern-\nulldelimiterspace} L}\,\,\,as\,\,\,r \to \infty } \hfill \\ \end{array} } \right\}, $$
(6)

The conversion parameters are defined as:

$$ \begin{aligned} & \psi = R\sqrt {\frac{{\nu U_{0} x^{2} }}{L}} f\left( \eta \right),\,\,\,U = \frac{1}{r}\frac{\partial \psi }{{\partial r}} = \frac{{U_{0} x}}{L}f^{\prime}\left( \eta \right),\,\,\,V = - \frac{1}{r}\frac{\partial \psi }{{\partial x}} = - \frac{R}{r}\sqrt {\frac{{\nu U_{0} }}{L}} f\left( \eta \right), \\ & \eta = \frac{{r^{2} - R^{2} }}{2R}\sqrt {\frac{{U_{0} }}{\nu L}} ,\,\,\,\theta \left( \eta \right) = \frac{{T - T_{\infty } }}{{T_{w} - T_{0} }},\,\,\,\phi \left( \eta \right) = \frac{{C - C_{\infty } }}{{C_{w} - C_{0} }},\,\,\,\chi \left( \eta \right) = \frac{{N - N_{\infty } }}{{N_{w} - N_{0} }}. \\ \end{aligned} $$
(7)

Using (7), (26) are reduced as:

$$ \frac{1}{\beta }\left( {1 + 2\kappa \xi } \right)f^{\prime\prime\prime} + \frac{2}{\beta }\kappa f^{\prime\prime} + \left( {1 + 2\kappa \xi } \right)f^{\prime\prime\prime} + 2\kappa f^{\prime\prime} + ff^{\prime\prime} - f^{{\prime}{2}} - \gamma^{2} \left( {f^{\prime} - A} \right) + A^{2} = 0, $$
(8)
$$ \begin{aligned} & \left( {1 + 2\kappa \xi } \right)\left( {1 + \frac{4}{3}Rd} \right)\theta^{\prime\prime} + 2\kappa \left( {1 + \frac{4}{3}Rd} \right)\theta^{\prime} + \Pr {\text{Nb}}\left( {1 + 2\kappa \xi } \right)\left( {\theta^{\prime}\phi^{\prime}} \right) \\ & + \Pr \left( {f\theta^{\prime} - \delta_{1} f^{\prime} + Q\theta - \theta f^{\prime} + {\text{Ec}}\gamma^{2} f^{2} } \right) + \Pr {\text{Nb}}\left( {1 + 2\kappa \xi } \right)\left( {\frac{{{\text{Nt}}}}{{{\text{Nb}}}}\theta^{{\prime}{2}} } \right) = 0, \\ \end{aligned} $$
(9)
$$ \left( {1 + 2\kappa \xi } \right)\left[ {\phi^{\prime\prime} + \frac{{{\text{Nt}}}}{{{\text{Nb}}}}\theta^{\prime\prime}} \right] + Sc\left( {f\phi^{\prime} - \delta_{2} f^{\prime} - \phi f^{\prime}} \right) + 2\kappa \left( {\frac{{{\text{Nt}}}}{{{\text{Nb}}}}\theta^{\prime} + \phi^{\prime}} \right) - R_{c} \phi = 0, $$
(10)
$$ \begin{aligned} & \left( {1 + 2\kappa \xi } \right)\chi^{\prime\prime} + 2\kappa \chi^{\prime} - {\text{Le}}\left( {f^{\prime}\chi - f\chi^{\prime} + S_{3} f^{\prime}} \right) \\ & - {\text{Pe}}\left( {1 + 2\kappa \xi } \right)\phi^{\prime}\chi^{\prime} - 2\kappa {\text{Pe}}\left[ {\Omega + \chi } \right]\phi^{\prime} - {\text{Pe}}\left( {1 + 2\kappa \xi } \right)\left[ {\Omega + \chi } \right]\phi^{\prime\prime} = 0, \\ \end{aligned} $$
(11)

with transformed boundary conditions:

$$ \left. {\begin{array}{*{20}l} {f^{\prime}\left( \xi \right) = 1,\,\,\,f\left( \xi \right) = 0,\,\,\,\theta \left( \xi \right) = 1 - \delta_{1} ,\,\,\,\phi \left( \xi \right) = 1 - \delta_{2} ,\,\,\,\chi \left( \xi \right) = 1 - \delta_{3} \,\,\,at\,\,\,\xi = 0,} \hfill \\ {f^{\prime}\left( \xi \right) \to A,\,\,\,\theta \left( \xi \right) \to 0,\,\,\,\phi \left( \xi \right) \to 0,\,\,\,\chi \left( \xi \right) \to 0\,\,\,as\,\,\,\xi \to \infty } \hfill \\ \end{array} } \right\}. $$
(12)

where \(\kappa = \frac{1}{R}\sqrt {\frac{\nu L}{{U_{0} }}}\) is the curvature parameter,\(\gamma = \sqrt {\frac{{\sigma B_{0}^{2} }}{a\rho }}\) is the magnetic parameter,\(A = \frac{{a^{*} }}{a}\) is the ratio of velocities, \(Rd = \frac{{4\sigma^{*} T_{\infty }^{3} }}{{kk^{*} }}\) is the thermal radiation parameter, \(\Pr = \frac{\nu }{\alpha }\) is the Prandtl number,\({\text{Nb}} = \frac{{\tau D_{B} \left( {C_{w} - C_{\infty } } \right)}}{\nu }\) is the Brownian motion parameter,\({\text{Nt}} = \frac{{\tau D_{T} \left( {T_{w} - T_{\infty } } \right)}}{{\nu T_{\infty } }}\) is the thermophoresis parameter,\(\delta_{1} = \frac{c}{b}\) is the temperature stratification parameter,\(\delta_{2} = \frac{e}{d}\) is the concentration stratification parameter, \(\delta_{3} = \frac{h}{g}\) is the motile density stratification parameter,\(Q = \frac{{Q_{0} L}}{{\rho c_{p} U_{0} }}\) is the heat generation parameter,\({\text{Sc}} = \frac{\nu }{{D_{B} }}\) is the Schmidt number,\(R_{c} = \frac{{LR_{0} }}{{U_{0} }}\) is the chemical reaction parameter, \({\text{Le}} = \frac{\alpha }{{D_{n} }}\) is bioconvection Lewis number, and \({\text{Ec}} = \frac{{xU_{0} }}{{Lc_{p} \left( {T_{w} - T_{\infty } } \right)}}\) is Eckert number, \({\text{Pe}} = \frac{{bW_{c} }}{{D_{n} }}\) is the bioconvection Peclet number, \(\Omega = \frac{{N_{\infty } }}{{N_{\infty } - N_{0} }}\) is the concentration difference parameter.

Engineering quantities of interests

Skin friction (SF)

At the cylindrical surface, the SF is specified by:

$$ C_{f} = \frac{{\tau_{w} }}{{\rho \frac{{U^{2} }}{2}}} = \frac{{\mu \left( {1 + \frac{1}{\beta }} \right)\left. {\frac{\partial u}{{\partial r}}} \right|_{r = R} }}{{\rho \frac{{U^{2} }}{2}}}, $$
(13)

In view of Eq. (7), the dimensionless form of SF is written as:

$$ \frac{1}{2}{\text{Re}}_{x}^{\frac{1}{2}} C_{f} = \left( {1 + \frac{1}{\beta }} \right)f^{\prime\prime}\left( 0 \right), $$
(14)

where \({\text{Re}}_{x} = \frac{{U_{0} x^{2} }}{\nu L}\) is the local Reynolds number.

Nusselt number (NN)

At the surface of cylinder, the NN is given by:

$$ {\text{Nu}}_{x} = \frac{{xq_{w} }}{{k\left( {T_{w} - T_{0} } \right)}} = \frac{{ - k\left. {\frac{\partial T}{{\partial r}}} \right|_{r = R} }}{{k\left( {T_{w} - T_{0} } \right)}} - \frac{4}{3}\frac{{\sigma^{*} }}{{k^{*} }}\left. {\frac{{\partial T^{4} }}{\partial r}} \right|_{r = R} , $$
(15)

In view of Eq. (7), the dimensionless form of NN is written as:

$$ {\text{Re}}_{x}^{{ - \frac{1}{2}}} {\text{Nu}}_{x} = - \left( {1 + \frac{4}{3}Rd} \right)\theta^{\prime}\left( 0 \right). $$
(16)

Sherwood number (SN)

At the surface of cylinder, the SN is given by:

$$ {\text{Sh}}_{x} = \frac{{xj_{w} }}{{D\left( {C_{w} - C_{0} } \right)}} = \frac{{ - D\left. {\frac{\partial C}{{\partial r}}} \right|_{r = R} }}{{D\left( {C_{w} - C_{0} } \right)}}, $$
(17)

In view of Eq. (7), the dimensionless form of SN is written as:

$$ {\text{Re}}_{x}^{{ - \frac{1}{2}}} {\text{Sh}}_{x} = - \phi^{\prime}\left( 0 \right). $$
(18)

Density number (DN)

At the surface of cylinder, the DN is given by:

$$ Dn_{x} = \frac{{xq_{n} }}{{D_{n} \left( {N_{w} - N_{0} } \right)}} = \frac{{ - D_{n} \left. {\frac{\partial N}{{\partial r}}} \right|_{r = R} }}{{D_{n} \left( {N_{w} - N_{0} } \right)}}, $$
(19)

In view of Eq. (7), the dimensionless form of SN is written as:

$$ {\text{Re}}_{x}^{{ - \frac{1}{2}}} Dn_{x} = - \chi^{\prime}\left( 0 \right). $$
(20)

HAM solution and convergence

An analytical of the modeled problem is solved with the help of HAM. The initial guesses and linear operators are taken as:

$$ L_{f} \left( f \right) = f^{\prime\prime\prime} - f^{\prime},\,\,\,L_{\theta } \left( \theta \right) = \theta^{\prime\prime} - \theta ,\,\,\,L_{\phi } \left( \phi \right) = \phi^{\prime\prime} - \phi ,\,\,\,L_{\chi } \left( \chi \right) = \chi^{\prime\prime} - \chi , $$
(21)
$$ f_{0} \left( \xi \right) = \xi + A\xi - A\xi e^{ - \xi } ,\,\,\,\theta_{0} \left( \xi \right) = \left( {1 - \delta_{1} } \right)e^{ - \xi } ,\,\,\,\phi_{0} \left( \xi \right) = \left( {1 - \delta_{2} } \right)e^{ - \xi } ,\,\,\,\chi_{0} \left( \xi \right) = \left( {1 - \delta_{3} } \right)e^{ - \xi } , $$
(22)

with

(23)

where are the arbitrary constants.

The convergence analysis of HAM is presented in Fig. 1a,b. The convergence area for \(f^{\prime\prime}\left( 0 \right)\) is \(- 0.1 \le \hbar_{f} \le 0.1\) as shown in Fig. 1a. Similarly, the convergence areas for \(\theta^{\prime}\left( 0 \right)\), \(\phi^{\prime}\left( 0 \right)\) and \(\chi^{\prime}\left( 0 \right)\) are \(- 1.75 \le \hbar_{\theta } \le 1.50\), \(- 0.75 \le \hbar_{\phi } \le 1.60\) and \(- 1.75 \le \hbar_{\chi } \le 1.20\) respectively, as shown in Fig. 1b.

Figure 1
figure 1

(a) \(\hbar\)-curve for \(f^{\prime\prime}\left( \xi \right)\). (b) \(\hbar\)-curves for \(\theta^{\prime}\left( \xi \right)\), \(\phi^{\prime}\left( \xi \right)\) and \(\chi^{\prime}\left( \xi \right)\).

Phases of study

This paper contains the generalized mathematical formulation for both magnetized and non-magnetized Casson fluid flow with gyrotactic microorganisms over a stratified cylinder. So the present analysis divides the proposed study into sub-phases in order to analyze the Casson fluid flow under different situations. It should be noted that in the current investigation, we have ignored the mixed convection phenomena. The present analysis consists of five phases. In the first four phases, we have compared our work with previously published investigations while phase five is consists of our new results.

Phase 1

Ignoring the suspended nanoparticles assumptions, stagnation point, Joule heating, thermal radiation, concentration distribution, and motile distribution the comprehensive formulation compact to the problem described in Ref.38. In this study, the comparative analysis of MHD mixed convective flow of Casson fluid through the stratified flat and cylindrical stretching surfaces are analyzed. The obtained variations were found to be surprisingly large for cylindrical geometry as particularly in comparison to plane surface geometry. The SF is found the heightening function of \(\kappa\),\(\Pr\),\(\beta\) and \(\delta_{1}\) whereas a reducing function of \(Q\). The NN is found the heightening function of \(\kappa\) and \(\Pr\) whereas a diminishing function of \(Q\),\(\delta_{1}\) and \(\beta\). By applying the assumptions reported in Ref.38, an analytical solution is proposed in order to verify the current model. An outstanding comparison is found with Ref.38 as shown in Table 1. The mathematical formulation designed in Ref.38 is given as:

$$ \frac{1}{\beta }\left( {1 + 2\kappa \xi } \right)f^{\prime\prime\prime} + \frac{1}{\beta }2\kappa f^{\prime\prime} + \left( {1 + 2\kappa \xi } \right)f^{\prime\prime\prime} + 2\kappa f^{\prime\prime} + ff^{\prime\prime} - f^{{\prime}{2}} - \gamma^{2} f^{\prime} = 0, $$
(24)
$$ \left( {1 + 2\kappa \xi } \right)\theta^{\prime\prime} + 2\kappa \theta^{\prime} + \Pr \left( {f\theta^{\prime} - \delta_{1} f^{\prime} + Q\theta - \theta f^{\prime}} \right) = 0, $$
(25)
Table 1 Comparison of SF and NN with Ref.38.

with transformed boundary conditions:

$$ \left. {\begin{array}{*{20}l} {f\left( \xi \right) = 0,\,\,\,f^{\prime}\left( \xi \right) = 1,\,\,\,\theta \left( \xi \right) = 1 - \delta_{1} \,\,at\,\,\,\xi = 0,} \hfill \\ {f^{\prime}\left( \xi \right) \to 0,\,\,\,\theta \left( \xi \right) \to 0,\,\,\,as\,\,\,\xi \to \infty } \hfill \\ \end{array} } \right\}. $$
(26)

Phase 2

In the absence of suspended nanoparticles assumptions, Joule heating, thermal radiation, stagnation point, and motile distribution the comprehensive formulation compact to the problem described in Ref.56. In this analysis, a stratified flow of Casson fluid through an inclined cylinder was presented. It was concluded that the SF is reduced with \(K\),\(\beta\),\(\Pr\) and \(\delta_{1}\) whereas the opposite trend in SF was found due to \(\delta_{2}\) and \(Q^{*}\). Furthermore, the NN has reduced with \(\beta\),\(\delta_{1}\),\(Q^{*}\) however the NN has increased with \(K\) and \(\Pr\). Additionally, it was also concluded that the higher \(K\),\(\delta_{2}\),\(R_{c}\) and \(Sc\) have increasing impacts on SN. By applying the assumptions reported in Ref.56, an analytical solution is proposed in order to verify the current model. An outstanding comparison is found with Ref.56 as shown in Tables 2 and 3. The mathematical formulation designed in Ref.56 is given as:

$$ \left( {1 + 2\kappa \xi } \right)f^{\prime\prime\prime} + 2\kappa f^{\prime\prime} + \frac{1}{\beta }\left[ {\left( {1 + 2\kappa \xi } \right)f^{\prime\prime\prime} + 2\kappa f^{\prime\prime}} \right] + ff^{\prime\prime} - f^{{\prime}{2}} - \gamma^{2} f^{\prime} = 0, $$
(27)
$$ \left( {1 + 2\kappa \xi } \right)\theta^{\prime\prime} + 2\kappa \theta^{\prime} + \Pr \left( {f\theta^{\prime} - \delta_{1} f^{\prime} + Q\theta - \theta f^{\prime}} \right) = 0, $$
(28)
$$ \left( {1 + 2\kappa \xi } \right)\phi^{\prime\prime} + {\text{Sc}}\left( {f\phi^{\prime} - \delta_{2} f^{\prime} - \phi f^{\prime} - R_{c} \phi } \right) = 0, $$
(29)
Table 2 Comparison of SF and NN with Ref.56.
Table 3 Comparison of SN with Ref.56.

with transformed boundary conditions:

$$ \left. {\begin{array}{*{20}l} {f^{\prime}\left( \xi \right) = 1,\,\,\,f\left( \xi \right) = 0,\,\,\,\theta \left( \xi \right) = 1 - \delta_{1} ,\,\,\,\phi \left( \xi \right) = 1 - \delta_{2} \,\,at\,\,\,\xi = 0,} \hfill \\ {f^{\prime}\left( \xi \right) \to 0,\,\,\,\theta \left( \xi \right) \to 0,\,\,\,\phi \left( \xi \right) \to 0,\,\,\,as\,\,\,\xi \to \infty } \hfill \\ \end{array} } \right\}. $$
(30)

Phase 3

In the absence of suspended nanoparticles assumptions, Joule heating, thermal radiation, stagnation point, magnetic field, concentration distribution, motile distribution, and with the condition when \(\beta \to \infty\), the comprehensive formulation condensed to the problem reported in Ref.53. It was found that the buoyancy force escalates the SF and the thermal stratification parameter increases the NN. In addition, it was claimed that the SF and NN are highly impressed for a cylinder in contrast with plate. The mathematical formulation designed in Ref.53 is given as:

$$ \left( {1 + 2\kappa \xi } \right)f^{\prime\prime\prime} + 2\kappa f^{\prime\prime} + ff^{\prime\prime} - f^{{\prime}{2}} = 0, $$
(31)
$$ \left( {1 + 2\kappa \xi } \right)\theta^{\prime\prime} + 2\kappa \theta^{\prime} + \Pr \left( {f\theta^{\prime} - \delta_{1} f^{\prime} - \theta f^{\prime}} \right) = 0, $$
(32)

with transformed boundary conditions:

$$ \left. {\begin{array}{*{20}l} {f\left( \xi \right) = 0,\,\,\,f^{\prime}\left( \xi \right) = 1,\,\,\,\theta \left( \xi \right) = 1 - \delta_{1} \,\,\,at\,\,\,\xi = 0,} \hfill \\ {f^{\prime}\left( \xi \right) \to 0,\,\,\,\theta \left( \xi \right) \to 0,\,\,\,as\,\,\,\xi \to \infty } \hfill \\ \end{array} } \right\}. $$
(33)

Phase 4

By ignoring the Joule heating and motile distribution, the comprehensive formulation condensed to the problem reported in Ref.57. In this examination, the authors found that the SF reduces with \(K\) and \(\beta\). Furthermore, the NN increases with \(K\) and \(\Pr\) whereas as reduces with \(\delta_{1}\). Also, the SN reduces with \(K\),\(\delta_{2}\) and increases with \({\text{Le}}\) and \(\Pr\). An outstanding comparison is found with Ref.57 as shown in Tables 4, 5 and 6. The mathematical formulation designed in Ref.57 is given as:

$$ \frac{1}{\beta }\left( {1 + 2\kappa \xi } \right)f^{\prime\prime\prime} + \frac{1}{\beta }2\kappa f^{\prime\prime} + \left( {1 + 2\kappa \xi } \right)f^{\prime\prime\prime} + ff^{\prime\prime} - f^{{\prime}{2}} - \gamma^{2} \left( {f^{\prime} - A} \right) + A^{2} = 0, $$
(34)
$$ \begin{aligned} & \left( {1 + 2\kappa \xi } \right)\left( {1 + \frac{4}{3}Rd} \right)\theta^{\prime\prime} + 2\kappa \left( {1 + \frac{4}{3}Rd} \right)\theta^{\prime} + \Pr {\text{Nb}}\left( {1 + 2\kappa \xi } \right)\left( {\theta^{\prime}\phi^{\prime}} \right) \\ & + \Pr \left( {f\theta^{\prime} - \delta_{1} f^{\prime} + Q\theta - \theta f^{\prime}} \right) + \Pr {\text{Nb}}\left( {1 + 2\kappa \xi } \right)\left( {\frac{{{\text{Nt}}}}{{{\text{Nb}}}}\theta^{{\prime}{2}} } \right) = 0, \\ \end{aligned} $$
(35)
$$ \left( {1 + 2\kappa \xi } \right)\left[ {\phi^{\prime\prime} + \frac{{{\text{Nt}}}}{{{\text{Nb}}}}\theta^{\prime\prime}} \right] + \Pr {\text{Le}}\left( {f\phi^{\prime} - \delta_{2} f^{\prime} - \phi f^{\prime}} \right) + 2\kappa \left( {\frac{{{\text{Nt}}}}{{{\text{Nb}}}}\theta^{\prime} + \phi^{\prime}} \right) - R_{c} \phi = 0, $$
(36)
Table 4 Comparison of SF with Ref.57.
Table 5 Comparison of NN with Ref.57.
Table 6 Comparison of SN with Ref.57.

with transformed boundary conditions:

$$ \left. {\begin{array}{*{20}l} {f\left( \xi \right) = 0,\,\,\,f^{\prime}\left( \xi \right) = 1,\,\,\,\theta \left( \xi \right) = 1 - \delta_{1} ,\,\,\,\phi \left( \xi \right) = 1 - \delta_{2} ,\,\,\,at\,\,\,\xi = 0,} \hfill \\ {f^{\prime}\left( \xi \right) \to A,\,\,\,\theta \left( \xi \right) \to 0,\,\,\,\phi \left( \xi \right) \to 0,\,\,\,as\,\,\,\xi \to \infty } \hfill \\ \end{array} } \right\}. $$
(37)

Phase 5

Ignoring the mixed convection phenomena and considering all other assumptions defined in Refs.38,56,57 with gyrotactic microorganisms through a stratified stretching cylinder is presented in this phase. The generalized mathematical modeling is given in (811) with boundary conditions (12). Here, we are interested to study the behavior of swimming microorganisms in a Casson fluid flow and to study the variation in Casson fluid flow through a stratified medium due to bioconvection Peclet number, bioconvection Lewis number, and concentration difference parameter. Furthermore, to analyze the flow of both magnetized and non-magnetized Casson fluid in the presence and absence of stagnation point. The physical quantities of interests like SF, NN, and SN are compared with the previous studies and have found quite similar results by which we have verified our study. Furthermore, the DN is calculated in Table 7. Here we have found that the DN increases with \(K\), Pe, Le and \(\Omega\) while the opposite trend in found via \(\delta_{3}\).

Table 7 Numerical values of DN via different embedded parameters.

Graphical results

Figure 2a shows the variations in the streamlines of Newtonian fluid velocity for magnetized stratified medium under the stagnation point. Here, with the increasing Casson parameter (i.e.\(\beta \to \infty\)), we have observed that the streamlines become denser which results the increasing behavior in the fluid velocity, while on the other hand the fluid velocity reduces for the existence of Casson parameter (i.e.\(\beta = 1.0\)) as shown in Fig. 2b. Figure 3a–f show the variations in the streamlines of Casson fluid velocity for both magnetized and non-magnetized stratified medium under the region of stagnation point. Figure 3a,b are plotted for both non-magnetized and magnetized stratified medium when \(A = 0.5\) respectively. We can see that the streamlines are wider for the case of magnetized Casson fluid as equated to non-magnetized fluid. Figure 3c,d are plotted for both non-magnetized and magnetized stratified medium when \(A = 1.0\) respectively. Here, we observed that the streamlines are stifled for the case for the case of magnetized Casson fluid as equated to non-magnetized case. This conduct is due to the Lorentz force which always provides the contrasting force to the fluid flow. Figure 3e,f are plotted for both non-magnetized and magnetized stratified medium when \(A = 1.5\) respectively. A similar impact of magnetic field is depicted as observed in Fig. 3a–d. Thus, we have concluded that the magnetic field plays a significant role in streamlines of Casson fluid flow. Figure 4 shows the influence of bioconvection Lewis number Le on motile density function. Here, we concluded that the higher values of Le reduce the motile density function. Figure 5 shows the influence of bioconvection Peclet Pe number on motile density function. The greater Peclet number reduces the diffusivity of microorganisms which conclude a reducing influence in motile density function. Thus, the greater Pe reduces the motile function of the microorganisms. Figure 6 shows the effect of microorganisms’ concentration difference parameter \(\Omega\) on motile function. The increase in microorganisms’ concentration difference parameter heightens the microorganisms’ in the ambient liquid which consequently reduces the motile density function.

Figure 2
figure 2

(a,b) Variations in the streamlines of Newtonian and non-Newtonian fluid velocity for magnetized stratified medium under the stagnation point.

Figure 3
figure 3

(af) Variations in the streamlines of Casson fluid velocity for both magnetized and non-magnetized stratified medium under the stagnation point.

Figure 4
figure 4

Variation in \(\chi \left( \xi \right)\) via Le.

Figure 5
figure 5

Variation in \(\chi \left( \xi \right)\) via Pe.

Figure 6
figure 6

Variation in \(\chi \left( \xi \right)\) via \(\Omega\).

Final comments

The mathematical model for both magnetized and non-magnetized Casson fluid containing gyrotactic microorganisms through a stretching cylinder is modeled under the effects of various parameter like stagnation point, Joule heating, heat absorption/generation, thermal stratification, mass stratification, motile stratification, nonlinear thermal radiation, magnetic field, and chemical reaction. We have studied the Casson fluid under different situations in order to analyze the flow behavior. The final comments are listed as:

  • The increasing Casson parameter (i.e.\(\beta \to \infty\)) the streamlines become denser which results the increasing behavior in the fluid velocity, while on the other hand the fluid velocity reduces for the existence of Casson parameter (i.e.\(\beta = 1.0\)).

  • The streamlines of stagnation point Casson fluid flow are highly wider for the case of magnetized fluid as equated to non-magnetized fluid.

  • The motile function of microorganisms is reducing with higher values of bioconvection Lewis number, Peclet number, and microorganisms’ concentration difference parameter.

  • The DN increases with higher values of curvature parameter, bioconvection Lewis number, Peclet number, and microorganisms’ concentration difference parameter while reduces with motile density stratification parameter.