Skip to main content
Sandbox Physics

AC28 · Magnetic stresses release energy

Magnetic Reconnection

Where does the energy go when a magnetic field rearranges? Magnetic stresses accelerate the plasma. Electric resistance and viscosity convert part of the magnetic and fluid energy into heat. A thin nonideal region lets magnetic flux change its connection to the moving fluid.

Drag a probe through a current layer. Follow the field, the outflow and the magnetic energy converted into motion and heat.

Interactive modelMagnetic Reconnection
Field at the probe0.8730.873
Flow at the probe0.1810.181
Electric current at the probe−0.971-0.971
Local Ohmic power0.01880.0188

One numerical state

Magnetic stresses launch outflows

Selected physical time 1 tA1\,t_A

Field energy becomes motion and heat

00.33401
t/tA,E/(B02/μ0)t/t_A,\quad E/(B_0^2/\mu_0)

Domain-mean energy densities. Blue: magnetic. Green: kinetic. Orange and purple: Ohmic and viscous heat.

(EB+EK+QΩ+Qν)/E0=1.000(E_B+E_K+Q_\Omega+Q_\nu)/E_0=1.000

Magnetic flux between the two nulls

0.99101
t/tA,[ψ(O)−ψ(X)]/(B0L0)t/t_A,\quad[\psi(O)-\psi(X)]/(B_0L_0)

Gold: the selected island’s signed flux contrast. Both nulls can undergo diffusion.

ψ˙(O)−ψ˙(X)=Ez(X)−Ez(O)\dot\psi(O)-\dot\psi(X)=E_z(X)-E_z(O)
What this calculation resolves

The four fixed cases release an initially stressed periodic field. Local induction, finer-grid fields and time-step errors are checked separately from the global energy sum. A retained coarse ideal case demonstrates why conservation alone is insufficient. Solar footpoint driving, flare onset, particles and emitted light need additional models.

The canvas preview samples a verified 128-grid Python state; the full saved input is checked before JavaScript evolution.

Physics tutorial

Follow magnetic energy into motion and heat

BackgroundA bent magnetic field exerts a force on the surrounding plasma. The resulting motion can concentrate current into a thin layer, where resistance lets magnetic flux move relative to the fluid.

Why it mattersSolar flares release stored magnetic energy, but a useful first calculation must identify what it actually evolves. This small periodic model follows the field and fluid together.

Start with the essentials

Focus question
Where does magnetic energy go in this model?
One-sentence intuition
The magnetic field accelerates the fluid; electric resistance and viscosity feed separate dissipative reservoirs.

Core mathematical model

Flux carried by the moving fluid

∂tψ+v⋅∇ψ=η∇2ψ\partial_t\psi+\mathbf v\cdot\nabla\psi=\eta\nabla^2\psi

Magnetic contours follow constant ψ\psi. Here η\eta is dimensionless magnetic diffusivity. The ideal case sets it to zero.

Two coupled divergence-free fields

B=(ψy,−ψx),v=(ϕy,−ϕx)\mathbf B=(\psi_y,-\psi_x),\qquad\mathbf v=(\phi_y,-\phi_x)

The magnetic potential and the streamfunction supply the field and velocity in the same periodic plane.

The closed unforced energy sum

EB+EK+QΩ+Qν=E0E_B+E_K+Q_\Omega+Q_\nu=E_0

The initial energy moves between magnetic and kinetic forms and accumulates in the two heat reservoirs. These normalized reservoirs do not determine a temperature.

Both magnetic nulls can diffuse

ddt[ψ(O)−ψ(X)]=Ez(X)−Ez(O)\frac{d}{dt}[\psi(O)-\psi(X)]=E_z(X)-E_z(O)

A closed periodic island also diffuses at its O point. The difference needs both local electric fields.

Common difficulties

Field lines as objects

Typical misconceptionA drawn magnetic line is a thread made of particles.

Better mental modelThe line is a contour describing the instantaneous field. A fluid element follows the velocity, which is a different vector field.

Energy as the only numerical test

Typical misconceptionAn almost perfect energy sum proves that reconnection is resolved.

Better mental modelA retained low-grid ideal example conserves global quantities while changing flux at magnetic nulls incorrectly. Local induction and a finer grid must also agree.

Heat as brightness

Typical misconceptionThe dissipated-energy curve is the light curve of a solar flare.

Better mental modelCalculating emitted X-rays also needs density, thermodynamics, conduction, radiation and instrument response. The GOES tutorial analyzes measured band irradiance separately.

Run the experiment

  1. 01

    Find the outflow

    Watch the default state, then drag the gold probe across the bright current layer.

    What to observe: The green arrows and probe values trace the calculated fluid velocity. The gold curve is the magnetic contour through the probe.
  2. 02

    Remove irreversible heating

    Choose Ideal flow and inspect the two energy curves.

    What to observe: Magnetic and fluid energy exchange while the dissipative reservoirs remain zero over the tested short interval.
  3. 03

    Change the actual transport process

    Compare Diffusion and Viscosity, returning to the same saved time in the advanced group.

    What to observe: Diffusion acts on the magnetic field. Viscosity damps the fluid. Their different energy curves follow different solutions.
  4. 04

    Check a saved state

    Save JSON and the history CSV. Compare the selected time, field map, probe and energy values.

    What to observe: They retain the same case and numerical state; normalized values need a specified physical length, field and density before solar units can be assigned.

Related experiments and articles

From magnetic stress to reconnection · Reading path

From magnetic stress to reconnection

Articles on this path that use this experiment, followed by the other experiments they suggest.

  1. ArticleWhere a solar flare finds its energy
  2. ArticleWhen magnetic flux follows the fluid
  3. ArticleHow a thin current sheet sets the pace
  4. ArticleFollow energy through a reconnection calculation
  5. ArticleRecompute a flare from one GOES file
  6. ArticleWhere the fluid picture of reconnection runs out
FeedbackSomething broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy