Happy New Year!
I recently wrote about how the Parker Solar Probe crossed the Sun’s ‘Alfvén surface’: the surface outside which the outflowing solar wind becomes supersonic.
This is already pretty cool—but even better, the ‘sound’ here is not ordinary sound: it consists of vibrations in both the hot electrically conductive plasma of the Sun’s atmosphere and its magnetic field! These vibrations are called ‘Alfvén waves’.
To understand these waves, we need to describe how an electrically conductive fluid interacts with the electric and magnetic fields. We can do this—to a reasonable approximation—using the equations of ‘magnetohydrodynamics’:
• Wikipedia, Magnetohydrodynamics: equations.
These equations also describe other phenomena we see in stars, outer space, fusion reactors, the Earth’s liquid outer core, and the Earth’s upper atmosphere: the ionosphere, and above that the magnetosphere. These phenomena can be very difficult to understand, combining all the complexities of turbulence with new features arising from electromagnetism. Here’s an example, called the Orzag–Tang vortex, simulated by Philip Mocz:
I’ve never studied magnetohydrodynamics—I was afraid that if I learned a little, I’d never stop, because it’s endlessly complex. Now I’m getting curious. But all I want to do today is explain to you, and myself, what the equations of magnetohydrodynamics are—and where they come from.
To get these equations, we assume that our system is described by some time-dependent fields on 3-dimensional space, or whatever region of space our fluid occupies. I’ll write vector fields in boldface and scalar fields in non-bold:
• the velocity of our fluid,
• the density field of our fluid,
• the pressure field of our fluid,
• the electric current,
• the electric field,
• the magnetic field,
You may have noticed one missing: the charge density! We assume that this is zero, because in a highly conductive medium the positive and negative charges quickly even out unless the electric field is changing very rapidly. (When this assumption breaks down we use more complicated equations.)
So, we start with Maxwell’s equations, but with the charge density set to zero:
I’m writing them in SI units, where they include two constants:
• the electric permittivity of the vacuum,
• the magnetic permeability of the vacuum,
The product of these two constants is the reciprocal of the square of the speed of light:
This makes the last term Maxwell added to his equations very small unless the electric field is changing very rapidly:
In magnetohydrodynamics we assume the electric field is changing slowly, so we drop this last term, getting a simpler equation:
We also assume a sophisticated version of Ohm’s law: the electric current is proportional to the force on the charges at that location. But here the force involves not only the electric field but the magnetic field! So, it’s given by the Lorentz force law, namely
where notice we’re assuming the velocity of the charges is the fluid velocity Thus we get
where is the electrical conductivity of the fluid.
Next we assume local conservation of mass: the increase (or decrease) of the fluid’s density at some point can only be caused by fluid flowing toward (or away from) that point. So, the time derivative of the density is minus the divergence of the mass current
This is analogous to the equation describing local conservation of charge in electromagnetism: the so-called continuity equation.
We also assume that the pressure is some function of the density:
This is called the equation of state of our fluid. The function depends on the fluid: for example, for an ideal gas is simply proportional to We can use the equation of state to eliminate and work with
Last—but not least—we need an equation of motion saying how the fluid’s velocity changes with time! This equation follows from Newton’s law or more precisely his actual law
where is momentum. But we need to replace by the momentum density and replace by the force density, which is
The force density comes three parts:
• The force of the magnetic field on the current, as described by the Lorentz force law:
• The force caused by the gradient of pressure, pointing toward regions of lower pressure:
• the force caused by viscosity, where faster bits of fluid try to speed up their slower neighbors, and vice versa:
Here is called the coefficient of viscosity.
Thus, our equation of motion is this:
Here we aren’t using just the ordinary time derivative of : we want to keep track of how is changing for a bit of fluid that’s moving along with the flow of the fluid, so we need to add in the derivative of in the direction. For this we use the material derivative:
which also has many other names like ‘convective derivative’ or ‘substantial derivative’.
So, those are the equations of magnetohydrodynamics! Let’s see them in one place. I’ll use the equation of state to eliminate the pressure by writing it as a function of density:
Simplified Maxwell equations:
Ohm’s law:
Local conservation of mass:
Equation of motion:
Notice that in our simplified Maxwell equations, two terms involving the electric field are gone. That’s why these are called the equations of magnetohydrodynamics. You can even eliminate the current from these equations, replacing it with The magnetic field reigns supreme!
Magnetic diffusion
It feels unsatisfying to quit right after I show you the equations of magnetohydrodynamics. Having gotten this far, I can’t resist showing you a couple of cool things we can do with these equations!
First, we can use Ohm’s law to see how the magnetic field tends to ‘diffuse’, like heat spreads out through a medium.
We start with Ohm’s law:
We take the curl of both sides:
We can get every term here to involve if we use two of our simplified Maxwell equations:
We get this:
Then we can use this vector identity:
Since another of the Maxwell equations says we get
and thus
and finally we get
Except for the last term, this is the heat equation—but not for temperature, which is a scalar field, but for the magnetic field, which is a vector field! The constant says how fast the magnetic field spreads out, so it’s called the magnetic diffusivity.
The last term makes things more complicated and interesting.
Magnetic pressure and tension
Second, and finally, I want to give you more intuition for how the magnetic field exerts a force on the conductive fluid in magnetohydrodynamics. We’ll see that the magnetic field has both pressure and tension.
Remember, the magnetic field exerts a force
More precisely this is the force per volume: the magnetic force density. We can express this solely in terms of the magnetic field using one of our simplified Maxwell equations
We get
Next we can use a fiendish vector calculus identity: for any vector fields in 3d space we have
When this gives
or what we actually need now:
where
This identity gives a nice formula for
The point of all these manipulations was not merely to revive our flagging memories of vector calculus—though that was good too. The real point is that they reveal that the magnetic force density consists of two parts, each with a nice physical intepretation.
Of course the force acts on the fluid, not on the magnetic field lines themselves. But as you dig deeper into magnetohydrodynamics, you’ll see that sometimes the magnetic field lines get ‘frozen in’ to the fluid—that is, they get carried along by the fluid flow, like bits of rope in a raging river. Then the first term above tends to straighten out these field lines, while the second term tends to push them apart!
The second term is minus the gradient of
Since minus the gradient of ordinary pressure creates a force density on a fluid, we call the quantity above the magnetic pressure. Yes, the square of the magnitude of the magnetic field creates a kind of pressure! It pushes the fluid like this:
The other more subtle term is called magnetic tension:
It points like this:
Its magnitude is where is the radius of curvature of the circle that best fits the magnetic field lines at the given point. And it points toward the center of that circle!
I’m getting tired of proving formulas, so I’ll leave the proofs of these facts as puzzles. If you get stuck and want a hint, go here.
There’s a lot more to say about this, and you can find a lot of it here:
• Gordon I. Ogilvie, Lecture notes: astrophysical fluid dynamics.
I might or might not say more—but if I don’t, these notes will satisfy your curiosity about exactly when magnetic field lines get ‘frozen in’ to the motion of an electrically conductive fluid, and how magnetic pressure then tends to push these field lines apart, while magnetic tension tends to straighten them out!
All of this is very cool, and I think this subject is a place where all the subtler formulas of vector calculus really get put to good use.