Resistive magnetohydrodynamics