1 Introduction

The innovative idea of reducing the entropy generation in convective heat transfer phenomenon is introduced by Bejan [1]. Basically, entropy generation is a measure of molecular disorder or randomness generated in a thermodynamic system. In the light of the second law of thermodynamics, the quality of energy reduces with increasing molecular disorderness. Bejan [2] reported that heat transfer due to temperature difference and energy dissipation are the key sources of entropy generation. Later on, numerous researchers performed a second law analysis in the presence of different geometries and physical conditions. For example, Afridi et al. [3] reported entropy generation in a viscous fluid flow past over an inclined stretching sheet under the influence of Lorentz force. The analysis reveals that more entropy is generated in the presence of magnetic field due to nonconservative nature of the applied magnetic field. The impacts of variable viscosity and Newtonian heating on entropy generation are investigated by Makinde [4]. Gul et al. [5] reported the influence of mixed convection on entropy generation in the Poiselle flow of Jeffry nanofluid. Recently, Butt et al. [6] examined the entropy generation in a second-grade nanofluid with effects of porous medium. Besides all these mentioned studies, some of the recent investigations on entropy generation are reported in [711].

In heat transfer and entropy generation analysis, energy dissipation is very significant, especially in boundary layer flows where the velocity gradients are significantly high. Historically, for the first time, Gebhart [12] studied the viscous dissipation effects on natural convection flow of Newtonian fluid. Gebhart [12] reported a significant rise in temperature due to dissipation effect. The rise in temperature is because of the work done against the viscous forces, which irreversibly convert the kinetic energy of the fluid into internal energy. Mohamed et al. [13] examined the impact of viscous dissipation on heat transfer in mixed convection flow past over a circular cylinder. Recently, Afridi and Qasim [14] performed the irreversibility analysis in a three- dimensional flow with viscous dissipation. Saritha et al. [15] performed the heat transfer analysis of boundary layer flow of power law fluid with viscous dissipation. Mohamed et al. [16] numerically studied the effects of viscous dissipation on a flow of nanofluid over a moving flat plate. Some recent studies on the heat transfer analysis with and without viscous dissipation effects are reported in [1727].

Boundary layer flow with heat transfer over different body shapes, such as a horizontal cylinder, stretching sheet, stretching disk, flat plate, a sphere, an elastic sheet with variable thickness, Riga plat, and stretching cylinder, is investigated by numerous researchers. Historically, Lee [28] introduced the boundary layer flow over a thin needle moving horizontally in a parallel free stream. Ishak et al. [29] extended the work of Lee [28] and performed the heat transfer analysis under constant wall temperature. They found that temperature rises with increasing size of the thin needle. Soid et al. [30] studied the flow of nanofluid over a thin needle with heat transfer effects by taking the Tiwari and Dass model. Liu and Chan [31] investigated a mixed convection flow over a thin axisymmetric body. The impacts of mass transfer and mixed convection on heat transfer and fluid flow over a thin needle are reported by Kafoussias [32]. Some very interesting studies on boundary layer flow over a thin needle with different effects and imposed boundary conditions are reported in [3336].

Working fluids such as water, engine oil, kerosene oil, and so on have low thermal conductivity. To enhance the thermal conductivity of working fluids, different types of nanoparticles such as copper, silver, Graphene, gold, and CNTs are added in the working fluids. Historically, the term nanofluid was introduced by Choi [37], who reported that the addition of nanoparticles in base fluids enhances the thermal conductivity to great extent. For the very first time, Khan and Pop [38] reported a boundary layer flow of nanofluid. In 1991, Lijima [39] introduced carbon nanotubes. Xue [40] proposed a model for the effective thermal conductivity of CNTs suspended nanofluids. CNTs have tube-shape nanostructure and are composed of carbon allotropes. Two types of CNTs are reported in the literature [41, 42]; one is a single-walled carbon nanotube (SWCNT), and the second one is a multiple-walled carbon nanotube (MWCNT). The impacts of CNTs on boundary layer flow and heat transfer are studied in [4345].

After a careful review of the literature, we have come to conclusion that heat transfer and entropy generation of CNTs suspended nanofluids over a thin needle in the presence of viscous dissipation and nonlinear thermal radiation is important but has never been reported. Therefore, to fill this gap, in this study, we perform heat transfer and irreversibility (second law) analysis by taking the effects of nonlinear Rosseland thermal radiation and viscous dissipation. A thin needle is supposed to be moving in a parallel free stream. We utilize Matlab bvp4c solver to obtain the numerical solutions of a reduced set of self-similar equations. Variations of temperature distribution \(\theta ( \xi ) \), entropy generation number Ns, and irreversibility ratio (Bejan number Be) with physical flow parameters are depicted graphically and discussed physically in detail.

2 Mathematical formulation

Consider the two-dimensional \(( 2D ) \) flow of water-based CNTs over a moving horizontal thin needle of thickness a. The surface of the thin needle is maintained at constant temperature \(T_{w}\). The velocities of moving thin needle and fluid outside the boundary layer are denoted by \(u_{w}\) and \(u_{\infty } \), respectively, and supposed to be constant. We also assume that the thermophysical properties of nanofluids are constant. In addition, the terms corresponding to nonlinear thermal radiation and viscous dissipation are incorporated into the energy equation. The axial coordinate of cylindrical coordinates is parallel to the moving thin needle, whereas the radial coordinate is normal to the flow direction as shown in Fig. 1.

Figure 1
figure 1

Schematic representation of the flow problem

By taking the assumptions mentioned alongside the usual boundary layer approximations, the governing flow equations can be written as

$$\begin{aligned}& \frac{\partial }{\partial \bar{x}} ( \bar{r} \bar{u} ) + \frac{ \partial }{\partial \bar{r}} ( \bar{r} \bar{v} ) = 0, \end{aligned}$$
(1)
$$\begin{aligned}& \bar{u}\frac{\partial \bar{u}}{\partial \bar{x}} + \bar{v}\frac{ \partial \bar{u}}{\partial \bar{r}} = \frac{\mu_{nf}}{\rho_{nf} \bar{r}} \frac{\partial }{\partial \bar{r}} \biggl( \bar{r}\frac{\partial \bar{u}}{\partial \bar{r}} \biggr), \end{aligned}$$
(2)
$$\begin{aligned}& \bar{u}\frac{\partial \bar{T}}{\partial \bar{x}} + \bar{v}\frac{ \partial \bar{T}}{\partial \bar{r}} = \frac{k_{nf}}{ ( \rho c_{p} ) _{nf}} \frac{1}{r}\frac{\partial }{\partial \bar{r}} \biggl( \bar{r}\frac{\partial \bar{T}}{\partial \bar{r}} \biggr) + \frac{16 \sigma_{SB}}{3a_{R} ( \rho c_{p} ) _{nf}} \biggl( \bar{T}^{3}\frac{ \partial^{2}\bar{T}}{\partial \bar{r}^{2}} + 3 \bar{T}^{2} \biggl( \frac{ \partial \bar{T}}{\partial \bar{r}} \biggr) ^{2} \biggr) \\& \hphantom{\bar{u}\frac{\partial \bar{T}}{\partial \bar{x}} + \bar{v}\frac{ \partial \bar{T}}{\partial \bar{r}} =}{} + \frac{\mu _{nf}}{ ( \rho c_{p} ) _{nf}} \biggl( \frac{\partial \bar{u}}{ \partial \bar{r}} \biggr) ^{2}. \end{aligned}$$
(3)

The subjected boundary conditions are

$$\begin{aligned}& \bar{u} \bigl( \bar{x}, \bar{r} = R ( \bar{x} ) \bigr) = \bar{u}_{w}, \qquad \bar{T} \bigl( \bar{x}, \bar{r} = R ( \bar{x} ) \bigr) = \bar{T}_{w},\qquad \bar{v} \bigl( x, \bar{r} = R ( \bar{x} ) \bigr) = 0, \end{aligned}$$
(4)
$$\begin{aligned}& \bar{u} \to \bar{u}_{\infty },\qquad \bar{T} \to \bar{T}_{\infty } \quad \text{as } \bar{r} \to \infty, \end{aligned}$$
(5)

where ū and are the velocity components in increasing directions of and , respectively, \(R(x)\) shows the shape of the surface of the thin needle, is the dimensional temperature of the nanofluids, \(\mu_{nf}\), \(\rho_{nf}\), \(( \rho c _{p} ) _{nf}\), and \(k_{nf}\) represent effective dynamic viscosity, the density of nanofluids, effective heat capacitance, and effective thermal conductivity of nanofluids and are defined as follows:

$$\begin{aligned}& \mu_{nf} = \frac{\mu_{bf}}{ ( 1 - \phi ) ^{2.5}},\qquad ( \rho c_{p} ) _{nf} = ( \rho c_{p} ) _{bf} ( 1 - \phi ) + ( \rho c_{p} ) _{{CNT}}\phi, \end{aligned}$$
(6)
$$\begin{aligned}& ( \rho ) _{nf} = \rho_{bf} ( 1 - \phi ) + \rho_{{CNT}}\phi,\qquad k_{nf} = \frac{ ( 1 - \phi ) + 2\phi ( \frac{k_{CNT}}{k_{CNT} - k_{bf}} ) \ln ( \frac{k _{CNT} + k_{bf}}{2k_{bf}} ) }{ ( 1 - \phi ) + 2\phi ( \frac{k_{bf}}{k_{CNT} - k_{bf}} ) \ln ( \frac{k_{CNT} + k_{bf}}{2k_{bf}} ) }k_{bf}. \end{aligned}$$
(7)

Introduce the variables

$$ \xi = \frac{\bar{U}\bar{r}^{2}}{\nu_{bf}\bar{x}},\qquad \psi = \nu_{bf} \bar{x}g ( \xi ), \qquad \theta = \frac{\bar{T} - \bar{T}_{\infty }}{\bar{T}_{w} - \bar{T}_{\infty }}, $$
(8)

where ψ stands for the stream function defined so that \(\bar{u} = \frac{1}{\bar{r}}\frac{\partial \psi }{\partial \bar{r}}\) and \(\bar{v} = - \frac{1}{\bar{r}}\frac{\partial \psi }{\partial \bar{x}}\), \(g ( \xi ) \) denotes the dimensionless stream function, ξ is the similarity variable, θ represents the dimensionless temperature distribution, the subscripts nf and bf respectively denote nanofluid and base fluid, \(\bar{U} = \bar{u} _{w} + \bar{u}_{\infty } \ne 0\) indicates the composite velocity. By setting \(\xi = a\) in Eq. (8) we get \(R(\bar{x}) = ( \frac{a\nu _{bf}\bar{x}}{\bar{U}} ) \).

Equation (1) is identically satisfied by Eq. (8), whereas Eqs. (2)–(5) yield

$$\begin{aligned}& 2 \bigl( \xi g''' + g'' \bigr) + ( 1 - \phi ) ^{2.5} \biggl( 1 - \phi + \phi \frac{\rho_{{CNT}}}{\rho_{{bf}}} \biggr) gg'' = 0, \end{aligned}$$
(9)
k n f k b f ( ξ θ + θ ) + 0.5 Pr ( 1 φ + φ ( ρ c p ) C N T ( ρ c p ) b f ) g θ + 4 3 N r ( θ ( θ r 1 ) + 1 ) 2 ( 3 ξ θ 2 ( θ r 1 ) + ( θ ( θ r 1 ) + 1 ) ( 0.5 θ + ξ θ ) ) + 4 E c Pr ξ g 2 ( 1 ϕ ) 2.5
(10)
$$\begin{aligned}& g ( a ) = \frac{a}{2}\varepsilon, \qquad g' ( a ) = \frac{ \varepsilon }{2}, \qquad g' ( \xi \to \infty ) \to \frac{1 - \varepsilon }{2}. \end{aligned}$$
(11)

Here ε stands for the velocity ratio parameter, Ec is the Eckert number, \(\theta_{r}\) is the heating parameter, Pr is the Prandtl number, ϕ is the solid volume fraction of nanoparticles, and \(N_{r}\) is the radiation parameter. These physical parameters are defined as

$$ \begin{aligned} &\varepsilon = \frac{\bar{u}_{w}}{\bar{U}},\qquad Ec = \frac{\bar{U}^{2}}{ ( c_{p} ) _{bf} ( \bar{T}_{w} - \bar{T}_{\infty } ) },\qquad \theta_{r} = \frac{\bar{T}_{w}}{\bar{T}_{\infty }}, \\ & \Pr = \frac{ \nu_{bf}}{k_{bf}} ( \rho c_{p} ) _{bf}, \qquad N_{r} = \frac{a_{{R}}k_{bf}}{4\sigma_{{SB}}\bar{T}_{\infty }^{3}}. \end{aligned} $$
(12)

The expressions for the local skin friction coefficients \(( C _{fx} ) \) and the local Nusselt number \(( Nu_{x} ) \) are given by

$$\begin{aligned}& C_{fx} ( \operatorname{Re}_{x} ) ^{0.5} = \frac{8a^{0.5}g'' ( a ) }{ ( 1 - \phi ) ^{5/2}} \quad \text{and} \\& Nu _{x} ( \operatorname{Re}_{x} ) ^{ - \frac{5}{2}} = - 2a^{0.5} \biggl( \frac{k_{nf}}{k_{f}} \biggr) \biggl( 1 + \frac{4}{3N_{r}}\theta _{r}^{3} \biggr) \theta ' ( a ), \end{aligned}$$

where \(\operatorname{Re}_{x} = \frac{\bar{U}x}{\nu_{bf}}\) is the local Reynold number.

3 Second law analysis

The rate of entropy generation inside the 2D boundary layer flow of nanofluid in the presence of viscous dissipation and nonlinear thermal radiation is given by

$$ \dot{S}'''_{\mathrm{Gen}} = \underbrace{ \frac{k_{nf}}{\bar{T}^{2}} \biggl( \frac{ \partial \bar{T}}{\partial \bar{r}} \biggr) ^{2} + \frac{k_{nf}}{ \bar{T}^{2}} \biggl( \frac{16\sigma_{SB}\bar{T}^{3}}{3a_{R}k} \biggl( \frac{ \partial \bar{T}}{\partial \bar{r}} \biggr) ^{2} \biggr) }_{TI} + \underbrace{\frac{ \mu_{nf}}{\bar{T}} \biggl( \frac{\partial \bar{u}}{\partial \bar{r}} \biggr) ^{2}}_{VI}. $$
(13)

Entropy generation has two sources: (i) thermal irreversibility (TI) represented by the first term of Eq. (13) and (ii) viscous irreversibility (VI) represented by the second term of Eq. (13). The characteristic entropy generation \(( \dot{S}'''_{\mathrm{Gen}} ) _{o}\) is defined as

$$ \bigl( \dot{S}'''_{\mathrm{Gen}} \bigr) _{o} = \frac{4k_{bf}\bar{U}}{\nu_{bf} \bar{x}}. $$
(14)

With the help of similarity transformations and Eq. (14), the entropy generation number \(N_{s}\) takes the form

$$\begin{aligned} N_{s} =& \frac{\dot{S}'''_{\mathrm{Gen}}}{ ( \dot{S}'''_{\mathrm{Gen}} ) _{o}} = \frac{k_{nf}}{k_{bf}}\xi \theta ^{\prime 2} ( \theta_{r} - 1 ) ^{2} \biggl( \frac{4}{3N_{r}} \bigl( \theta ( \theta_{r} - 1 ) + 1 \bigr) + \frac{1}{ ( \theta ( \theta_{r} - 1 ) + 1 ) ^{2}} \biggr) \\ &{} + \frac{4Ec\Pr \xi g^{\prime\prime 2} ( \theta_{r} - 1 ) }{ ( 1 - \phi ) ^{2.5} ( \theta ( \theta_{r} - 1 ) + 1 ) }. \end{aligned}$$
(15)

Here

$$\begin{aligned}& N_{{HT}} = \frac{k_{nf}}{k_{bf}}\xi \theta^{\prime 2} ( \theta _{r} - 1 ) ^{2} \\& \hphantom{N_{{HT}} =}{}\times \biggl( \frac{4}{3N_{r}} \bigl( \theta ( \theta _{r} - 1 ) + 1 \bigr) + \frac{1}{ ( \theta ( \theta _{r} - 1 ) + 1 ) ^{2}} \biggr),\quad \text{heat transfer irreversibilty}, \\& N_{{FF}} = \frac{4Ec\Pr \xi g^{\prime\prime 2} ( \theta_{r} - 1 ) }{ ( 1 - \phi ) ^{2.5} ( \theta ( \theta_{r} - 1 ) + 1 ) },\quad \text{fluid friction irreversibility}. \end{aligned}$$

The irreversibility parameter known as the Bejan number \(( Be ) \) is defined as

$$ Be = \frac{\frac{k_{nf}}{\bar{T}^{2}} ( \frac{\partial \bar{T}}{ \partial \bar{r}} ) ^{2} + \frac{k_{nf}}{\bar{T}^{2}} ( \frac{16 \sigma_{SB}\bar{T}^{3}}{3a_{R}k} ( \frac{\partial \bar{T}}{\partial \bar{r}} ) ^{2} ) }{\frac{k_{nf}}{\bar{T}^{2}} ( \frac{ \partial \bar{T}}{\partial \bar{r}} ) ^{2} + \frac{k_{nf}}{ \bar{T}^{2}} ( \frac{16\sigma_{SB}\bar{T}^{3}}{3a_{R}k} ( \frac{ \partial \bar{T}}{\partial \bar{r}} ) ^{2} ) + \frac{\mu _{nf}}{\bar{T}} ( \frac{\partial \bar{u}}{\partial \bar{r}} ) ^{2}}. $$
(16)

By Eq. (8) the Bejan number takes the following form:

$$\begin{aligned} Be =& \bigl(\xi \theta ^{\prime 2} ( \theta_{r} - 1 ) ^{2} \bigl( 3N _{r} + 4 \bigl( \theta ( \theta_{r} - 1 ) + 1 \bigr) ^{3} \bigr) \bigr) \\ &{}/\bigl( \xi \theta ^{\prime 2} ( \theta_{r} - 1 ) ^{2} \bigl( 3N_{r} + 4 \bigl( \theta ( \theta_{r} - 1 ) + 1 \bigr) ^{3} \bigr) \\ &{} + 12\xi Ec\Pr N_{r}g^{\prime\prime 2} ( \theta_{r} - 1 ) \bigl( \theta ( \theta_{r} - 1 ) + 1 \bigr) ^{2}\bigr). \end{aligned}$$
(17)

4 Results and discussions

In the present work, we investigate theoretically the heat transfer and entropy generation in carbon nanotubes suspended nanofluids flow over a horizontally moving thin needle. Interesting aspects of viscous dissipation and nonlinear Rosseland thermal radiations are also incorporated in the expression for entropy generation and energy equation. The modeled equations are reduced to a system of self-similar nonlinear ordinary differential equations by utilization of conventional similarity transformations. Shooting method and bvp4c (Matlab built-in boundary value solver) are used to solve the reduced system for selected values of physical flow parameters. The numerical values of thermophysical properties of nanoparticles and base fluid used in the numerical simulation are tabulated in Table 1. Numerical values of \(g'' ( 0 ) \) and \(- \theta ' ( 0 ) \) are tabulated in Table 2. It is observed that the obtained numerical values are close to each other and hence validate our solution procedure. Table 3 shows a comparison of present results with the results in the literature and found to be in good agreement. This is a second validation test of the numerical procedure. The numerical values of skin friction coefficient against the different values of a, ϕ, and ε are tabulated in Table 4. It can be seen that the skin friction coefficient enhances with decreasing size of thin needle for both types of SWCNT and MWCNT suspended nanofluids. By increasing the solid volume fraction of nanoparticles the numerical values of the skin friction coefficient increase for both types of nanofluids. The decreasing behavior of the skin friction coefficient is observed with increasing values of the velocity ratio parameter ε. The local Nusselt number increases with decreasing size of a thin needle, increasing the velocity ratio parameter, the solid volume fraction of nanoparticles, and the heating parameter for both types of nanofluids as shown in Table 5. Further, it is observed that the Nusselt number decreases with increasing values of the Eckert number and thermal radiation parameter.

Table 1 Thermophysical properties of nanoparticles and base fluid
Table 2 Comparison of numerical values of \(g''(0)\) and \(- \theta ' ( 0 ) \) for validation of numerical codes corresponding to the different values of a when \(\theta_{r} = 2.0\), \(N _{r} = 10\), \(\varepsilon = 0.3\), \(\phi = 0.04\), and \(Ec = 0.3\)
Table 3 Numerical values of \(g''(a)\) when \(\varepsilon = 0.0\)
Table 4 Numerical values of skin friction coefficient \(C_{fx} ( \operatorname{Re}_{x} ) ^{1/2}\) for different values of a, ϕ, and ε
Table 5 Numerical values of local Nusselt number \(Nu_{x} ( \operatorname{Re}_{x} ) ^{ - 0.5}\) for different values of physical flow parameters when \(\Pr = 6.8\)

The present section is devoted to examining the variations in temperature distribution \(\theta ( \xi ) \), the entropy generation number Ns, and the Bejan number Be with embedding flow parameters. Figures 26 are plotted for the said purpose. Figure 2(a) is depicted to explore the influences of the Eckert number on the temperature distribution of nanofluid containing carbon nanotubes. We noticed that the temperature of both SWCNT-water nanofluid and MWCNT-water nanofluid increases with enhancing values of the Eckert number. This is because the thermal energy is stored in the fluid due to the frictional heating and consequently enhances the fluid temperature in the flow region. The analysis further reveals that the temperature profile of SWCNT-water nanofluid is high as compared to MWCNT-water nanofluid. This is in fact because of the high thermal conductivity of SWCNT. Figure 2(b) is plotted to see the impacts of the number Ec on the entropy generation number Ns. As the kinetic energy is converted into the heat energy due to viscous dissipation, which in turn increases the molecular disorder of the system, Ns increases with increasing values of the number Ec. In addition, more entropy is generated in the flow region of nanofluid containing SWCNT as compared to nanofluid containing MWCNT. The influence of the Eckert number on the Bejan number Be is displayed in Fig. 2(c). Increasing the Eckert number reduces the Bejan number, which means that the influence of fluid friction on entropy generation increases. For large values of the Eckert number, the fluid friction irreversibility is dominant over the heat transfer effects on the surface of thin needle and the region near the edge of the boundary layer. Further, it is clearly seen that frictional irreversibility is high in MWCNT suspended nanofluid as compared to SWCNT. In addition, due to highly thermal conductivity of SWCNT, the contribution of thermal effects in entropy generation is high as compared to MWCNT suspended nanofluid. Figure 3(a) shows the influence of the size of a thin needle \(( a ) \) on the temperature distribution \(\theta ( \xi ) \) of SWCNT and MWCNT suspended nanofluids. The decreasing value of a depreciates the magnitude of temperature \(\theta ( \xi ) \) and results in a thinner thermal boundary layer for both CNTs. Physically speaking, a nanofluid containing MWCNT has lower temperature as compared to a nanofluid containing SWCNT, and this is due to the low thermal conductivity of MWCNT. With the decreasing size of a thin needle, the entropy generation number Ns reduces as shown in Fig. 3(b). It is also clear from Fig. 3(b) that Ns attains its maximum value at the surface of a thin needle and goes to zero asymptotically toward the edge of the boundary layer. Further, it is noticed that, for fixed size of a thin needle, entropy generation in MWCNTs suspended nanofluid is less as compared to SWCNT suspended nanofluid. Figure 3(c) is plotted to observe the influence of the size of a thin needle on the Bejan number Be. It seems that Be reduces with decrement in the size of a thin needle. The core reason is that the thermal gradient reduces with decreasing size of a thin needle and hence reduces the Bejan number.

Figure 2
figure 2

(a) Effects of Ec on \(\theta ( \xi )\). (b) Effects of Ec on Ns. (c) Effects of Ec on Be

Figure 3
figure 3

(a) Effects of a on \(\theta ( \xi )\). (b) Effects of a on Ns. (c) Effects of a on Be

The variation of temperature profile \(\theta ( \xi ) \) with increment in radiation parameter \(N_{r}\) is exhibited in Fig. 4(a). We noticed that \(\theta ( \xi ) \) attains its maximum value (i.e., one) at the surface of the needle and approaches to zero asymptotically at a certain distance away from the solid boundary. The temperature of both types of nanofluid drops and thermal boundary layer gets thinner when \(N_{r}\) is increased. Figure 4(b) indicates a decrement in Ns with increasing values of \(N_{r}\). This analysis implies that to reduce Ns inside the boundary layer flow over a horizontally moving needle, the value of \(N_{r}\) should be high. Figure 4(c) shows the behavior of the Bejan number with different values of \(N_{r}\). The results indicate that the Bejan number reduces with increment in the radiation parameter \(N_{r}\) for both types of nanofluids. Thus it can be deduced that the impact of the fluid friction irreversibility increases with increasing values of \(N_{r}\). Figure 5(a) indicates the variations of the temperature distribution for different values of nanoparticles solid volume fraction ϕ. It is observed that the thermal boundary layer and temperature distribution both decrease for increasing values of ϕ. From physical point of view, by adding more nanoparticles the effective thermal conductivity of nanofluid enhances and hence rises the fluid temperature. In addition, the thermal boundary layer of the nanofluid containing SWCNT is thicker than that of the nanofluid containing MWCNT. In Figs. 5(a), (b) the entropy generation number Ns and the Bejan number Be are intended for different values of ϕ. Both Ns and Be are found to be increasing functions of ϕ. Figure 6(a) relates the temperature distribution \(\theta ( \xi ) \) to the heating parameter \(\theta_{r}\). Increase in the fluid temperature is observed with increasing heating parameter. Physically, as \(\theta_{r}\) increases, there is an increase in the operating temperature \(\bar{T}_{w} - \bar{T}_{\infty } \), and consequently the temperature increases. According to the Fig. 6(b), entropy generation increases with increasing values of \(\theta_{r}\), and this is because of increasing temperature difference between the boundary and fluid outside the boundary layer. From Fig. 6(c) it is observed that as heating parameter increases \(\theta_{r}\), the Bejan number I increases. Further, it is noticed that fluid friction irreversibility is dominant over the thermal irreversibility at the surface and away from the surface of a needle. In addition, thermal effects are prominent near the boundary due to high thermal gradients.

Figure 4
figure 4

(a) Effects of \(N_{r}\) on \(\theta ( \xi )\). (b) Effects of \(N_{r}\) on Ns. (c) Effects of \(N_{r}\) on Be

Figure 5
figure 5

(a) Effects of ϕ on \(\theta ( \xi )\). (b) Effects of ϕ on Ns. (c) Effects of ϕ on Be

Figure 6
figure 6

(a) Effects of \(\theta_{r}\) on \(\theta ( \xi )\). (b) Effects of \(\theta_{r}\) on Ns. (c) Effects of \(\theta_{r}\) on Be

5 Concluding remarks

Entropy generation in CNTs (single- and multi-wall carbon nanotubes) suspended nanofluids is performed with energy dissipation and nonlinear thermal radiation effects. The main outcomes of the study are summarized as follows:

  1. *

    The temperature distribution enhances with increasing values of the Eckert number, heating parameter, and nanoparticle solid volume fraction for both SWCNT suspended nanofluid and MWCNT suspended nanofluid.

  2. *

    High temperature profile is observed for SWCNT suspended nanofluid.

  3. *

    Increasing values of the thermal radiation parameter and decreasing the size of a thin needle result in reducing the temperature for both SWCNT and MWCNT suspended nanofluids.

  4. *

    Increasing values of the heating parameter, the Eckert number and nanoparticle solid volume fraction enhances entropy generation number, but it is higher for SWCNT suspended nanofluid as compared to MWCNT suspended nanofluids.

  5. *

    The quality of energy increases by reducing the size of a thin needle and increasing the thermal radiation parameter.

  6. *

    The contribution of fluid friction in the entropy generation enhances with increasing values of the thermal radiation parameter and the Eckert number and decreasing the size of a needle.

  7. *

    The Bejan number increases with heating parameter and nanoparticle solid volume fraction for both SWCNT and MWCNT suspended nanofluids.