$FOAM_TUTORIALS/electromagnetics/mhdFoam/hartmann
Calculate the steady flow of electromagnetic fluid between parallel plates with vertically applied magnetic fields (Hartmann flow).
The fluid flows in from the region inlet at 1 m/s and out from the region outlet. The magnetic field perpendicular to the flow is uniformly set with a magnetic flux density of 20 T. The calculation is performed as a two-dimensional problem with a single mesh in the Z direction.
The magnetic field B is solved using an algorithm similar to the PISO method (B-PISO). At this time, the quantity pB, which corresponds to the pressure in the PISO method, is solved.
The meshes are as follows.
To visualize the calculated magnetic field, check "B" in the "Properties" tab on ParaView.
The result is as follows.
We can see how the the magnetic field strength changes.
Also, when the utility postProcess is run, the X-direction component of the flow velocity is sampled on a straight line with X=10.001 according to the settings in the file system/sample.
Sampling results are output as a text file, which can be graphed with any spreadsheet software.
Sampling is done with postProcess.
--- *Single, Core(TM) i7-2600 CPU @ 3.40GHz 3.40GHz