MR CFD
Oops! You are not logged in.

For watching this lesson you should sign in first, if you don't have an account, you can create one in seconds.

Toggle Lesson List

MHD & EHD: All Levels CFD Training Package — Ep 01

MHD Effect on Fluid Flow

Lesson
01
Run Time
18m 26s
Published
Aug 13, 2026
Category
MHD & EHD
Course Progress
0%
Mark as Complete
Add to Watchlist
About This Lesson

MHD Effect on Fluid Flow — ANSYS Fluent CFD Simulation

Description

This project simulates the flow of an electrically conductive fluid inside a simple square chamber using ANSYS Fluent, with magnetohydrodynamics as the central theme. MHD is the study of how electrically conducting fluids behave in the presence of a magnetic field: as the conductive material moves through the field it induces electric currents, and the interaction of those currents with the magnetic field produces a Lorentz force that, in turn, modifies the flow. The core of the study is this two-way coupling between the fluid-flow field and the magnetic field, captured through ANSYS Fluent's MHD module. As the opening project of the Magnetohydrodynamics & Electrohydrodynamics (MHD & EHD): All Levels CFD Training Package, it introduces the most fundamental magnetic field effect — how a field reshapes a conducting flow — establishing the MHD foundation the applied cases build on.

Methodology

The MHD model is implemented using the magnetic-induction method, which introduces two user-defined scalar magnetic-flux fields in the x- and y-directions (the alternative electric-potential method instead uses a single voltage scalar). All four boundaries of the domain are set as insulating walls, meaning no electric current passes through them; the module also supports conducting-wall boundaries for fully conductive surfaces, coupled-wall conditions for shared solid–solid or solid–liquid interfaces, and thin-wall conditions for finite electrical conductivity. The energy equation, the Lorentz force equations, and the MHD equations are all activated, with source terms applied to energy, momentum, and the magnetic fluxes to define the field within the model. The study is organized around three dimensionless parameters: it first examines the Prandtl number — the ratio of momentum diffusivity to thermal diffusivity — without the MHD model active; it then activates MHD and, at a fixed Prandtl number, varies the Hartmann number, which expresses the ratio of electromagnetic force to viscous force and changes with the magnitude of the applied magnetic flux; and finally, at a fixed Hartmann number, it varies the angle at which the magnetic field is applied to the flow. The working fluid is defined with a density of 998.2 kg/m³, thermal conductivity of 0.6 W/m·K, dynamic viscosity of 0.001003 kg/m·s, thermal expansion coefficient of 0.000214 K⁻¹, and a high electrical conductivity of 1,000,000 S/m. The Prandtl number is varied through the specific heat capacity (taking values such as 0.01, 0.02, 0.03, and 0.004), while the Hartmann number is varied through the applied magnetic flux (0.003284, 0.006568, 0.013135, and 0.032838), applied vertically along the y-axis; in the final stage, with the flux held constant, its direction is changed across angles of 0° (along the x-axis), 45°, 60°, and 90° (along the y-axis). The geometry is a two-dimensional square cavity one meter on a side, created in Design Modeler and meshed in ANSYS Meshing with a structured grid of 10,000 elements. The simulation uses a pressure-based, steady, laminar solver with the energy equation active and gravity neglected; the lower wall is held at 587 K and the upper wall at 300 K, with the left and right boundaries set as pressure outlets.

Analysis

The solution yields two-dimensional contours of pressure, velocity, and temperature together with pathlines across the three stages of the study. The first stage, without MHD, compares the effect of four Prandtl numbers; the second, with MHD and a fixed Prandtl number, compares four Hartmann numbers at a fixed field direction; and the third, with both Prandtl and Hartmann numbers fixed, compares four field application angles. Together these reveal how the strength of the magnetic field — expressed through the Hartmann number — and its orientation govern the flow and heat transfer of the conducting fluid. By the end of this project, you'll be able to set up ANSYS Fluent's MHD module using the magnetic-induction method, apply the Lorentz force and associated source terms, run a parametric study across the Prandtl and Hartmann numbers and field angle, and interpret the velocity, temperature, and pathline results that show how a magnetic field controls an electrically conducting flow.