In this example we shall investigate an flow of an electrically-conducting liquid
through a magnetic field. The problem is one belonging to the branch
of fluid dynamics known as magnetohydrodynamics (MHD) that uses
mhdFoam.
The problem is known as the Hartmann problem, chosen as it contains an
analytical solution with which mhdFoam can be validated. It is defined as
follows:
Solution domain
The domain is 2 dimensional and consists
of flow along two parallel plates as shown in Fig. 3.12.
Figure 3.12:
Geometry of the Hartmann problem
Governing equations
Mass continuity for incompressible fluid
(3.20)
Momentum equation for incompressible fluid
(3.21)
where is the magnetic flux density, .
Maxwell’s equations
(3.22)
where is the electric field strength.
(3.23)
(3.24)
assuming . Here, is the magnetic field strength, is
the current density and is the electric flux density.
The geometry is simply modelled with 100 cells in the -direction and 40 cells in
the -direction; the set of vertices and blocks are given in the mesh description
file below:
The user can run the case and view results in dxFoam. It is also useful at this
stage to run the Ucomponents utility to convert the vector field into individual
scalar components. MHD flow is governed by, amongst other things, the
Hartmann number which is a measure of the ratio of electromagnetic body force
to viscous force
(3.29)
where is the characteristic length scale. In this case with ,
and the electromagnetic body forces dominate the viscous forces.
Consequently with the flow fairly steady at the velocity profile
is almost planar, viewed at a cross section midway along the domain
. The user can plot a graph of the profile of in dxFoam.
Figure 3.13:
Velocity profile in the Hartmann problem for and
.
Now the user should reduce the magnetic flux density to 1 and re-run
the code and Ucomponents. In this case, and the electromagnetic body
forces no longer dominate. The velocity profile consequently takes on the
parabolic form, characteristic of Poiseuille flow as shown in Figure 3.13. To
validate the code the analytical solution for the velocity profile is
superimposed in Figure 3.13, given by:
(3.30)
where the characteristic length is half the width of the domain, i.e..