Introduction

Energy transmission in closed configurations occurs due to thermodynamic changes imparted by convective transport. The optimization of heat transfer management in confined geometries to attain efficient energy systems is a requirement of the ongoing technological era. Additionally, the reduction and control of energy losses in such systems are strategized by measuring entropic variations. The entropy in any thermalized system is subjected to heat and mass variations, frictional forces, and buoyancy aspects. The assessment of any engineering framework is scrutinized by formulating entropy aspects. Owing to the aforementioned physical significance, much attention has been paid in recent years to the fields of turbomachinery, electronic cooling, heat exchangers, combustion processes, heat engines and pumps, refrigerators, cooling systems, power plants, etc. Some recent developments in the investigation of entropy measurements in the hydrothermal flow of fluids are described here. Like, Dagtekin et al. [1] delineated that at a low thermal Rayleigh number magnitude, the conduction regime plays a crucial role in the generation of entropy, while at high values of (Ra), convection serves as the primary source in entropy generation. Numerical experiments to examine the entropy state in transiently formulated laminar flow of fluid saturated in the enclosure along with the provision of differentially heated boundaries were executed by Magherbi et al. [2]. Measurement of different types of entropy along with a global quantity named total entropy in free convective transport by implementing the finite element procedure was manifested by Yilbas et al. [3]. Erbay et al. [4, 5] determined the role of partially distributed activated thermalized vertically lateral walls in producing irreversibility in buoyantly driven transport in a square enclosure to measure energy losses. Strategies to minimize entropy production via inclination effects of enclosure and control it through the reduction of frictional and buoyancy forces were enclosed by Baytas [6]. Andreozzi et al. [7] estimated about productivity rate of local and global entropy for convective transport in a heated channel saturated with air by prescribing uniform heat flux. Mahmud and Islam [8] delineated the role of corrugated boundaries in managing entropy distribution in laminar free convective flow in a cavity by performing a computational scheme. Deviation in field variables such as velocity and temperature in the flow of viscous liquid in a square enclosure containing solid objects inside with entropy phenomenon was explicated by Shuja et al. [9]. Generation of entropy measurement during assembly of gold and silver via short pulse laser heating was experimentally calculated by Yilbas [10]. Hijleh et al. [11, 12] investigated the irreversibility process in viscous fluid flow in a helical coil by providing uniform heat flux along with the insertion of highly thermally conductive fins. Mathematical formulation to envision new factors affecting the entropy phenomenon by employing irreversibility law was presented by Naterer et al. [13].

Optimization in the performance of fluid-based systems can be achieved by altering the aspect of enclosures. The adjustment of thermal gradients and flow patterns to maximize the heat transfer existing between boundaries and fluid is also handled by aspect ratio variations of confined domains. Changing the aspect ratio of enclosures can have various applications in different fields. Mixing efficiency of fluids, which yields the quality of bio products in chemical processes and bioreactors is also managed by aspect ratio deviation of cavities. Some more real-life utilization of geometries with shape change aspects are involved in, electronic cooling, heat exchangers, aircraft designing, and many more. Hydrothermal attributes of natural convective flow by making changes in the aspect ratio of an inclined enclosure filled with viscous fluid by employing finite difference simulations were executed by Cheong et al. [14]. Change in aspect ratio via the varying length of the base and adjacent walls of the permeable square cavity and by altering thermal boundary constraints was investigated by Ramakrishna et al. [15]. Sheikholeslami et al. [16] delineated flow and thermal behavior of water-based nanoliquid with magnetic field implementation and by making variation in the aspect ratio of the enclosure. Mejri et al. [17] analyzed the magnetized free convective flow of a nanoliquid with entropy production in a cavity whose aspect ratio and strength of the magnetic source were varied.

Distribution of energy in confined domains due to the existence of temperature gradient causes natural convection. Consequence, volumetric changes are produced. A wide range of applications concerning naturally convective flow has been witnessed in different engineering processes such as cooling of electronic gadgets, insulating double glazed windows, solar panels, etc. Several interesting studies on free convection with multiple physical influences have been conducted. For the sake of brevity, a few of them are described here, for example, natural convection in a rectangular cavity with the effectiveness of heater placement at vertical boundaries of a square chamber was examined by Catton [18]. Davis [19] developed mathematical framework to discuss the factors controlling free convection, along with the inclusion of body forces. Ostarch [20] carried out a computational analysis of buoyantly driven viscous liquid flow saturated in an enclosure using concept of heat lines. Free convection in a non-Newtonian fluid incorporating the aspect of low thermal Rayleigh number explaining variable thermal conductivity features in the square cavity was adumbrated by Emery and Lee [21]. Representation of flow structures development through stream and heat lines for convective flow in the isothermal cavity was visualized by Aydin et al. [22]. Turan et al. [23] explored the influence of uniform and non-uniform heating on steady and laminar convective flow in rectangular enclosures using a computational scheme. Deviation in heat flux related to the fluid motion and heat transfer in cylindrical chamber, was explored by Ganguli et al. [24]. The latest developments in hydrothermal characteristics imparted by convective transport are encapsulated in refs. [25,26,27,28,29].

The formation of vortices and isothermal fields against variations in the aspect ratio of the enclosure has received tremendous attention from researchers due to overwhelming utilization. Additionally, entropy generation is also managed by such changes which contain potential significance. From the aforementioned cited works, it is concluded that no joint studies have been conducted so far which involve the change of aspect ratio and entropy phenomenon together. To fill this gap, a novel effort has been performed in the present study, which includes the measurement of the entropy process via signifying aspects of local, thermal, and viscous entropies. A wide range of involved parameters is utilized to provide a comprehensive study that assists others in conducting research in this direction. Graphical representations are used to examine total entropy production against aspect ratio. Bejan number showing the ratio of thermal to flow friction entropies is also calculated.

Mathematical formulation

Definition of the problem

Let us assume 2D, incompressible \((\rho ={\text{constant}} )\), steady \(( t=0)\) and laminar flow of Newtonian fluid in trapezoidal enclosure with two vertically non-parallel adiabatic walls and uniformly heated base and top boundaries. The top wall is provided with cooled temperature \(( {T}_{{\text{c}}})\), and uniform temperature \(( {T}_{{\text{h}}})\) is prescribed at bottom wall, while inclined walls are kept insulated \(( \frac{\partial T}{\partial n}=0 )\). The Boussinesq approximation is used to formulate persistent fluid density. Aspect ratio \(({\text{AR}})\) is defined by the fraction of height (H) of the vertical wall to the length \((L)\) of the horizontally wall. The graphical visualization of domain is depicted in Fig. 1.

Fig. 1
figure 1

Geometric physical model and 2-D cartesian coordinates

Constitutive equations

The governing equations for mass, momentum, and energy under considered physical assumptions indicated above are described as under [2].

$$ u_{{\text{x}}} + v_{{\text{y}}} = 0 $$
(1)
$$ uu_{{\text{x}}} + vu_{{\text{y}}} + \frac{1}{\rho }p_{{\text{x}}} = \upsilon \left( {u_{{{\text{xx}}}} + u_{{{\text{yy}}}} } \right) $$
(2)
$$ uv_{{\text{x}}} + vv_{{\text{y}}} + \frac{1}{\rho }p_{{\text{y}}} = \upsilon \left( {v_{{{\text{xx}}}} + v_{{{\text{yy}}}} } \right) + g\beta^{ * } \left( {T - T_{{\text{c}}} } \right) $$
(3)
$$ uT_{{\text{x}}} + vT_{{\text{y}}} = \alpha \left( {T_{{{\text{xx}}}} + T_{{{\text{yy}}}} } \right) $$
(4)

Following parameters are capitalized to change above dimensional governing system in to dimensionless form

$$ x = \frac{\xi }{L},\;y = \frac{\varsigma }{L},\;u = \frac{\beta }{\alpha L},\;v = \frac{\gamma }{\alpha L},\;\Im = \frac{{\left( { - T_{{\text{c}}} + T} \right)}}{{\left( { - T_{{\text{c}}} + T_{{\text{h}}} } \right)}},\;P = \frac{{pL^{2} }}{{\rho \alpha^{2} }},\;\Delta T = - T_{{\text{c}}} + T_{{\text{h}}} $$
(5)

Non-dimensionalized version of constitutive expressions are described as below [2]

$$ \beta_{\xi } + \gamma_{\varsigma } = 0 $$
(6)
$$ \beta \beta_{\xi } + \gamma \beta_{\varsigma } + P_{\xi } = \Pr \left( {\beta_{\xi \xi } + \beta_{\varsigma \varsigma } } \right) $$
(7)
$$ \beta \gamma_{\xi } + \gamma \gamma_{\varsigma } + P_{\varsigma } = \Pr \left( {\gamma_{\xi \xi } + \gamma_{\varsigma \varsigma } } \right) + \Pr {\text{Ra}}\Im $$
(8)
$$ \beta \Im_{\xi } + \gamma \Im_{\varsigma } = \Im_{\xi \xi } + \Im_{\varsigma \varsigma } $$
(9)

Involved physical parameters are mentioned as below.

\(\Pr = \frac{\upsilon }{\alpha }\), \({\text{Ra}} = \frac{{g\beta^{ * } \Delta TL^{3} }}{\upsilon \alpha }\).

Associated boundary constrains are presented as under.

At the heated bottom wall: \(\Im = 0.5\), \(\beta = \gamma = 0\),

At the insulated side walls:

$$ \frac{\partial \Im }{{\partial n}} = 0,\;\beta = \gamma = 0 $$
(10)

At the cold top wall: \(\Im = - 0.5\), \(\beta = \gamma = 0\).

Entropy generation

Mathematical expressions related to local entropy based on equilibrium state between thermal and fluid frictional forces are shown as under

$$ {\text{Si}}_{{{\text{Thermal}}}} = \left[ {\left( {\Im_{\xi } } \right)^{2} + \left( {\Im_{\varsigma } } \right)^{2} } \right] $$
(11)
$$ {\text{Si}}_{{{\text{Viscous}}}} = \phi \left[ {2\left( {\beta_{\xi } } \right)^{2} + 2\left( {\gamma_{\varsigma } } \right)^{2} } \right] + \left[ {\left( {\beta_{\varsigma } + \gamma_{\xi } } \right)^{2} } \right] $$
(12)

Local entropy formulation number also known as the entropy formulation number is produced by adding \({\text{Si}}_{{{\text{Thermal}}}}\) and \({\text{Si}}_{{{\text{Viscous}}}}\):

$$ {\text{Si}} = {\text{Si}}_{{{\text{Thermal}}}} + {\text{Si}}_{{{\text{Viscous}}}} = {\text{Si}} = \left[ {\left( {\Im_{\xi } } \right)^{2} + \left( {\Im_{\varsigma } } \right)^{2} } \right] + \phi \left[ {2\left( {\beta_{\xi } } \right)^{2} + 2\left( {\gamma_{\varsigma } } \right)^{2} } \right] + \left[ {\left( {\beta_{\varsigma } + \gamma_{\xi } } \right)^{2} } \right] $$
(13)

where, \(\phi\) is the ratio of the irreversibility distribution:

$$ \phi = \frac{{{\text{Si}}_{{{\text{Viscous}}}} }}{{{\text{Si}}_{{{\text{Thermal}}}} }} = \frac{{\mu T_{o} }}{k}\left( {\frac{\alpha }{L\Delta T}} \right)^{2} $$
(14)

Formulation of global quantity (total entropy) is expressed as under.

$$ \begin{gathered} {\text{Si}}_{{{\text{Total}}\;{\text{ Thermal}}}} = \iint\limits_{V} {{\text{Si}}_{{{\text{Thermal}}}} {\text{d}}V} \hfill \\ {\text{Si}}_{{ {\text{Total}}\;{\text{ Viscous}}}} = \iint\limits_{V} {{\text{Si}}_{{{\text{Viscous}}}} {\text{d}}V} \hfill \\ {\text{Si}}_{{\text{ Total }}} = {\text{Si}}_{{{\text{ Total }}\;{\text{Thermal}}}} + {\text{Si}}_{{{\text{ Total }}\;{\text{Viscous}}}} \hfill \\ \end{gathered} $$
(15)

Quantities of interest

Bejan number (Be)

The strength of the \({\text{Si}}_{{{\text{Thermal}}}}\) reversibility is indicated by the Bejan number \((Be)\) as referred in [2]

$$ {\text{Be}} = \frac{{{\text{Si}}_{{{\text{Thermal}}}} }}{{{\text{Si}}}} $$
(16)

If \({\text{Be}}>1/2\) heat transport irreversibility is dominant, whereas if \({\text{Be}}<1/2\), friction of fluid irreversibility is dominant. Heat transport and viscous irreversibilities are identical for \({\text{Be}}=1/2\). The importance of thermal transport due to entropy is highlighted by measuring average Bejan number \(\left( {{\text{Be}}_{{{\text{Avg}}}} } \right)\) which is expressed mathematically as under

$$ {\text{Be}}_{{{\text{Avg}}}} = \iint\limits_{V} {{\text{Si}}_{{{\text{Total }}\;{\text{thermal}}}} /{\text{Si}}_{{{\text{Total}}}} {\text{d}}V} $$
(17)

Nusselt number (Nu)

The thermal transport characteristics are assessed through the Nusselt number calculated at the nanofluid interface as follows:

\({{\text{Nu}}}_{{\text{Local}}}=\frac{\partial \mathfrak{I}}{\partial y}\),

By integrating the heated surface, the \({\text{Nu}}_{{{\text{Avg}}}}\) is evaluated and is expressed as:

$$ {\text{Nu}}_{{{\text{Avg}}}} = \mathop \smallint \limits_{S} {\text{Nu}}_{{{\text{Local}}}} {\text{d}}S $$
(18)

Here, the heated surface is represented by \(S\).

Ecological coefficient of performance (ECOP)

It is defined as an evaluation criterion for estimating thermal performance of cavity. ECOP is recognized as the ratio of the average Nusselt number to total entropy generation and is based on second thermodynamics law. It is an essential physical quantity and increase in ECOP is desirable for efficient thermal systems. ECOP is defined as follow.

$$ {\text{ECOP}} = \frac{{{\text{Nu}}_{{{\text{Avg}}}} }}{{{\text{Si}}_{{{\text{Total}}}} }} $$
(19)

Kinetic energy (K.E.)

The computation to assess the total kinetic energy (K.E.) is determined by using the following equation:

$$ {\text{K}}.{\text{E}}{.} = \frac{1}{2}\mathop \smallint \limits_{\Omega } {\mathbb{Q}}^{2} {\text{d}}\Omega $$
(20)

Here, the velocity vector is represented as \({\mathbb{Q}}=\left(\beta ,\gamma \right)\).

Solution methodology

Mesh generation

In computational procedure, it is essential to describe the considered physical configuration and the subdivision of present domain into sub-portion (element) is known as meshing. In finite element approach, 2D structures are divided into triangular and rectangular elements which is another advantage over finite difference and volume techniques. Furthermore, these elements are connected with characteristics points recognized as nodes. At each node the number of field variables are called as degree of freedom. The displacement of node in each element is dependent on selection of refinement method which is hybrid meshing in present study and known as hp refinement. It involves a combination of h-refinement (splitting elements into smaller sub-elements) and p-refinement (increasing the degree of the polynomials used to approximate the solution within each element). This approach allows for a more adaptive and efficient way to refine the mesh, as it can target areas where the solution is changing rapidly or where the error is large. The hp-refinement process can be guided by error indicators, which help determine the optimal combination of h- and p-refinement for each element. This approach can lead to faster convergence and provide more accurate results in comparison to traditional h, p, and r-refinements. Figure 2 delineates the meshing of current design (trapezoidal enclosure) at extra fine level.

Fig. 2
figure 2

Grid formation of domain at extra fine level

Grid sensitivity test

In order to attain solution independent of mesh variations it is compulsory to perform grid independent test which will provide the assurance of simulated experiments as well as show the credibility of capitalized procedure (F.E.M). For this purpose, Table 1 is presented which expresses the variation in kinetic energy (K.E.) and average Bejan number (BeAvg) at different mesh levels by restricting Pr = 0.71, AR = 0.50, \(\phi \) = 10–2 and Ra = 105. From the statistics of attained results, it is seen that values of both physical quantities match at R.L-8 and R.L-9. These outcomes adhere that all the simulations are accounted at R.L-8 to reduce computational and time expenditures.

Table 1 Meshing at different refinement levels

In addition, to ensure the effectiveness of grid formation at different refinement levels, Nusselt number (NuAvg) is also sketched against change in number of elements (see Fig. 3). From the display portray, it is found that with rise in number of elements, the average Nusselt number coincides. During the accomplishment of (NuAvg), other involved parameters are constrained at Pr = 0.71, \(\phi \) = 10–2 and Ra = 105.

Fig. 3
figure 3

Grid convergence test for NuAvg

Validation of results

Verification about findings of present investigation is ensured by matching comparison for outcome of average Nusselt number with results published by Saeid and Pop [30] and Poulikakos [31] against change in Rayleigh number (Ra). Here, (Ra) is varied from 100 to 1000 and Prandtl number (Pr) is fixed by 0.7. from the attained outcomes and percentage deviation presented in Table 2, an excellent agreement between existing and current work is developed.

Table 2 Comparison of average Nusselt number against Rayleigh number for both the current and previous studies

Results and interpretation

This segment is presented to explore and interpret the impact of variation in aspect ratio of computational domain along with involved physical parameters on hydrothermal properties and entropy generated by convective transport mechanism in trapezoidal enclosure. For this purpose, finite element simulations are performed to attain outcomes of present study. To examine entropic variations in exclusive manner two types of entropies (viscous and thermal) are accounted. In addition, global (total entropy) and local (local entropy and Nusselt number) quantities are also analyzed. Subsequently, ECOP determining the performance of considered physical domain and Bejan number signifying the ratio between thermal and local entropies is also evaluated against involved parameters. Figure 4a–f interprets the behavior of velocity and temperature fields along with measurement of viscous, thermal and local entropies and Bejan number at AR = 0.50, \({\text{Ra}}={10}^{3}\), and \(\phi ={10}^{-4}\) is presented. Figure 4a exhibits vortex formation in domain via stream lines representation. Cells of two equivalent size and symmetrical in shape but in opposite orientation are formed and covers complete space of the domain. Flow circulations in left cell is in clockwise direction, whereas in right, one fluid rotates in anticlockwise orientation. Maximum magnitude of stream function \({\psi }_{{\text{max}}}\) = 0.07 is attained near the center of cavity. In Fig. 4b, it is noticed that isothermal contours are almost parallel to horizontal bottom wall which is uniformly heated and shows the dominance of heat transport through conduction instead of convection due to the less production of buoyancy forces. Entropy generated due to the transmission of heat and friction developed by flow of fluid are sketched and displayed in Fig. 4c, d. Maximum magnitude of thermal entropy revealed is 74.7, while value of local viscous entropy reduces to 0.06369. The reason behind such maximum and minimum scale of both entropies is because of the fact that (Ra) induces convective potential between heated and colder zones of domain due to which thermal gradients dominate over momentum diffusions. Figure 4e explains the response of local entropy against thermal Rayleigh number (Ra) and by fixing other parameters. Since, local entropy signifies the sum of thermal and viscous entropies due to which it is high and intense near the cold boundary of enclosure. Deviation in Bejan number (Be) at low magnitude of Rayleigh number (\({\text{Ra}}={10}^{3})\), AR = 0.50 and \(\phi ={10}^{-4}\) is seen in Fig. 4f. It is manifested that near the heated boundaries it reaches to unity because here thermal conduction dominates over viscous diffusion.

Fig. 4
figure 4

Variations in a streamlines, b isotherms, c SiThermal, d SiViscous, e Si and f Be contours at AR = 0.50, Ra = 103, and \(\phi \) = 10–4

In Fig. 5, streamlines, isotherms, \({{\text{Si}}}_{{\text{Thermal}}}\), \({{\text{Si}}}_{{\text{Viscous}}}\), \({\text{Si}}\), and \({\text{Be}}\) are analyzed for \(\phi ={10}^{-4}\) AR = 0.5 and \({\text{Ra}}={10}^{5}\). Two symmetrical cells near top wall are produced covering region between bottom wall and middle of cavity, as shown by the streamlines are plotted in Fig. 5a. Magnitude of stream function rises up to \({\psi }_{{\text{max}}}\) = 0.08 due to intensification in the strength of buoyancy forces produced because of thermal convective potential. From the comparison of isotherms formed in Fig. 4b and 5b, it is observed that convective heat transport is enhanced in the cavity as Rayleigh number (Ra) is increased. Furthermore, it is obtained that isothermal contours become distorted and non-parallel to horizontal bottom wall which predict the dominance of convective potential. Figure 5c, d shows comparison of thermal and viscous entropies and found that friction of fluid is significantly higher than the local entropy formulation due to heat transport. Entropy generation caused by heat transport can reach a maximum value of \({\left({{\text{Si}}}_{{\text{Thermal}}}\right)}_{{\text{Max}}}=365\), whereas fluid friction can reach \({\left({{\text{Si}}}_{{\text{Viscous}}}\right)}_{{\text{Max}}}=3360\). Figure 5e expresses the impact of high thermal Rayleigh number (Ra = 105) on local entropy. From the sketch of local entropy generation contours similarity with fluid friction entropy maps (\({{\text{Si}}}_{{\text{Viscous}}}\)) is depicted. This consequence, provide evidence about dominating role of friction forces in generating irreversibility. Figure 5f, demonstrates the distribution of local Bejan number \(({\text{Be}})\) in the enclosure which illustrates the dominance of irreversibility due to fluid friction. The outcomes revealed that the local Bejan number \(\left({\text{Be}}\right)\) ranges from 0 to 1.

Fig. 5
figure 5

Variations in a streamlines, b isotherms, c SiThermal, d SiViscous, e Si and f Be contours at AR = 0.50, Ra = 105, and \(\upphi \) = 10–4

Figure 6 illustrates behavior of streamlines, isotherm contours, thermal entropy, viscous entropy and local Bejan number at \({\text{AR}}=0.75\), \(\phi ={10}^{-4}\), and \({\text{Ra}}={10}^{5}\). Figure 6a envision streamlines and observes two symmetrical cells at top and at the middle of bottom wall. It is revealed that by incrementing aspect ratio of enclosure magnitude of stream function rises up to \({\psi }_{{\text{max}}}\)= 8 which justifies that increase in aspect ratio causes up left in the strength of velocity field rises. It is because of the argument that by increasing aspect ratio of enclosure up to 0.75 provides space to the fluid for motion and as an outcome the factor of shear stress also enriches. Figure 6b represents variation in isothermal contours at \({\text{AR}}=0.75\),\(\phi ={10}^{-4}\), and \({\text{Ra}}={10}^{5}\). From the isothermal contours’ formation, it is noticed that, increase in aspect ratio produces diffusion of heat from heated to colder regions. Here, it is worthwhile to mention that by elevating aspect ratio of cavity convection dominates over conduction due to availability of space occurs in domain. The irreversibility phenomenon related to fluid friction and local entropy decreases with increasing AR, while a slight rise in the irreversibility of heat transport is seen when \({\left({{\text{Si}}}_{{\text{Themal}}}\right)}_{{\text{Max}}}\), \({\left({{\text{Si}}}_{{\text{Viscous}}}\right)}_{{\text{Max}}}\), and \({\left({\text{Si}}\right)}_{{\text{Max}}}\) which is shown in Fig. 6c–f. From these sketches, it is found that as the aspect ratio increases, the flow becomes more stable which reduces the turbulence and energy dissipation associated with fluid friction. As an outcome entropy generation due to fluid friction and local entropy decreases whereas, thickness of thermal boundary layer near the hot wall increases which lead to decrease in the convective heat transfer coefficient and thus the entropy due to heat transfer rises.

Fig. 6
figure 6

Variations in a streamlines, b isotherms, c SiThermal, d SiViscous, e Si and f Be contours at AR = 0.75, Ra = 105, and \(\phi \) = 10–4

Variation in total thermal entropy (SiTotal Thermal), total viscous entropy (SiTotal Viscous), total entropy (SiTotal) and average Bejan number (BeAvg) against aspect ratio (AR) varies from 0.25 to 0.75 for different magnitudes of Rayleigh number (\({10}^{2}\le {\text{Ra}}\le {10}^{5})\) is demonstrated in Fig. 7a–d by keeping the magnitude of irreversibility ratio and Prandtl number fixed at \(\phi \)=10–4 and Pr = 0.71, respectively. In Fig. 7a variation in (SiTotal Thermal) against change in aspect ratio (AR) and Rayleigh number (Ra) is demonstrated. To interpret their impact in exclusive manner (AR) is varied from 0.25 to 0.75 and (Ra) is changed from 102 to 105. Decrease in (SiTotal Thermal) is found against (AR), whereas increasing aspects in it are observed against (Ra). Quantitively, 47% decrement is delineated in (SiTotal Thermal) and magnitude of total thermal entropy reduces from 2.7969 to 1.4580 against (AR) change from 0.25 to 0.75. The reason behind decaying aspect total thermal entropy versus positive change in (AR) is justified by the argument that when (AR) increases the distance between hot (bottom) and cold (top) walls elevates due to which temperature gradient diminishes and leads to cause reduction in (SiTotal Thermal). Figure 7b expresses deviation in (SiTotal Viscous) against aspect ratio for different Rayleigh number is displayed. Rise in total viscous entropy is observed for different magnitudes of (AR) and for all values of (Ra). Physically, it is justified that enlargement in (AR) from 0.25 to 0.75 leads to the development high shear forces along the wall and contributes to viscous dissipation, as a consequence (SiTotal Viscous) upsurges. Increasing effect of (Ra) on total viscous entropy is due to the production of fluid flow caused by generation of temperature gradient at Ra = 105. The influence in total entropy (SiTotal) is illustrated in Fig. 7c. It is revealed that, as the amplitude of (AR) rises from 0.25 to 0.75, the geometry of the enclosure enlarges which causes large and more complex flow patterns as a result the magnitude of (SiTotal) upsurges and the highest value of 48.885 is obtained. Subsequently, Fig. 7d deliberates variations in average Bejan number (BeAvg) against (AR) for various magnitudes of (Ra). As the average Bejan number is a dimensionless quantity which determine the relative importance of entropy due heat transfer and fluid friction in a system. A higher Bejan number, i.e., (Be > ½) indicates that entropy due to heat transfer is dominants over entropy due to fluid friction, whereas for (Be < ½) fluid friction is more dominant. It is manifested from Fig. 7d that as the magnitude of (AR) increases, the cavity becomes larger in the vertical direction (H) relative to the horizontal direction (L) which leads to a decrease in the strength of the buoyancy-driven convective flows, which is the primary mechanism for heat transfer in natural convection. As the natural convection flow weakens, the heat transfer rate within the cavity decreases, which lead to a lower (SiTotal Thermal) and consequently, the magnitude (BeAvg) would decreases. Moreover, opposite trend in average Bejan number is depicted against (Ra) in comparison the variation in (AR). As the amplitude of (Ra) upsurges from 102 to 105, the magnitude of (BeAvg) down surges. Moreover, at lower magnitudes of Ra (102 and 103) the strength of (BeAvg) is greater than ½ which indicates that the irreversibility is due to heat transfer whereas, for high magnitudes of Ra (4 × 104, 7 × 104, and 105), the value of (BeAvg) is less than ½ which shows that the irreversibility due to fluid friction is strengthen then thermal entropy.

Fig. 7
figure 7

Variations in a \({{\text{Si}}}_{\mathrm{Total Thermal}}\), b \({{\text{Si}}}_{\mathrm{Total Viscous}}\), c \({{\text{Si}}}_{{\text{Total}}}\), and d \({{\text{Be}}}_{{\text{Avg}}}\) against aspect ratio (AR) for various values of Ra at \(\phi ={10}^{-4}\)

Variation of total thermal entropy (SiTotal Thermal), total viscous entropy (SiTotal Viscous), total entropy (SiTotal), and average Bejan number (BeAverage) against aspect ratio (AR) varies from 0.25 to 0.75 for various values of Rayleigh number, i.e., (Ra = 102 to 105) is demonstrated in Fig. 8a–d, by keeping fixed irreversibility ratio (\(\phi \) = 10–2) and Prandtl number (Pr = 0.71). In Fig. 8a, variations of (SiTotal Thermal) is shown against aspect ratio for different values of Rayleigh number. It is noticed that, as the value of (AR) increases, the magnitude of (SiTotal Thermal) decreases. Numerically, the highest magnitude 2.8 of total thermal entropy is achieved at (AR = 0.25). This declined in the magnitude of (SiTotal Thermal) is caused by the larger gap generated between heated (bottom) and cold (top) walls of the enclosure which lead to weaker temperature gradient outcomes flow intensity and heat transfer reduced. In addition, variations in total viscous entropy against aspect ratio for different Rayleigh number is depicted in Fig. 8b. It is revealed that, the magnitude of (SiTotal Viscous) upsurges as the amplitude of (AR) and (Ra) rises. This increment in the magnitude of total viscous entropy against aspect ratio is caused by larger space generated between thermal walls which allows fluid to circulate and fluid motion increases, which leads to produce higher shear rates and fluid velocities, as an outcomes viscous dissipation upsurge. Furthermore, a repaid incrementing behavior of total viscous entropy at high magnitude of (Ra = 105) is due to the growth of the fluid flow whereas, less incrementing performance is noted at low values of (Ra = 102) due to dominancy of viscous forces over inertial and minimal effects of buoyancy-induced turbulence. Moreover, variations in (SiTotal) against (AR) for different values of (Ra) is illustrated in Fig. 8c. It is noticed that, as the amplitude of Rayleigh number rises, the magnitude of total entropy also increases. Quantitatively, the maximum magnitude of (SiTotal) is 4748.9 obtained at (Ra = 105). This augmentation, is produced by dominancy of total viscous entropy over total thermal entropy and (SiTotal) looks like (SiTotal Viscous). Subsequently, deviations in average Bejan number (BeAvg) against aspect ratio and Rayleigh number is delineated in Fig. 8d. It is depicted that, the values of (BeAvg) declined against the upsurges magnitude of (AR). This decrement in the values of average Bejan number is caused by weaker buoyant forces which leads to lower fluid motion and potentially reduces heat transfer. Moreover, at lower magnitude of (Ra = 102) the strength of (BeAvg) is greater than ½ which indicates that the irreversibility is due to heat transfer, whereas for higher magnitude of (Ra = 105) the amplitude of (BeAvg) less than ½ which shows the irreversibility due to fluid friction is overriding on irreversibility due to heat transfer.

Fig. 8
figure 8

Variations in a \({{\text{Si}}}_{\mathrm{Total Thermal}}\), b \({{\text{Si}}}_{\mathrm{Total Viscous}}\), c \({{\text{Si}}}_{{\text{Total}}}\), and d \({{\text{Be}}}_{{\text{Avg}}}\) against aspect ratio (AR) for different values of Ra at \(\phi ={10}^{-2}.\)

Variations local Nusselt number (NuLocal) against Rayleigh number (Ra) for various values of aspect ratio (AR) of cavity is deliberated in Fig. 9. It is revealed that (NuLocal) show increasing behavior against Ra. As the Ra rises, the buoyancy forces become dominant over the viscous which causes buoyancy-driven convection becomes stronger. As a result, fluid motion and heat transfer near the surface increased. Consequently, the convective heat transfer is measured by the (NuLocal) also increase. Furthermore, it is also manifested that, the (NuLocal) declines against the value of AR of the cavity. As the value of AR rises more space is generated for fluid motion in the cavity which reduce the heat transfer and fluid mixing. This weaken heat transport and mixing lower the convective heat transfer coefficient, which decrease the (NuLocal).

Fig. 9
figure 9

Variations in local Nusselt number (NuLocal) against Ra for difference AR

Variation in average Nusselt number (NuAverage) and ecological coefficient of performance (ECOP) against Rayleigh number (Ra) for different aspect ratios (AR) of enclosure is enumerated in Table 3. During the calculation of mention physical quantities Prandtl number (Pr) and irreversibility ratio \((\phi )\) are unchanged at 0.71 and 10–4, respectively. In addition, wide range of flow controlling parameters are entertained such as \({10}^{3}\le {\text{Ra}}\le {10}^{5}\) and \(0.25\le {\text{AR}}\le 0.75\). It is noticed that by increasing (Ra) from 103 to 105, (NuAverage) escalates, whereas opposite trend is exhibits against rising value of AR from 0.25 to 0.75. Extensive growth in the magnitude of (NuAverage) up to 47.91%, 46.99%, and 56.42% is experienced when (Ra) increased from 103 to 105 at AR = 0.25, 0.50, and 0.75, respectively. Moreover, as AR increases from 0.25 to 0.75, the space between the heated and cold walls increases, this gap reduces the area through which heat can be exchanged between the fluid and the walls, leading to decrease in convective heat transfer efficiency and as an outcome 57.60%, 50.83%, and 49.32% declined is observed in magnitude of (NuAverage) at Ra = 103, 104, and 105. Additionally, ecological coefficient of performance (ECOP) which indicates the thermal performance of a computational domain is thus measured against flow controlling parameters. Higher magnitude of (ECOP) represents that minimization in the entropy of the system, whereas lower value of (ECOP) exhibits reduced heat transfer rate due thermal convection. The magnitude of (ECOP) down surges against rising amplitudes of both Ra and AR. Optimum value of (ECOP), i.e., 0.999246 is perceived when Ra is minimum i.e. (103) as compared to the scenario when Ra is maximum, i.e., (105) at AR = 0.25.

Table 3 Variation in average Nusselt number and ECOP against Ra for three different aspect ratios AR

Concluding remarks

Examination about influence of change in aspect ratio of trapezoidal enclosure on entropy generation in the flow of viscous fluid is analyzed. Two different types of entropy including, thermal and viscous are measured against involved physical parameters. Subsequently, Bejan number determining the ratio of thermal to local entropies is also estimated which delineates the dominance of convection and conduction transport regimes. Finite element approach via COMSOL Multiphysics software is utilized to execute numerical simulations.

Some exclusive outcomes of current communication are addressed as below

  1. 1.

    Depreciation in thermal entropy appears against increase in aspect ratio of enclosure, whereas all other associated entropies depict elevation.

  2. 2.

    At Ra = 105, the magnitude of Bejan number approaches toward unity which signifies the dominance of convection over conduction in contrary to the situation at low thermal Rayleigh number.

  3. 3.

    For Ra < 104 no appreciable change in viscous and thermal entropies is found, whereas at Ra > 104, comprehensive growth in mentioned quantities is measured.

  4. 4.

    Magnitude of viscous entropy is more in case of high value of irreversibility ratio, i.e., \(\phi = {10}^{-2}\) in comparison to lower magnitude of \((\phi )\).

  5. 5.

    By increasing \(({\text{Ra}})\), total entropy formulation rises in the enclosure and for a similar \(Ra\), an enclosure with a high aspect ratio (i.e., \({\text{AR}} =0.75\)) may generate less total entropy than a cavity with a low aspect ratio (i.e., \({\text{AR}} =0.25\)).

  6. 6.

    For high Rayleigh number (i.e., Ra = 105), the magnitude of (BeAvg) is less than ½, which indicates the dominance of entropy generation due to fluid friction, whereas for low Rayleigh number (Ra = 102), the magnitude of (BeAvg) is greater than ½, which shows the effectiveness of heat transfer in generating irreversibility phenomena.

  7. 7.

    64.76% and 49.32% decrease are obtained in local Nusselt number and average Nusselt number, respectively, when aspect ratio (AR) is increased from 0.25 to 0.75 at (Ra = 105).

  8. 8.

    It is noticed that ECOP reduces against increment in (AR), which also evidences minimization in entropy arises due to aspect ratio change.