Figures
Abstract
The objective of the study is to investigate the fluid flow and heat transfer characteristics applying Artificial Neural Networks (ANN) analysis in triangular-shaped cavities for the analysis of magnetohydrodynamics (MHD) mixed convection with varying fluid velocity of water/Al2O3 nanofluid. No study has yet been conducted on this geometric configuration incorporating ANN analysis. Therefore, this study analyzes and predicts the complex interactions among fluid flow, heat transfer, and various influencing factors using ANN analysis. The process of finite element analysis was conducted, and the obtained results have been verified by previous literature. The Levenberg-Marquardt backpropagation technique was selected for ANN. Various values of the Richardson number (0.01 ≤ Ri ≤ 5), Hartmann number (0 ≤ Ha ≤ 100), Reynolds number (50 ≤ Re ≤ 200), and solid volume fraction of the nanofluid (ϕ = 1%, 3% and 4%) have been selected. The ANN model incorporates the Gauss-Newton method and the method of damped least squares, making it suitable for tackling complex problems with a high degree of non-linearity and uncertainty. The findings have been shown through the use of streamlines, isotherm plots, Nusselt numbers, and the estimated Nusselt number obtained by ANN. Increasing the solid volume fraction improves the rate of heat transmission for all situations with varying values of Ri, Re, and Ha. The Nusselt number is greater with larger values of the Ri and Re parameters, but it lessens for higher value of Ha. Furthermore, ANN demonstrates exceptional precision, as evidenced by the Mean Squared Error and R values of 1.05200e-6 and 0.999988, respectively.
Citation: Hudha MN, Hasan MJ, Bairagi T, Azad AK, Rahman MM (2024) Artificial Neural Network analysis on the effect of mixed convection in triangular-shaped geometry using water-based Al2O3 nanofluid. PLoS ONE 19(9): e0304826. https://doi.org/10.1371/journal.pone.0304826
Editor: Ghulam Rasool, Beijing University of Technology, CHINA
Received: March 1, 2024; Accepted: May 17, 2024; Published: September 13, 2024
Copyright: © 2024 Hudha et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All relevant data are within the manuscript.
Funding: The author(s) received no specific funding for this work.
Competing interests: On behalf of all authors, I declared that we have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Abbreviations: Cp, Specific heat at constant pressure (Jkg-1K-1); Gr, Grashoff number; H, Convective heat transfer coefficient (Wm-2K-1); Ha, Hartmann number; k, Thermal conductivity of the material (Wm-1K-1); L, Length of the enclosure (m); p, Dimensional pressure (Nm-2); P, Dimensionless pressure; Pr, Prandtl number; Re, Reynolds number; Ri, Richardson number; T, Dimensional temperature (K); u, v, Dimensional velocity components (ms-1); U, V, Dimensionless velocity components; x, y, Dimensional cartesian coordinates; X, Y, Dimensionless cartesian coordinates; Β0, Magnetic field induction (T); ψ, Stream function; α, Thermal diffusivity (m2s-1); β, Co-efficient of thermal expansion (K-1); θ, Dimensionless temperature; μ, Dynamic viscosity of the fluid (kgm-1s-1); ρ, Density of the material (kgm-3); σ, Electrical conductivity (Ω-1m-1); υ, Kinematic viscosity of the fluid (m2s-1); ϕ, Solid volume fraction; avg, average; bf, base fluid; c, cold; h, hot; nf, nanofluid; sp, solid particle
1. Introduction
Mixed convective fluid flow and heat transfer in different enclosures considering various conditions has been a notable area of research in the past decade. Various models and methodologies are involved in order to incorporate multiple shapes, fluids, and boundary conditions. Raza et al. [1] investigated the fluid dynamics of ternary solid particles, nano-layers, and the impact of magnetic fields in the presence of porous disks. Their research centered on improving heat transfer by considering the kinetics of entropy formation and factors such as joule heating effects and chemical interaction with nanoparticles. Irshad et al. [2] investigated the thermal characteristics and entropy analysis of double-diffusive phase transition materials within a porous H-shaped wavy cavity. Utilizing the Forchheimer-Brinkman enlarged Darcy medium model, they investigated the impact of several key points on convective heat and mass transmission.
Magnetohydrodynamics (MHD) or magnetic field is often considered in the thermal problems for specific applications, as it has a significant impact on hydrothermal performance [3–7]. Selimefendigil and Öztop [8] investigated the phase transition and thermal processes occurring in a wavy enclosure. The enclosure contained a spherical-shaped encapsulated phase change material (PCM) and was subjected to magneto-convection of nanofluid. Active rotations at Re = 100 resulted in a 12.5% decrease in phase transition time, but at Re = 0, there was a 16.6% increase. Mahabaleshwar et al. [9] studied the flow of power-law nanofluids across a decreasing sheet under MHD. They derived analytical solutions that demonstrated the influence of the Chandrasekhar number, nanofluid, and inclination angle parameters on the flow dynamics. The study discovered that the magnetic field substantially impacted skin friction and mass transpiration. Khalili et al. [10] investigated the augmentation of electrical power in solar panels by introducing Fe3O4 nanoparticles into water. The combination of magnetic field-assisted cooling and a thermoelectric generator resulted in a 5.07% improvement in performance as the magnetic field intensity (Ha) increased and an 11.70% improvement with higher inlet velocity.
Nanofluid has been extensively used in various studies to enhance thermal performance [11–13]. Porgar et al. [14] conducted a study on the use of carbon nanotubes in transformer oil nanofluids. The results revealed that the effective thermal conductivity of the nanofluids augmented as the temperature and concentration of carbon nanotubes increased. The maximum enhancement was observed at a temperature of 45°C and a volume fraction of 0.56. Rajesh and Öztop [15] investigated the effects of a ternary hybrid nanofluid on heat transfer in a square-enclosed environment using numerical simulations. It provided extensive assessments of average Nusselt numbers and profiles of streamlines and isotherms while considering varied nanoparticle volume percentages and Rayleigh numbers. Belabid and Öztop [16] analyzed the thermal process in a cylindrical porous annulus with wavy walls, where phototactic microorganisms and hybrid nanofluid were present. The results indicated that the Lewis number significantly impacts thermo-convection, nanoparticles improve heat transmission, and increasing wall waviness characteristics lead to a drop in the Nu. Sheikholeslami and Jafaryar [17] simulated turbulent flow in a solar system absorber tube using a swirl flow device, including CNT-water nanomaterial. Gangadhar et al. [18] examined the properties of Casson-Maxwell nanofluid between stationary discs, taking into account thermal radiation and chemical interactions. The results demonstrated that the temperature improved as the Brownian motion and radiation parameters rose, and the rate of reaction impacted the system.
Shao et al. [19] utilized Response Surface Methodology (RSM), an advanced statistical technique, to optimize heat transfer in a micropolar nanofluid flow within a squeezing channel. This optimization process took into account many restrictions and parameters, such as the magnetic field and thermal radiation. The study found that a higher volume fraction increased fluid viscosity, which in turn caused a decrease in velocity. Jafaryar et al. [20] suggested an innovative configuration of a twisted tape integrated with helical fins heat sink to improve the convective flow within the absorber pipe of a solar water heater. The results indicated that including helical fins led to a 70.52% increase in Nu. Additionally, when the Reynolds number grew from 4500 to 9000, Nu increased by 76.31%, while the Darcy factor reduced by 22.72%. Selimefendigil and Öztop [21] studied how a magnetic field and revolving cylinders affect thermal processes in a T-shaped channel. A zone filled with PCM was studied to determine how many things affected it. The lack of a magnetic field reduced transition time by 42.5% at Reynolds number 2000. Khalili and Sheikholeslami [22] proposed an innovative approach to cool photovoltaic (PV) panels by integrating them with a thermoelectric generator and utilizing a heat transfer tube combined with a restricted jet impingement heat sink. The cooling fluid consisted of water combined with hybrid nano-powders (ND-Co3O4) in different proportions. Under certain conditions, the modified system exhibited electrical and thermal efficiencies of around 84% and 15.44%, respectively, surpassing scenarios with lower sun irradiation. In another study [23], they suggested an improved cooling system for Photovoltaic (PV) cells by employing a numerical method that integrates a thermoelectric layer and a hybrid nanofluid in cooling ducts of different forms and Y-shaped fins. The triangular duct with fins and jets exhibited superior performance compared to a circular pipe, achieving a performance improvement of 9.97%.
In recent studies, Artificial Neural Networks have been incorporated in order to optimize the problems related to enclosure and cavity flow, considering heat transfer problems under mixed convection [24–28]. Çolak [29] examined the impact of viscous dissipation on heat transport over a stretchy surface using Cu-PVA Jeffrey nanofluid under the influence of magnetohydrodynamics. The study utilized ANN models that demonstrated a high level of predicted accuracy. The R values for skin friction and Nu were determined to be 0.99020 and 0.99394, respectively, indicating the model’s high degree of reliability. Li et al. [30] presented a novel design for a microchannel heat sink that resembles a tree structure. This design was developed utilizing ANN and RSM. The predictions made by this design were highly accurate, with modified R2 values reaching up to 0.997. Jery et al. [31] performed a simulation of a geothermal heat exchanger, where the goal was to reduce entropy generation by optimizing the diameter and nanoparticle concentration. The study found that enhancing the heat resistance of the inner wall in larger diameters reduced the impact of entropy, whereas the inclusion of nanoparticles resulted in an approximately 10% rise in the average Nusselt number. Cho et al. [32] used numerical methods to assess 3D mixed convection with different aspect ratios (AR). Higher AR increased heat transfer rates. The study showed that an ANN could predict heat transfer characteristics as accurately as DNS data. Filali et al. [33] demonstrated the viability of employing ANN for forecasting thermal dynamics in mixed convection, which was trained using numerical simulations of a square cavity with internal blocks that were driven by a lid. This training allowed the ANN to make accurate predictions for various combinations of Reynolds, Grashoff, and Richardson numbers and block distances. The results emphasized the impact of the spacing between blocks on the Nu, and specific correlations were developed for potential uses in engineering design. Alqaed et al. [34] utilized the SIMPLE algorithm to examine the natural convection of water-Al2O3 nanofluids in a cavity with triangular blades. The analysis uncovered a direct relationship between the Ra and both the Nu and the rate of entropy production. Nevertheless, the influence of the Ha on these variables was contingent upon the values of Ra.
To this point, numerous studies have been conducted to investigate fluid flow and thermal performance in enclosed flows. However, there is a significant research gap that needs to be filled. This study aims to fill the research gap by using Artificial Neural Networks analysis in triangular-shaped cavities for magnetohydrodynamics (MHD) mixed convection with water/Al2O3 nanofluid. The introduction of ANN analysis attempts to offer a new method for comprehending the intricate relationships among fluid flow, heat transmission, and the factors that affect these cavities. This research addresses a gap in the existing literature and adds to the overall body of research by providing precise predictions and insights for improving triangular-shaped cavities under mixed convection with magnetohydrodynamics. This is especially pertinent for engineering applications and corresponds to the increasing interest in advanced computational methods for intricate fluid flow and heat transfer issues. Therefore, this study assesses the fluid flow, heat transfer, and conduct an Artificial Neural Network analysis for various Ri, Ha, and Re within the specified intervals of 0.01 ≤ Ri ≤ 5, 50 ≤ Re ≤ 200, and 0 ≤ Ha ≤ 100, respectively. Additionally, the study takes into account the three-variable nanofluid concentrations (1%, 3% and 4%) for the water-based Al2O3 nanofluid. The heat transfer and thermal science community will greatly benefit from the outcomes of this research.
The following sections of the study will detail the approach used, which includes finite element analysis and the Levenberg-Marquardt backpropagation technique for artificial neural network analysis. The study will also discuss the chosen parameters that were taken into account, including the Ri, Ha, Re, and volume fraction. It will also offer the findings and conclusions gained in order to fill the research gap and enhance understanding in this field.
2. Fluid domain and mathematical formulation
2.1. Problem specifications
The physical model considers a uniformly charged Al2O3-H2O nanofluid in a triangular–shaped cavity with a two-dimensional, laminar, and incompressible mixed convection flow. In this study, alumina (Al2O3) is used as a nanoparticle, and water (H2O) is used as the base fluid. The enclosure’s height, H and base wall length, L = 2.40H, are represented by these letters. Additionally, for 0 < x < 2.40, the zeroth order Bessel’s function (J0(x)) forms the shape of the curve. A mixed convection flow has been introduced by the moving wall. The curve-inclined wall warms up at low heat, T = Tc, while the bottom wall warms up at . The insulation is retained on the vertical wall. The vertical wall symbolizes the y-coordinate, and the bottom wall symbolizes the x-coordinate. The direction of action of gravitational acceleration is negative. It is believed that there is no dynamical or thermal slip between the base fluid and the nanoparticles since they are uniformly distributed throughout it. For all solid barriers, no-slip walls are taken into account. The average Nu at the heated wall is investigated using water-based alumina (Al2O3) nanofluid. The fluid domain is illustrated in Fig 1, and Table 1 displays the thermophysical characteristics, including base fluids.
2.2. Mathematical and governing equations
2.2.1 Dimensional governing equations.
The dimensional variant of the continuity, momentum under the Boussineq approximation, and energy equations for the 2-D mixed convective Newtonian fluid, laminar flow, and steady-state flows are as follows:
(1)
(2)
(3)
(4)
Where due to significant temperature variations, density fluctuations related to temperature in the buoyancy term are approximated using a Boussinesq model. This means that density changes are assumed to follow a relationship with temperature −ρ0β(T − Tc)g.
The boundary conditions for the given problem are as follows.
2.2.2 Dimensionless governing equations.
To formulate the Eqs (1)–(4) in a dimensionless format about their initial and boundary conditions Eq (5). The dimensionless factors are:
(6)
(7)
(8)
Applying the Eqs (6)–(8), the continuity, momentum, and energy equations- the dimensionless equations are as follows:
(9)
(10)
(11)
(12)
Then, the dimensionless boundary conditions for this specified problem are
(13)
2.2.3 Nanofluid and its properties.
Table 1 shows the nanofluid’s thermophysical properties, which are shown below, according to Roslan et al. [35]. The nanofluid properties that are used in Eqs (2)–(4) were formulated by following relations.
The nanofluids’ effective density, or ρnf, is provided as:
(14)
and ϕ is nanofluid’s volume fraction.
The Heat capacitance of the nanofluids:
(15)
The thermal expansion coefficient:
(17)
The electrical conductivity:
(18)
The thermal conductivity is used following the Maxwell model [36]
(19)
The average Nusselt number is computed across the entirety of the arc-shaped heater and is defined as follows:
(21)
The construction of streamline graphs involves the utilization of the stream function Ψ(X, Y), which is defined as the non-dimensional forms .
A positive value of Ψ(X, Y) implies a counterclockwise rotation of the nanofluid flow, whereas a negative value of Ψ(X, Y) suggests a clockwise rotation.
3. Numerical methodology
3.1 Numerical approach
Utilizing the Galerkin finite element technique, the non-dimensional Eqs (7)–(10) as well as the non-dimensional boundary conditions in Eq (11) are solved using computational software. The computational domain is discretized using this method into a limited number of elements composed of irregular triangular or rectangular cells. Finite element equations are constructed using triangular elements. The mesh structures of the full domain equipped with triangular mesh components are depicted in Fig 1. The governing nonlinear partial differential equations are then converted using the Galerkin weighted residual method to create a system of integral equations. The Gauss Quadratic Method is used to carry out the investigation required for each component of these equations. Boundary conditions are then applied to those algebraic nonlinear equations. Ultimately, the system of those nonlinear algebraic equations is solved and represented in matrices by using the Newton-Raphson Iteration method. A particular upper constraint is used to set the convergence criterion and error estimation for the numerical solution. Afterwards, the process of solving the problem is carried out until the convergence requirements are met.
3.2 Grid test
To discretize the domain, triangular elements were used so that the computational cost could be minimized. First of all, a total of 51765 domain elements were considered, and later, the number of elements was increased step by step. The average Nu and temperature were calculated for the increased grid number. The result is depicted in Table 2. Grid sensitivity test was observed in terms of average Nu for Re = 100, Ri = 1, ϕ = 4%, Ha = 10, and Pr = 6.83. The analysis found that a total of 76023 is optimum number of elements to minimize the computational cost and negligible change in the result.
3.3 Code validation
The numerical model employed in this study has been validated against findings from previous literature. Specifically, comparisons were made between the Nusselt number, isotherm, and streamline contours to assess the accuracy of the results. Table 3 compares the average Nu on the upper surface of the triangle with the values reported by Khanafer and Chamkha [37] and Soomro et al. [38] for Gr = 100 and Pr = 0.71. The average Nusselt number has been seen to closely align with earlier investigations, exhibiting minimal error. Fig 2 depicts the comparison between Xiong et al. [39]’s study and present study in terms of isotherms(Fig 2(a)) and streamline contours (Fig 2(b)) at fixed value of Ri = 2, Re = 400 and Ha = 10 for right obstacle. It has been noted that the velocity and temperature distributions for both contours exhibit a high degree of similarity. Therefore, it can be confidently stated that the current study is well supported by prior literature. Further inquiries have been conducted in this study utilizing the identical code.
Model validation (a) Isotherm contours and (b) Streamlines contours of Xiong et al. [39] and the present study.
3.4 Artificial Neural Network analysis
An Artificial Neural Network (ANN) is a computing system that can accurately represent complex patterns and effectively handle prediction problems. This is because an ANN closely mimics the functioning of the human brain. A neural network builds a correlation between a collection of numerical goals and a series of numerical inputs. Artificial Neural Networks (ANN) can be designed with a feed-forward, recurrent, multi-layer, or single-layer architecture. The illustrated ANN structure and Flow chart in Fig 3 comprises three layers: the input, hidden, and output layers. The chosen model for this job was a feed-forward back propagation neural network, as feed-forward networks can solve issues involving finite input-output mapping. To predict the value of the output variable (Nuavg), a dataset consisting of 256 entries for the four input variables (Ri, Ha, ϕ, Re) is utilized.
The process of training Neural Networks via back propagation consists of three stages: (i) the forward propagation of the input training pattern, (ii) the computation and backward propagation of the corresponding error, and (iii) the modification of the weights. This procedure can be employed with various optimization strategies. The discrepancy between the network’s output and the desired value is transmitted in the opposite direction during the backward pass and utilized to modify the weights of the preceding layers. The study utilized the neural network fitting (NNF) tool available in Matlab (version R2018a) as a soft-computing tool to do neural network modeling. For fitting challenges, a neural network can be employed to establish a relationship between a dataset consisting of numerical inputs and a set of numerical goals. The NNF tool facilitates the creation, training, and evaluation of a network by utilizing mean square error and regression analysis to assess its performance.
An artificial neural network (ANN) can be converted into a mathematical equation by utilizing the weights and biases, along with the transfer function, as shown in Eq (22).
Then, average Nusselt number is,
(23)
where,
(24)
The equation’s variables are defined as follows: b0 represents the output layer’s bias, wk represents the connection weight between the k th neuron of the hidden layer and the single output neuron, bhk represents the bias at the k th neuron of the hidden layer, h represents the number of neurons in the hidden layer, m represents the number of neurons in the input layer, wik represents the connection weight between the ith input variable and the hidden layer, X i represents the normalized input variable i, Y represents the normalized output variable, and f sig represents the transfer function.
The mathematical model proposed in this study predicts the Artificial Neural Network (ANN) using two normalized input variables (i.e. i = 4), one targeted output variable, seven neurons connecting the input and hidden layer (i.e. h = 7), and the sigmoid transfer function (f sig = sigmoid).
The value of b0 is 6.0672705. The layer weight matrix LWk and the numerical value of neurons Uk are given in Eqs (23) and (24), respectively.
Prior to delving into the research of ANN, it is crucial to examine the correlation between the variables. The provided information includes a Pearson correlation matrix, which is presented in Fig 4. A number approaching 1 indicates a strong positive correlation. Here, the correlation coefficient between the Nusselt number and Reynolds number is 0.96. This indicates a strong positive correlation between these variables. Conversely, the association between Reynolds number and volume fraction (ϕ) is so small.
The schematic diagram of the ANN model is displayed in Fig 3, along with the sequential representation. There is currently no standardized approach for determining the optimal number of hidden layers. In this case, a hidden layer consisting of 7 neurons is employed to save computational time and maintain model simplicity in order to prevent unnecessary complexity.
4. Results and discussions
The following section discusses the effect of the Richardson number, Hartmann number, and Reynolds number varying the solid volume fraction on fluid flow, fluid temperature, and heat transfer in the triangular-shaped cavity using water-Al2O3 nanofluid.
4.1 Effect of Richardson number
The impact of the Richardson number on fluid velocity can be observed from the streamline plots. Fig 5 illustrates the fluid flow streamlines inside a triangular shape cavity with different mixed convection situations, varying the solid volume fraction of the nanofluid. Three Richardson number cases, Ri = 0.01, 1, and 5, have been selected, and three volume fractions of nanofluid, ϕ = 1%, 3%, and 4%, have been chosen for this analysis. Here, Ri = 0.01 represents the forced convection dominant case, and Ri = 5 denotes natural convection. From the figure, it has been observed that the fluid velocity gradient doesn’t change much with the increase or decrease in the volume of the fluid. However, mixed convection plays a vital role in changing the velocity streamlines. For a specific solid volume fraction condition, the fluid velocity streamline is found to be higher for higher Richardson number cases. This is because forced convection is dominant in such cases, leading to a higher velocity gradient. Therefore, in the case of Ri = 5, the highest velocity gradient is observed. The lowest gradient is found for the natural convection dominant cases, Ri = 0.01. Considering all the conditions, the highest velocity streamline is found for the case of Ri = 5 with ϕ = 4%.
There is an impact on the temperature gradient inside the triangular-shaped cavity due to variations in mixed convection values and solid volume fraction. Fig 6 illustrates the isotherm plots for three variable Richardson numbers and three solid volume fractions. It is observed that with the rise of the Richardson number, the temperature gradient increases, which is obvious. This is because the higher Richardson number ensures forced convection where velocity is involved. Therefore, the temperature variation spans across the fluid domain, and the heat transfer is also higher. Higher temperatures are found for Ri = 5 cases under any solid volume fraction conditions. On the other hand, in the Ri = 0.01 cases, the temperature of the nanofluid is lower. Nanoparticle volume concentration has an impact on the temperature profile in the fluid domain. The temperature of the fluid rises with the increase of nanoparticle concentrations. This is because the thermal conductivity is higher for a more concentrated nanofluid. As a result, the higher temperature is found for ϕ = 4%. Comparing the nine cases, it is noticed that the highest temperature is found for the case of Ri = 5 with ϕ = 4%, and the lowest temperature is obtained for Ri = 0.01 with ϕ = 1%.
The rate of heat transmission is contingent upon the regime of mixed convection and the concentration of nanofluid. The Nu represents the rate at which heat is transferred. Fig 7 depicts how heat is transferred for different Ri and volume concentration scenarios. Fig 7(a) displays the line graph representing the Nu for a range of Ri values from 0.01 to 5 and ϕ values from 1% to 4%. It has been noted that the Nu escalates as the concentration of nanofluid increases. This is because the higher concentration of nanofluid leads to an increase in thermal conductivity. Consequently, the heat transfer rate is larger when ϕ equals 4%, and the Nu value is lower when ϕ equals 1%. The heat transfer rate also depends on the value of the Ri. Fig 7(b) displays a two-dimensional graph illustrating the Nu as it varies with different values of Ri and ϕ. It has been observed that the rate of heat transmission increases as the Ri increases. During forced convection, there is an increase in the rate of heat transfer, which is a common occurrence. Additionally, it is seen that the heat transfer rate reaches a steady state at a Ri of 4. Furthermore, increased forced convection leads to a decrease in the average Nu. Fig 7(c) displays a 3D figure, revealing that the maximum Nu is seen for the scenario with Ri = 4 and ϕ = 4%. The situation with Ri = 0 and ϕ = 1% yields the minimum heat transfer rate.
4.2 Effect of Reynolds number
This study also analyzes fluid flow, temperature, and heat transfer, considering variable fluid velocity. Fig 8 shows the velocity streamline plots for different Reynolds numbers and solid volume fractions. Three different Reynolds numbers, Re = 50, 100, and 200, were chosen, and three variable solid volume fractions ϕ = 1%, 3%, and 4% were selected for the study. It is observed that the fluid velocity gradient increases with the rise of the solid volume fraction. This happens for all Reynolds number conditions. For a specific Reynolds number, with the augmentation of nanoparticle concentration, the velocity gradient is found to be higher. As a result, higher velocity is found for ϕ = 4%. Reynolds number plays a vital role in augmenting the velocity gradient in the triangular-shaped cavity. It is found that the higher the Reynolds number, the greater the velocity streamline. This is because a higher Reynolds number denotes higher velocity. As the higher velocity is involved for the greater Reynolds number, the velocity streamlines are found to be the highest in the case of Re = 200 for any constant solid volume concentration cases. On the other hand, the velocity streamline is found to be lesser for the lower Re case, such as Re = 50. Comparing all the cases, the greater velocity streamline is found for the case of Re = 200 with ϕ = 4%, and the lowest velocity profile is obtained for Re = 50 with ϕ = 1%.
The temperature profile of the triangular-shaped cavity for variable Reynolds numbers can be observed from the isotherm plots shown in Fig 9. The temperature of the fluid is not the same for different Reynolds numbers and solid volume fraction cases. It is observed from the plots that the Reynolds number has a positive effect on the fluid temperature. The higher the Reynolds number, the greater the temperature of the fluid is found. This is because higher fluid velocity ensures better heat dissipation inside the cavity, resulting in higher fluid temperature. For a constant solid volume fraction case, the higher fluid temperature is found for Re = 200, whereas the lower is obtained for Re = 50. The fluid temperature also rises with the solid volume fraction as before. The cases with ϕ = 4% show higher fluid temperature, and ϕ = 1% show lower temperature. As a result, the highest fluid temperature is found for the case of Re = 200 with ϕ = 4%, and the lowest fluid temperature is reported for Re = 50 with ϕ = 1%.
The heat transfer rate depends on the Reynolds number and solid volume fraction as well. The variation of heat transfer rate for changed values of Reynolds number and volume fraction has been shown in Fig 10. It is found that the heat transfer rate increases with the increase in fluid velocity. A higher Reynolds number ensures a better heat transfer rate, and therefore, a higher Nusselt number is found for the case of Re = 400. However, the lower Nusselt number is reported for lower Reynolds numbers, such as Re = 100. It is also noticed that the higher transfer rate rises very little with the change in fluid velocity. On the other hand, solid volume fraction plays a more vital role than the Reynolds number. The heat transfer rate increases for higher values of solid volume fraction. As a result, the highest heat transfer rate is found for the case of ϕ = 4%, as before. The reason is that the more concentrated nanofluid is highly capable of transporting heat as the thermal conductivity is greater. However, the lower heat transfer rate is observed for the lower nanofluid concentration ϕ = 1% due to lower thermal conductivity. The highest Nusselt number is found for the case of Re = 400 with ϕ = 4%. On the other hand, the lowest heat transfer rate is obtained for Re = 100 with ϕ = 1%.
4.3 Effect of Hartmann number
The impact of magnetohydrodynamics was also analyzed by varying the Hartmann number in the triangular-shaped cavity. Fig 11 represents the streamlines plot in the cavity for different Hartmann numbers (Ha = 0, 20, and 100) and three variable volume fractions ϕ = 1%, 3%, and 4%. It is observed that the fluid flow streamline has a negative effect on the Hartmann number. With the increase of the magnetic field, the velocity streamline gets reduced. This is because the fluid flow has been hindered due to magnetohydrodynamics. However, the velocity profile enlarges for higher values of solid volume fraction. For the Ha = 0 and 20 cases, a separate vortex region is also found on the right side of the cavity for the higher volume fraction case ϕ = 4%. The fluid velocity gradient is higher for Ha = 0, and the lowest is obtained for Ha = 100. Regarding the nanofluid concentration, a higher velocity profile is seen for ϕ = 4, while the lower one is observed for ϕ = 1%.
The magnetic effect also has a negative impact on the temperature of the fluid. This is evident from the isotherm plots in Fig 12, where three Hartmann numbers and three volume fraction cases are presented. It is observed that, due to the increase in the Hartmann number, the temperature gradient is reduced. Conversely, it rises for lower values of the Hartmann number, where the magnetic field is lower. Consequently, the highest temperature gradient is found for the Ha = 0 case, and the lowest temperature gradient is observed for Ha = 100 in a constant volume fraction case. The solid volume fraction contributes to an increase in fluid temperature, with the fluid temperature rising as the volume fraction increases. Therefore, the highest temperature is observed for ϕ = 4%, and the lowest is obtained for ϕ = 1%. Comparing all the cases, the highest fluid temperature is found for the case of Ha = 0 with ϕ = 4%, and the lowest is observed for Ha = 100 with ϕ = 1%.
Fig 13(a)–13(c) illustrate the comparison of the Nusselt number for different Hartmann numbers and solid volume fractions in the triangular-shaped cavity using line graph, 2D plot and 3D plot. It is observed that the heat transfer rate decreases with the increase in Ha. This is because the Hartmann number has a negative effect on fluid flow and heat transfer. The heat transfer rate significantly reduces from Ha 100 to 350. Beyond 350, the rate of heat transfer decrement is lower up to 400. Consequently, the lowest heat transfer rate is found for Ha = 400. A similar trend is observed for all solid volume fraction cases. However, for an increased value of solid volume fraction, the Nusselt number rises. The highest Nusselt number is found for ϕ = 4%, and the lowest is obtained for ϕ = 1%. This is attributed to the higher thermal conductivity capable of high heat transfer for high-concentration nanofluids. Comparing all cases, the highest Nusselt number is found for Ha = 100 with ϕ = 4%, and the lowest is obtained for Ha = 400 with ϕ = 1%.
4.4. ANN training, testing and validation
In this study, the average Nusselt number (Nupred) is estimated using a two-layer feed-forward network. The accuracy of the estimation is verified by calculating the Mean Squared Error (MSE). The Levenberg-Marquardt backpropagation algorithm is used to train the suggested network. In this work, the hidden layer utilized the sigmoid activation function as its transfer function, whereas the output layer employed either a linear transfer function or the purelin activation function. For this ANN study, phi (0.01,0.02,0.03,0.04), Ha (0,20,50,100), Re (100,200,300,400) and Ri (0.01,0.1,1,5), these combinations were taken. And 70% of data i.e., 180 observations, were taken to feed the model, 15% of data i.e., 38 obs. To ensure validation, an additional 15% of the data is allocated to validate the accuracy of the model. The model’s accuracy is represented in Table 4, which displays the Mean Squared Error (MSE) value and the regression (R) value.
Table 4 clearly indicates that the Mean Squared Error (MSE) value for the training data is 5.6e-7 and for the validation data, it is 1.05e-6. These values demonstrate that the model exhibited a high level of effectiveness in predicting the target variable. The regression values for the train, validation, and test data are 0.999994, 0.999988, and 0.999989, respectively. Table 5 displays the model’s effectiveness in terms of Mean Squared Error (MSE) and R for randomly sampled data. This further substantiates the accuracy of the model in predicting the target variable, where Regression values quantify the degree of correlation between the outputs and objectives. An R value of 1 indicates a strong correlation, while a value of 0 suggests no correlation. The MSE (Mean Squared Error) is the average of the squared differences between the predicted outputs and the actual goals. Smaller MSE values indicate better accuracy, and a value of zero signifies no error.
Here, Nupred stands for predicted Nusselt number using ANN model, Nuavg for simulated Nusselt number using mathematical simulation toolbox (input data), and n for data size or number of observations.
Fig 14 describes the activation function Sigmoid and purelin graphically. The activation functions that were employed in the hidden layers are found in Eqs (26) and (27), while the MSE Eq (25). The purelin activation function, also known as the linear activation function, is used in specific scenarios within ANNs. Purelin primarily shines in the output layer of ANNs designed for regression tasks. In regression, the network aims to predict continuous values, line house prices pr stock values, in this case it is average Nusselt number that is a continuous variable. Purelin, in contrast to other activation functions, outputs the weighted sum of its inputs exactly as it is. This indicates that the final predictions from the network stay within the original range of your target values, which is crucial for accurate regression. On other hand, the sigmoid activation function, also known as the logistic function, has its place in different scenarios within ANNs. Sigmoid excels in tasks where the output needs to be a probability between 0 and 1. It is widely used in hidden layers of shallow neural networks (few layers) due to its simplicity and ease of calculation.
Fig 15 illustrates a histogram of errors, and it is visible from the graph that those errors are so small in terms of number. And most of them are close to zero. In this figure, it describes a comparison for forecasted error value for Training, Test and Validation dataset. The zero line is shown at the histogram’s central point. Furthermore, it is evident that the model worked incredibly well and that the predicted values were extremely precise because the difference between the targets and outputs was so little, as the error values were almost exactly zero. Additionally, the maximum instances maintain a close proximity to the zero-error line, indicating an optimal model.
Fig 16 shows the regression plot between given target value and predicted output value for three dataset such as train, test and validation. The regression line displays exact accuracy in the training case when comparing the predicted values (output) to the known values (target). It holds true in other cases as well. Additionally, a regression value that is as near to 1 suggests a reliable forecasting model. Furthermore, the regression plot predicts the desired variables and displays encouraging findings.
The predicted data and the Error of the predicted data are displayed in Table 6. Here, Nuavg is the simulated or given Average Nusselt Number. Additionally, average Nusselt number enhancement is given in the table for different values. The results showed that the Reynolds number (Re) had the greatest influence on the Nusselt number, with an increase of 17% when Re increased from 300 to 400. The influence of the Rayleigh number (Ra) was minimal, while the Ha had a negative impact, initially it increased but then decreasing the Nusselt number as Ha increased. The solid volume fraction also had a positive influence on the Nusselt number, increasing the heat transfer rate by almost 7% as solid volume fraction increases from 1% to 4%. The error was calculated using Eq (28). And it is crystal clear that the error is so minimal.
5. Conclusions
This investigation was conducted to study the fluid flow and thermal performance in a triangular-shaped cavity using a nanofluid consisting of Al2O3 particles suspended in water. The study considered the effects of mixed convection, magnetohydrodynamics (MHD), and varying Reynolds numbers. Various values of the Richardson number (Ri), Hartmann number (Ha), Reynolds number (Re), and solid volume percentage of the nanofluid (ϕ) were examined. The Levenberg-Marquardt backpropagation approach was employed to do an analysis utilizing Artificial Neural Network (ANN).
The primary discoveries of the investigation are as follows:
- The concentration of nanofluid has a major impact on the rate of heat transfer, with higher concentrations of nanoparticles leading to improved heat transfer. A concentration of 4% shown superior thermal performance in all cases.
- In cases when forced convection is the dominant factor, there is an increase in thermal transfer within the cavity. The Nusselt number reached its maximum value of 1.85 at Ri = 4, whilst the heat transfer rate was at its minimum when Ri = 1 with the value of 1.72. Furthermore, greater Richardson number values resulted in elevated temperature gradients.
- The rate of heat transmission is directly influenced by the velocity of the fluid. The Nusselt number reached its maximum value of 1.7 at a Reynolds number of 400 and a concentration of 4%, whilst the minimum heat transfer rate (Nu = 1.6) was observed at a Reynolds number of 100. Increased velocities were correlated with larger streamline velocity and temperature gradients.
- Magnetohydrodynamics (MHD) has a detrimental effect on the transmission of heat and the movement of fluid in the cavity. Higher Hartmann numbers lead to reduced fluid flow, decreased temperature gradients, and lower Nusselt numbers. The Nusselt number reached its maximum value of 1.19 at Ha = 100, but its minimum value (0.9) was observed at Ha = 400.
- The analysis using Artificial Neural Networks (ANN) demonstrated exceptional accuracy, as seen by the low Mean Squared Error (MSE = 1.05200e-6) and high R values (0.999988) for the validation data. The low error rate further confirms the efficacy of ANN in accurately forecasting the heat transfer performance of the triangular-shaped cavity under study.
This study helps fill the research gap by offering valuable insights into the fluid flow and thermal performance within triangular-shaped cavities, utilizing nanofluids and employing artificial neural network (ANN) analysis. This study improves our understanding of improving the thermal behavior of systems by examining the effects of nanofluid concentration, forced convection, fluid velocity, and MHD.
The practical applications of these results have far-reaching ramifications for the design and optimization of thermal devices and systems. The findings of this study can be utilized to increase the efficiency of heat transmission and boost the performance of triangular-shaped cavities in different engineering applications.
To enhance our comprehension of fluid flow and thermal performance, it is advisable to investigate alternative nanofluid compositions and cavity configurations in future studies. Furthermore, conducting research on the impacts of other boundary conditions and analyzing more intricate geometrical configurations will yield significant knowledge. Moreover, investigating sophisticated artificial neural network structures and optimization techniques might improve the precision and effectiveness of ANN analysis for comparable systems.
Supporting information
S1 Table. Forecasted average Nusselt number (Nupred) and given average Nusselt number (Nuavg).
https://doi.org/10.1371/journal.pone.0304826.s001
(DOCX)
References
- 1. Raza Q., Wang X., Ali B., Qureshi M. Z. A., and Chamkha A. J., “Heat and mass transfer phenomenon and aligned entropy generation with simultaneous effect for magnetized ternary nanoparticles induced by ferro and nano-layer fluid flow of porous disk subject to motile microorganisms,” Numer. Heat Transf. Part A Appl., vol. 0, no. 0, pp. 1–29, 2023,
- 2. Irshad K. et al., “Hydrothermal behavior and entropy analysis of double-diffusive nano-encapsulated phase change materials in a porous wavy H-shaped cavity with baffles: Effect of thermal parameters,” J. Energy Storage, vol. 72, no. PA, p. 108250, 2023,
- 3. Alghamdi M., Wakif A., and Muhammad T., “Efficient passive GDQLL scrutinization of an advanced steady EMHD mixed convective nanofluid flow problem via Wakif–Buongiorno approach and generalized transport laws,” Int. J. Mod. Phys. B, p. 2450418, 2024.
- 4. Shah N. A. et al., “Effects of fractional derivative and heat source/sink on MHD free convection flow of nanofluids in a vertical cylinder: A generalized Fourier’s law model,” Case Stud. Therm. Eng., 28 (2021), 101518. 2021.
- 5. Zaydan M., Wakif A., Alshehri A., Muhammad T., and Sehaqui R., “A passive modeling strategy of steady MHD reacting flows for convectively heated shear-thinning/shear-thickening nanofluids over a horizontal elongating flat surface via Wakif’s-Buongiorno approach,” Numer. Heat Transf. Part A Appl., pp. 1–24, 2024.
- 6. Zhang K., Shah N. A., Alshehri M., Alkarni S., Wakif A., and Eldin S. M., “Water thermal enhancement in a porous medium via a suspension of hybrid nanoparticles: MHD mixed convective Falkner’s-Skan flow case study,” Case Stud. Therm. Eng., vol. 47, p. 103062, 2023.
- 7. Wakif A., Alshehri A., and Muhammad T., “Influences of blowing and internal heating processes on steady MHD mixed convective boundary layer flows of radiating titanium dioxide-ethylene glycol nanofluids,” ZAMM-Journal Appl. Math. Mech. für Angew. Math. und Mech., p. e202300536, 2024.
- 8. Selimefendigil F. and Öztop H. F., “Coupled effects of corrugation and rotation on the phase transition and thermal process in a vented cavity under MHD convection,” J. Energy Storage, vol. 77, no. September 2023, p. 109925, 2024,
- 9. Mahabaleshwar U. S., Vishalakshi A. B., Huang H. N., and Öztop H. F., “An effects of mass transpiration and inclined MHD on nanoboundary layer of an ostwald-de waele fluid due to a shrinking boundary,” J. Magn. Magn. Mater., vol. 586, no. July, 2023,
- 10. Khalili Z. and Sheikholeslami M., “Numerical modeling for efficiency of solar cell module combined with TEG involving Fe3O4-water nanofluid utilizing MHD,” J. Magn. Magn. Mater., vol. 580, no. May, p. 170950, 2023,
- 11. Sharma J., Ahammad N. A., Wakif A., Shah N. A., Chung J. D., and Weera W., “Solutal effects on thermal sensitivity of casson nanofluids with comparative investigations on Newtonian (water) and non-Newtonian (blood) base liquids,” Alexandria Eng. J., vol. 71, pp. 387–400, 2023.
- 12. Zhang R., Zaydan M., Alshehri M., Raju C. S. K., Wakif A., and Shah N. A., “Further insights into mixed convective boundary layer flows of internally heating jeffery nanofluids: Stefan’s blowing case study with convective heating and thermal radiation impressions,” Case Stud. Therm. Eng., p. 104121, 2024.
- 13. Gangadhar K., Shashidhar Reddy K., Prameela M., and Wakif A., “Generation of entropy on blood conveying silver nanoparticles embedded in curved surfaces,” Proc. Inst. Mech. Eng. Part E J. Process Mech. Eng., p. 09544089231224523, 2024.
- 14. Porgar S. and Chamkha A. J., “Synthesis, Characterization and Thermal Analysis of MWCNT-Transformer Oil-Based Nanofluid: An Experimental Study,” Arab. J. Sci. Eng., vol. 48, no. 12, pp. 16445–16453, 2023,
- 15. Rajesh V. and Öztop H. F., “Heat transfer in a non-isothermal walled square closed space filled with ternary hybrid nanofluids,” Chem. Phys., vol. 577, no. September 2023, 2024,
- 16. Belabid J. and Öztop H. F., “Nanofluid thermo-bio-convection in a horizontal porous wavy-walled annulus: Interaction of phototactic microorganisms and nanoparticles distribution,” Int. J. Heat Mass Transf., vol. 215, no. July, 2023,
- 17. Sheikholeslami M. and Jafaryar M., “Thermal assessment of solar concentrated system with utilizing CNT nanoparticles and complicated helical turbulator,” Int. J. Therm. Sci., vol. 184, no. April 2022, p. 108015, 2023,
- 18. Gangadhar K., Mary Victoria E., Bhanu Lakshmi K., and Chamkha A. J., “Nonlinear radiation phenomena for Casson–Maxwell nanoliquid flow with chemical reactions,” Proc. Inst. Mech. Eng. Part E J. Process Mech. Eng., vol. 237, no. 6, pp. 2123–2133, 2023,
- 19. Shao W. et al., “Journal Preroof,” Case Stud. Therm. Eng., p. 104008, 2024,
- 20. Jafaryar M., Said Z., and Sheikholeslami M., “Hybrid nanofluid turbulent transportation through a tube with an innovative twisted tape combined with helical fins heat sink,” Sustain. Energy Technol. Assessments, vol. 53, no. PC, p. 102702, 2022,
- 21. Selimefendigil F. and Öztop H. F., “Thermal and phase change process in a branching T-channel under active magnetic field and two rotating inner cylinders: Analysis and predictions by radial basis neural networks,” Int. J. Heat Mass Transf., vol. 217, no. May, p. 124548, 2023,
- 22. Khalili Z. and Sheikholeslami M., “Analyzing the effect of confined jet impingement on efficiency of photovoltaic thermal solar unit equipped with thermoelectric generator in existence of hybrid nanofluid,” J. Clean. Prod., vol. 406, no. January, p. 137063, 2023,
- 23. Khalili Z. and Sheikholeslami M., “Investigation of innovative cooling system for photovoltaic solar unit in existence of thermoelectric layer utilizing hybrid nanomaterial and Y-shaped fins,” Sustain. Cities Soc., vol. 93, no. January, p. 104543, 2023,
- 24. Peng Y. et al., “Analysis of the effect of roughness and concentration of Fe3O4/water nanofluid on the boiling heat transfer using the artificial neural network: An experimental and numerical study,” Int. J. Therm. Sci., vol. 163, no. January, p. 106863, 2021,
- 25. Pourpasha H., Farshad P., and Zeinali Heris S., “Modeling and optimization the effective parameters of nanofluid heat transfer performance using artificial neural network and genetic algorithm method,” Energy Reports, vol. 7, pp. 8447–8464, 2021,
- 26. Seo Y. M., Luo K., Ha M. Y., and Park Y. G., “Direct numerical simulation and artificial neural network modeling of heat transfer characteristics on natural convection with a sinusoidal cylinder in a long rectangular enclosure,” Int. J. Heat Mass Transf., vol. 152, p. 119564, 2020,
- 27. Seo Y. M., Pandey S., Lee H. U., Choi C., Park Y. G., and Ha M. Y., “Prediction of heat transfer distribution induced by the variation in vertical location of circular cylinder on Rayleigh-Bénard convection using artificial neural network,” Int. J. Mech. Sci., vol. 209, no. July, p. 106701, 2021,
- 28. Sun S. L., Liu D., Wang Y. Z., Kim H. B., Hassan M., and Hong H. J., “Heat transfer performance prediction of Taylor–Couette flow with longitudinal slits using artificial neural networks,” Appl. Therm. Eng., vol. 221, no. June 2022, p. 119792, 2023,
- 29. Çolak A. B., “Prediction of viscous dissipation effects on magnetohydrodynamic heat transfer flow of copper-poly vinyl alcohol Jeffrey nanofluid through a stretchable surface using artificial neural network with Bayesian Regularization,” Chem. Thermodyn. Therm. Anal., vol. 6, no. February, 2022,
- 30. Li F. et al., “Response Surface Methodology and Artificial Neural Network modellings on hydraulic and thermal performances of a disk-shaped heat sink with tree-like microchannels,” Case Stud. Therm. Eng., vol. 40, no. November, p. 102539, 2022,
- 31. El Jery A., Khudhair A. K., Abbas S. Q., Abed A. M., and Khedher K. M., “Numerical simulation and artificial neural network prediction of hydrodynamic and heat transfer in a geothermal heat exchanger to obtain the optimal diameter of tubes with the lowest entropy using water and Al2O3/water nanofluid,” Geothermics, vol. 107, no. September 2022, p. 102605, 2023,
- 32. Cho H. W., Seo Y. M., Park Y. G., Pandey S., and Ha M. Y., “Estimation of heat transfer performance on mixed convection in an enclosure with an inner cylinder using an artificial neural network,” Case Stud. Therm. Eng., vol. 28, no. July, p. 101595, 2021,
- 33. Filali A., Khezzar L., Semmari H., and Matar O., “Application of artificial neural network for mixed convection in a square lid-driven cavity with double vertical or horizontal oriented rectangular blocks,” Int. Commun. Heat Mass Transf., vol. 129, no. October, p. 105644, 2021,
- 34. Alqaed S., Mustafa J., and Sharifpur M., “Numerical investigation and optimization of natural convection and entropy generation of alumina/H2O nanofluid in a rectangular cavity in the presence of a magnetic field with artificial neural networks,” Eng. Anal. Bound. Elem., vol. 140, no. March, pp. 507–518, 2022,
- 35. Roslan R., Saleh H., and Hashim I., “Effect of rotating cylinder on heat transfer in a square enclosure filled with nanofluids,” Int. J. Heat Mass Transf., vol. 55, no. 23, pp. 7247–7256, 2012,
- 36. Khanafer K. and Vafai K., “A critical synthesis of thermophysical characteristics of nanofluids,” Int. J. Heat Mass Transf., vol. 54, no. 19–20, pp. 4410–4428, Sep. 2011,
- 37. Khanafer K. M. and Chamkha A. J., “Mixed convection flow in a lid-driven enclosure filled with a fluid-saturated porous medium,” Int. J. Heat Mass Transf., vol. 42, no. 13, pp. 2465–2481, 1999.
- 38. Soomro F. A., Haq R. U., Algehyne E. A., and Tlili I., “Thermal performance due to magnetohydrodynamics mixed convection flow in a triangular cavity with circular obstacle,” J. Energy Storage, vol. 31, p. 101702, 2020.
- 39. Xiong P.-Y., Hamid A., Iqbal K., Irfan M., and Khan M., “Numerical simulation of mixed convection flow and heat transfer in the lid-driven triangular cavity with different obstacle configurations,” Int. Commun. Heat Mass Transf., vol. 123, p. 105202, 2021,