Numerical Investigation of MHD Heat Transfer in a Nanofluid Trapezoidal Cavity with Embedded Square Heat Sources ()
1. Introduction
The study of heat transfer enhancement in enclosures using nanofluids under magnetohydrodynamic (MHD) influences has gained substantial momentum due to its applicability in advanced thermal systems such as electronic cooling, solar collectors, and energy storage devices [1]-[4]. Trapezoidal and other non-standard geometries have emerged as preferred domains for analyzing natural and mixed convection processes, particularly when integrated with internal heat sources or structural complexities like sinusoidal walls [5]-[8]. Nanofluids, especially Cu-H2O and hybrid formulations, have shown significant improvements in thermal performance due to their enhanced thermophysical properties [9]-[12]. When coupled with external magnetic fields, these nanofluids facilitate control over boundary layer dynamics and flow stability, making them ideal for MHD studies in corrugated, porous, and wavy enclosures [13]-[16]. The impact of wall undulation, inclination, and boundary modulation has been explored extensively, confirming their ability to intensify thermal gradients and promote convective mixing [17]-[20].
The presence of internal features, such as solid cylinders, triangular or square blocks, and especially geometrically complex star-shaped heat sources, introduces additional degrees of thermal control and entropy management [21]-[24]. These embedded elements influence local flow recirculation, vortex generation, and entropy generation patterns, all critical for performance optimization [25]-[28]. Numerical studies employing finite element and finite volume approaches have validated their capacity to model intricate heat-fluid interactions under varied thermal and magnetic conditions [29]-[33]. Recent work has focused on enhancing thermal control through Multiphysics strategies involving thermal radiation, oscillating magnetic fields, and variable fluid properties [34]-[36]. Moreover, the use of optimization tools such as response surface methodology and parametric sensitivity analysis has led to systematic performance improvement across diverse configurations [37]-[42]. Investigations into ferrofluid behavior, rotating elements, and non-Newtonian effects in trapezoidal and wavy cavities continue to expand the scope of MHD-nanofluid research [43]-[45].
In this context, the current study numerically examines MHD-driven natural convection in an inclined trapezoidal cavity filled with Cu–H2O nanofluid, featuring a sinusoidal upper wall and embedded square heat-generating elements. By analyzing the influence of Rayleigh number, Hartmann number, and nanoparticle volume fraction, this research aims to provide design insights for optimizing heat transfer in complex engineering applications.
2. Model Description
The computational domain consists of a two-dimensional inclined trapezoidal cavity filled with a Cu–H2O nanofluid, as illustrated in Figure 1. Two identical square copper heat sources are embedded symmetrically in the nanofluid region, positioned horizontally at mid-height (H/2) and separated by a distance of L/2. The top surface of the cavity is sinusoidally wavy, and the sidewalls are inclined at an angle γ. A uniform transverse magnetic field B0 is applied in the negative x-direction, influencing the flow field through Lorentz force effects.
The natural convection is driven by internal heat generation within the copper blocks and thermal gradients imposed by the boundary conditions. The flow is assumed to be steady, laminar, two-dimensional, and governed by the Boussinesq approximation. All fluid and thermal properties of the nanofluid are temperature-independent except for the density variation contributing to buoyancy.
Figure 1. Geometry.
The thermal boundary conditions applied to the cavity walls and internal obstacles are summarized in Table 1.
Table 1. Boundary condition.
Boundary |
Condition |
Temperature Value |
Top Wavy Wall |
Isothermal |
T = Tm |
Bottom Wall |
Isothermal |
T = Tm |
Left & Right Walls |
Thermal Insulation (Adiabatic) |
n⋅∇T = 0 |
Square Obstacles |
Internal Heat Source |
Volumetric heating Q |
All solid walls are subjected to the no-slip velocity condition
. The simulations are performed using the finite element method in COMSOL Multiphysics, focusing on the interplay between Rayleigh number, Hartmann number, and nanoparticle volume fraction.
3. Mathematical Modeling
This study addresses the conjugate magnetohydrodynamic (MHD) free convection within an inclined trapezoidal cavity saturated with a Cu–H2O nanofluid. The enclosure contains two symmetrically embedded square copper heat sources that generate internal volumetric heating. A uniform magnetic field is applied perpendicular to the inclined sidewall, inducing a Lorentz force that influences the nanofluid flow dynamics.
The working fluid is modeled as a single-phase nanofluid with thermophysical properties dependent on the nanoparticle volume fraction. The flow is assumed to be laminar, steady-state, two-dimensional, and incompressible. The Boussinesq approximation is applied to account for buoyancy effects due to temperature variation.
Governing Equations:
The physical model is governed by the following conservation equations:
(1)
(2)
(3)
(4)
Nanofluid Property:
(5)
(6)
(7)
(8)
(9)
Non-Dimensional Equations:
(10)
(11)
(12)
(13)
(14)
(15)
Here,
represents the volumetric internal heat generation in the square heat sources, and
is the reference temperature.
Nanofluid Property:
(16)
(17)
(18)
(19)
(20)
The convective heat transfer is quantified using the local and average Nusselt numbers at the top wavy surface:
(21)
(22)
Here,
is the arc length of the top wavy wall.
Dimensional Local Entropy Generation Rate:
(23)
where,
,
and
are Thermal Conductivity, Dynamic Viscosity, and Electrical Conductivity of the nanofluid.
is the reference temperature,
is the magnetic field intensity in the vertical direction. u and v are the velocity components in x and y directions.
Non-Dimensional Entropy Generation Rate:
(24)
where,
Total Entropy Generation (Volume-Averaged):
(25)
Thermal Performance Criterion (TPC):
(26)
Thermophysical Parameters
The thermophysical properties of copper nanoparticles and pure water are summarized in Table 2, while the nanofluid properties for varying volume fractions are detailed in Table 3. As shown in Table 2, copper possesses significantly higher thermal and electrical conductivity compared to water, which enhances heat transfer performance. In contrast, water exhibits a higher specific heat capacity and thermal expansion coefficient, favoring buoyancy-driven convection.
Table 2. Thermophysical properties of pure water and Copper nanoparticles.
Thermophysical Properties |
Copper Nanoparticles |
Pure Water |
ρ (kg/m3) |
8933 |
996.60 |
Cp (J/kg·K) |
385 |
4179.20 |
k (W/m·K) |
401 |
0.6102 |
β (1/K) |
4.99 × 10⁻5 |
2.66 × 10−4 |
σ (1/Ω·m) |
5.96 × 10⁻7 |
5.50 × 10−6 |
Table 3. Properties of nanofluid.
Property |
Unit |
Volume Fraction of Nanoparticles |
0.01 |
0.02 |
0.03 |
Density (ρ) |
kg/m3 |
1076.00 |
1155.30 |
1234.70 |
Specific heat (Cp) |
J/kg·K |
3864.20 |
3592.50 |
3355.70 |
Thermal conductivity (k) |
W/m·K |
0.62861 |
0.64739 |
0.66655 |
Dynamic viscosity (μ) |
kg/m·s |
8.7552 × 10−4 |
8.9803 × 10−4 |
9.2135 × 10−4 |
Electric conductivity (σ) |
Ω−1·m−1 |
5.6667 × 10−6 |
5.8367 × 10−6 |
6.0103 × 10−6 |
Thermal diffusivity (α) |
m2/s |
1.4651 × 10−7 |
1.4651 × 10−7 |
1.465 × 10−7 |
Volumetric expansion (β) |
K−1 |
2.4806 × 10−4 |
2.3258 × 10−4 |
2.191 × 10−4 |
Table 3 outlines the effective thermophysical properties of the Cu–H2O nanofluid for volume fractions ϕ = 0.01, 0.02, and 0.03. With increasing ϕ, the nanofluid’s density, thermal conductivity, dynamic viscosity, and electrical conductivity increase, while the specific heat and thermal expansion decrease. This highlights a balance between improved thermal conductivity and the rise in viscous resistance, which directly influences the overall flow and thermal behavior within the cavity.
4. Results and Discussion
4.1. Verification
To ensure the accuracy and reliability of the present numerical model, a validation study was conducted by comparing the streamline contours with those reported in Ref. [45]. As illustrated in Figure 2, both the reference and current simulations depict a similar vortex structure, flow pattern, and circulation intensity around the central heat-generating circular obstacle. The core recirculation zones and streamline curvature show excellent consistency, indicating that the present computational approach and boundary condition implementation are robust and in agreement with established literature.
Figure 2. Comparison of the Streamline in the present study and the Ref. [45].
This agreement validates the finite element-based formulation and boundary setup used in COMSOL Multiphysics for modeling MHD-driven natural convection in complex geometries with internal heat generation. As such, the model is considered reliable for further parametric analysis involving variations in Rayleigh number, Hartmann number, and nanoparticle volume fraction.
4.2. Discussion
The effects of Rayleigh number (Ra), Hartmann number (Ha), and nanoparticle volume fraction (ϕ) on velocity and temperature distribution are presented in Figures 3-8. These results elucidate the fluid flow structure and thermal transport mechanisms under varying physical conditions within the trapezoidal nanofluid-filled cavity.
Figure 3: Velocity Contours for ϕ = 0.01:
At Ra = 103 and Ha = 0, weak natural convection results in small, symmetric recirculation zones adjacent to the heated blocks. As Ra increases to 106, the buoyancy force strengthens, enhancing vortex formation and generating a primary circulation cell that dominates the cavity. When Ha = 30 is applied, the flow field is significantly dampened at all Ra levels, especially at higher Ra where the Lorentz force suppresses the circulation intensity, reducing peak velocity magnitudes.
Figure 4: Temperature Contours for ϕ = 0.01:
Temperature distributions follow the expected behavior of natural convection. At low Ra, heat spreads primarily via conduction with steep thermal gradients near the heated obstacles. As Ra increases, the contours indicate improved convective mixing with broader isotherms extending toward the top wall. Under Ha = 30, temperature stratification becomes more prominent, reflecting the suppressed convective motion.
Figure 5: Velocity Contours for ϕ = 0.02:
With a higher volume fraction (ϕ = 0.02), the nanofluid exhibits slightly reduced flow velocities due to increased viscosity. Nevertheless, enhanced thermal conductivity promotes stronger buoyancy effects. The vortex size and strength still grow with Ra, though the flow remains more diffusive under magnetic damping (Ha = 30), confirming a subdued convection pattern.
Figure 6: Temperature Contours for ϕ = 0.02:
Compared to ϕ = 0.01, the temperature gradients near the heat sources are more evenly distributed, indicating improved heat diffusion. The top wall receives more uniform thermal flux due to the higher thermal conductivity of the nanofluid. With Ha = 30, thermal lines condense near the heated blocks, showing reduced vertical transport.
Figure 7: Velocity Contours for ϕ = 0.03:
At ϕ = 0.03, viscous resistance increases further, slightly weakening the flow structures even at high Ra. The suppression due to Ha = 30 is particularly visible, where the streamline cores flatten and secondary vortices diminish. Still, the enhanced thermal properties at this concentration partially compensate for velocity loss, maintaining flow symmetry and structure.
Figure 3. Velocity contour for nanoparticle volume fraction ϕ = 0.01.
Figure 4. Temperature contour for nanoparticle volume fraction ϕ = 0.01.
Figure 5. Velocity contour for nanoparticle volume fraction ϕ = 0.02.
Figure 6. Temperature contour for nanoparticle volume fraction ϕ = 0.02.
Figure 7. Velocity contour for nanoparticle volume fraction ϕ = 0.03.
Figure 8. Temperature contour for nanoparticle volume fraction ϕ = 0.03.
Figure 7: Velocity Contours for ϕ = 0.03:
At ϕ = 0.03, viscous resistance increases further, slightly weakening the flow structures even at high Ra. The suppression due to Ha = 30 is particularly visible, where the streamline cores flatten and secondary vortices diminish. Still, the enhanced thermal properties at this concentration partially compensate for velocity loss, maintaining flow symmetry and structure.
Figure 8: Temperature Contours for ϕ = 0.03:
The temperature contours are the most uniform across all Ra levels at ϕ = 0.03. Enhanced thermal conductivity leads to rapid heat dispersion from the copper blocks. However, increased thermal inertia results in flatter isotherms at higher Ra, particularly when Ha = 0. At Ha = 30, the thermal layer becomes sharply defined around the heated zones, reflecting the shift from convective to conductive dominance.
The results reveal that increasing the Rayleigh number (Ra) significantly amplifies buoyancy-driven flow, thereby intensifying convective heat transfer. This is evidenced by the development of larger and more vigorous vortical structures within the enclosure. In contrast, the application of a magnetic field (Ha = 30) introduces a Lorentz force that dampens fluid motion, resulting in reduced circulation intensity and more stratified temperature fields indicative of conduction-dominated heat transfer.
Furthermore, the incorporation of copper nanoparticles at higher volume fractions (ϕ = 0.02 and ϕ = 0.03) leads to enhanced thermal conductivity of the nanofluid. This improvement facilitates more uniform temperature distributions and greater overall heat transfer performance. However, the increased viscosity associated with higher nanoparticle concentrations slightly diminishes flow strength, thereby indicating a trade-off between thermal enhancement and hydrodynamic resistance.
Tables 4-9 summarize the effects of Rayleigh number (Ra), nanoparticle volume fraction (ϕ), and Hartmann number (Ha) on entropy generation (St), thermal performance criterion (TPC), and average nanofluid temperature (Tavf). As Ra increases from 103 to 106, a consistent trend across all cases shows a significant rise in St, reflecting enhanced irreversibility due to stronger convection. Simultaneously, TPC decreases, indicating that while heat transfer improves, it becomes thermodynamically less efficient. Tavf decreases with higher Ra, demonstrating more effective convective cooling.
Table 4. For ϕ = 0.01, Pr = 5.3821 and Ha = 0.
Ra (Rayleigh Number) |
St (Overall Entropy Generation) |
TPC (Thermal Performance Criterion) |
Tavf (Average Temperature of Nanofluid) |
103 |
1.39E+08 |
6.89E+06 |
0.064655 |
104 |
6.50E+08 |
3.22E+06 |
0.065074 |
105 |
3.95E+09 |
1.96E+06 |
0.060315 |
106 |
2.18E+10 |
1.08E+06 |
0.042218 |
Table 5. For ϕ = 0.01, Pr = 5.3821 and Ha = 30.
Ra (Rayleigh Number) |
St (Overall Entropy Generation) |
TPC (Thermal Performance Criterion) |
Tavf (Average Temperature of Nanofluid) |
103 |
1.39E+08 |
6.89E+06 |
0.06467 |
104 |
6.49E+08 |
3.22E+06 |
0.065245 |
105 |
3.92E+09 |
1.94E+06 |
0.0639 |
106 |
2.20E+10 |
1.09E+06 |
0.047111 |
Table 6. For ϕ = 0.02, Pr = 4.9833 and Ha = 0.
Ra (Rayleigh Number) |
St (Overall Entropy Generation) |
TPC (Thermal Performance Criterion) |
Tavf (Average Temperature of Nanofluid) |
103 |
1.40E+08 |
6.95E+06 |
0.06276 |
104 |
6.56E+08 |
3.25E+06 |
0.063206 |
105 |
3.96E+09 |
1.96E+06 |
0.05903 |
106 |
2.21E+10 |
1.10E+06 |
0.041478 |
Table 7. For ϕ = 0.02, Pr = 4.9833 and Ha = 30.
Ra (Rayleigh Number) |
St (Overall Entropy Generation) |
TPC (Thermal Performance Criterion) |
Tavf (Average Temperature of Nanofluid) |
103 |
1.40E+08 |
6.95E+06 |
0.062773 |
104 |
6.55E+08 |
3.25E+06 |
0.063358 |
105 |
3.93E+09 |
1.95E+06 |
0.062201 |
106 |
2.23E+10 |
1.11E+06 |
0.046447 |
Table 8. For ϕ = 0.03, Pr = 4.6384 and Ha = 0.
Ra (Rayleigh Number) |
St (Overall Entropy Generation) |
TPC (Thermal Performance Criterion) |
Tavf (Average Temperature of Nanofluid) |
103 |
1.42E+08 |
7.01E+06 |
0.060936 |
104 |
6.62E+08 |
3.28E+06 |
0.061407 |
105 |
3.98E+09 |
1.97E+06 |
0.057745 |
106 |
2.25E+10 |
1.11E+06 |
0.040646 |
Table 9. For ϕ = 0.03, Pr = 4.6384 and Ha = 30.
Ra (Rayleigh Number) |
St (Overall Entropy Generation) |
TPC (Thermal Performance Criterion) |
Tavf (Average Temperature of Nanofluid) |
103 |
1.42E+08 |
7.01E+06 |
0.060948 |
104 |
6.61E+08 |
3.28E+06 |
0.061541 |
105 |
3.95E+09 |
1.96E+06 |
0.060545 |
106 |
2.26E+10 |
1.12E+06 |
0.045806 |
Comparing Ha = 0 (Table 4, Table 6, Table 8) with Ha = 30 (Table 5, Table 7, Table 9), the magnetic field introduces a damping effect, slightly raising Tavf and St due to suppressed convective motion. The influence of Ha becomes more pronounced at higher Ra, where the Lorentz force counteracts buoyancy-driven flow, leading to reduced flow intensity and modified temperature profiles.
Additionally, increasing ϕ from 0.01 to 0.03 enhances thermal conductivity, resulting in lower Tavf and marginal increases in St due to viscous effects. TPC values are highest at low Ra and drop with increasing Ra across all ϕ levels. These observations highlight the interplay between buoyancy, magnetic suppression, and nanoparticle concentration in determining heat transfer effectiveness and entropy generation within the cavity.
Entropy generation (St) in this study stems from heat transfer, fluid friction, and magnetic field effects. As the Rayleigh number (Ra) increases, buoyancy-driven flow becomes stronger, resulting in greater velocity and temperature gradients that elevate entropy generation. Introducing a magnetic field (Ha = 30) reduces flow motion, thereby slightly suppressing entropy generation by limiting shear and viscous dissipation.
The Thermal Performance Criterion (TPC), defined as the ratio of total entropy generation to the average Nusselt number, decreases with increasing Ra, signifying a diminishing thermal efficiency despite higher heat transfer. This highlights the trade-off between enhancing thermal transport and managing entropy production. Tables 4-9 show this trend consistently across all tested nanoparticle volume fractions (ϕ = 0.01 - 0.03), with higher Ra values yielding greater St but lower TPC. Magnetic field application improves performance slightly by moderating entropy growth, and increasing ϕ marginally raises St due to increased viscosity and conductivity.
To minimize entropy generation while maximizing heat transfer, optimization strategies may include selecting moderate Ra values, applying appropriate magnetic field strengths, and fine-tuning nanoparticle volume fractions. These findings are particularly valuable for the thermal design of real-world systems, such as electronic cooling or energy storage devices, where both effective heat removal and thermodynamic efficiency must be carefully balanced.
5. Conclusions
This study presented a comprehensive numerical investigation of magnetohydrodynamic (MHD) free convection heat transfer in a nanofluid-filled trapezoidal cavity featuring embedded square heat sources and a wavy top wall. The enclosure was subjected to various Rayleigh (Ra) and Hartmann (Ha) numbers to analyze the thermal and flow characteristics of Cu-H2O nanofluids at different nanoparticle volume fractions (ϕ = 0.01, 0.02, 0.03). The Boussinesq approximation was applied to model buoyancy effects, and entropy generation, thermal performance criterion (TPC), and average fluid temperature were evaluated to assess system performance.
Key Findings:
Increasing the Rayleigh number significantly enhanced convective flow intensity and heat transfer, indicated by stronger vortices and elevated entropy generation rates.
Application of a transverse magnetic field (Ha = 30) resulted in damping of convective motion due to Lorentz forces, which reduced entropy generation and flow circulation but slightly raised temperature stratification.
Enhanced thermal performance and more uniform temperature fields were observed with higher nanoparticle volume fractions, although flow strength diminished due to elevated viscosity.
The Thermal Performance Criterion (TPC) decreased with Ra, indicating stronger convective heat transport, while Tavf (average nanofluid temperature) dropped notably at higher Ra due to improved heat dissipation.
Among all cases, ϕ = 0.03 and Ra = 106 showed the best compromise between heat transfer enhancement and moderate entropy generation.
Future Work:
To extend the current research, the following directions are suggested:
Incorporating phase change materials (PCMs) and hybrid nanofluids to further improve thermal regulation.
Extending the geometry to three dimensions and introducing time-dependent boundary conditions for dynamic studies.
Experimentally validating the simulation data to establish model fidelity and extend applicability to real-world thermal systems.
Studying different obstacle shapes (circular, elliptical, star-shaped) and arrangements to assess their influence on entropy generation and heat transfer.
Integrating artificial intelligence (AI)-based surrogate modeling or optimization frameworks for real-time thermal system design and control.
Overall, this study establishes a foundational understanding of the interplay between magnetic field strength, buoyancy-driven convection, and nanofluid properties in a geometrically complex enclosure. The results highlight that optimal thermal performance can be achieved by appropriately tuning the Rayleigh number, nanoparticle concentration, and magnetic influence. These findings offer valuable insights for thermal engineers and researchers aiming to design energy-efficient systems involving nanofluids. In particular, the identified optimal configuration ϕ = 0.03 and Ra = 106 under moderate magnetic influence can be directly applied to enhance thermal management in high-density electronic cooling systems, where rapid heat dissipation with minimal entropy generation is critical. Furthermore, these parameter settings can guide the development of more efficient thermal energy storage units by optimizing heat transfer while minimizing thermodynamic losses.
Acknowledgements
We gratefully acknowledge the Department of Mathematics, DUET, Gazipur, Bangladesh for their unwavering support, valuable guidance, and provision of essential facilities throughout the course of this research.