A reconnection calculation needs two kinds of evidence: energy must move through the stated physical channels, and the local field must obey induction accurately. A conservative Fourier calculation can pass the first test while failing the second. We can reproduce that failure with a small ideal problem.
Take a periodic square with each side 2πL0, uniform density and no external driver after the initial state. The invariant direction is z. Normalize field by B0, velocity by vA and time by tA=L0/vA. All following equations use these dimensionless coordinates.
The magnetic potential ψ gives the field; a streamfunction ϕ gives the incompressible velocity. Current and vorticity use negative Laplacians under this convention. Taking the curl of the momentum equation removes pressure, while solving the streamfunction Poisson relation enforces incompressibility.
The Lorentz-force curl drives vorticity. Fluid advection and magnetic diffusion evolve the potential. Thus the outflow is part of the solution. No independent velocity drawing is added to make a reconnection picture.
B=(ψy,−ψx),j=−∇2ψ,v=(ϕy,−ϕx),ω=−∇2ϕ
The current and vorticity point along the invariant direction.
∂tψ+v⋅∇ψ=η∇2ψ,∂tω+v⋅∇ω=B⋅∇j+ν∇2ω
Eta is magnetic diffusivity and nu is kinematic viscosity, each divided by length scale times Alfvén speed. There is no density or temperature evolution.
Use a domain average to define magnetic and kinetic energy densities. Multiply the potential equation by current and integrate by parts. The magnetic-energy change contains work on the fluid and Ohmic loss. The momentum equation receives the same work with the opposite sign.
Viscosity removes kinetic energy. The symmetric part of the velocity gradient is the strain tensor. In a periodic incompressible plane, its domain-integrated heating equals viscosity times mean vorticity squared. The local maps are different: vorticity squared is not generally the pointwise physical viscous-heating density. The model records only their common domain integral.
Integrating both loss rates with the same Runge–Kutta stages as the fields creates the two dissipative reservoirs. Their sum with field and fluid energy is the unforced model’s check. No conversion from that sum to a solar joule total is possible until a physical volume, including invariant depth, has been specified.
Sij=21(∂ivj+∂jvi)
The strain-rate tensor uses spatial derivatives of velocity; repeated indices below are summed.
EB=21⟨B2⟩,EK=21⟨v2⟩,W=⟨jv⋅∇ψ⟩
Angle brackets denote domain means; energy-density scale is magnetic field squared divided by vacuum permeability.
dtdEB=⟨∇ψ⋅∇∂tψ⟩=⟨j∂tψ⟩
Periodic boundary terms cancel in the integration by parts. Substituting induction gives the magnetic work and Ohmic terms below.
E˙B=−W−η⟨j2⟩,E˙K=W−ν⟨ω2⟩
The same signed work transfers energy between the resolved reservoirs.
Q˙Ω=η⟨j2⟩,Q˙ν=ν⟨ω2⟩=⟨2νSijSij⟩
The last equality holds after spatial averaging under the periodic incompressible assumptions. Local heating is evaluated from the strain tensor.
Start with zero fluid motion and a single potential mode Acos(kxx+kyy). Its current is proportional to its potential, so the magnetic force has zero vorticity source. Only resistive diffusion acts. Solving its scalar time equation gives an exact exponential.
The reference tests amplitude, phase when a uniform mean flow is added, magnetic energy and integrated heat against that answer. It halves the step to measure the fourth-order field error. A separate viscous shear has its own analytic decay. Signed errors are retained; a small negative equivalent numerical diffusivity in this benchmark is a truncation error, not a physical solar transport coefficient.
The nonlinear default supplies an additional sign check. Its initial vorticity acceleration has a known spatial sign and amplitude. Squaring fields to make an energy test would hide a reversal of that force.
ψ(t)=Ae−η(kx2+ky2)tcos(kxx+kyy)
Without mean advection, the mode keeps its phase and decays at the stated rate.
ψ0=21cos2x+21cosy,ϕ0=0⟹(∂tω)0=23sin2xsiny
This independent Lorentz-curl result fixes the startup direction of the actual default problem.
Compare the actual nonlinear state with a finer grid
The periodic default starts with unequal spatial scales, which leave a nonzero force that the pressure cannot remove completely. At normalized time one, the independent 128-grid solution has the values below. They are rounded for reading; the full-precision JSON is needed to reproduce a tiny energy residual.
At time two, the 128-to 256 current-field relative norm difference is about 0.00436%. The peak-current discrepancy is about 0.00455%. A 64-grid calculation is off by about 2.1% in peak current and a 32-grid calculation by about 20%, even though their global energy sums look excellent.
The four interactive cases also check every saved physical time against the finer grid. Local induction, null identity, field differences and time-step convergence are separate quantities. The fixed parameter cases and endpoints define the tested region.
At normalized time one
Mean normalized density
Magnetic energy
0.23843546
Fluid kinetic energy
0.03383606
Ohmic heat
0.03746352
Viscous heat
0.00276497
Own periodic stressed-field calculation. The scene, flow and energy share the same numerical state; the lower-resolution discrepancies remain visible.
A conservative ideal calculation can still change null flux incorrectly
Set both transport coefficients to zero and choose the potentials below. The points O=(0,0) and X=(0,π/2) are genuine magnetic nulls. The ideal continuum equation gives zero potential rate at both because its advective term vanishes there.
A Fourier representation adds periodic sine and cosine waves; Galerkin projection returns nonlinear products to the retained wave numbers. Expanding the nonlinear product generates a Fourier harmonic with horizontal wave number sixteen. The 32-grid two-thirds truncation discards it. This removes a cancellation at the nulls, leaving projected rates +0.0008 and −0.0008. Even an almost empty initial edge-energy spectrum misses the problem.
By time 0.05, the coarse O–X contrast has changed about 8.11×10−5. Energy, mean potential-square and cross-helicity (the mean velocity dotted into magnetic field) still remain at machine-level conservation, and irreversible heat is zero. The same physical initial condition on 64 cells changes the contrast only about 2.09×10−11.
The failure is a spatial projection error. It must not be relabelled as an extra physical resistivity. This is why the display admits only its tested cases and checks local induction in addition to global invariants.
ψ0=0.01cos8x+0.04cos2y,ϕ0=0.01sin8xsin2y
This is an explicit failure experiment, not an additional interactive preset.
−v⋅∇ψ=0.0008(1−cos16x)cos2y−0.0032cos8x(1−cos4y)
At each null the complete expression cancels to zero. Removing the wave-number-sixteen term destroys that local cancellation.
Reproduce the failure and keep both ends of the flux contrast
Unpack the scientific archive and run these commands from its root with the pinned numerical dependencies. The first script regenerates the nonlinear grid/time and analytic checks; the second reruns the retained ideal failure and signed startup. The per-time comparison script compares every saved case/time with the finer solution.
For the closed periodic island, the O point also diffuses. The time derivative of the signed O-minus-X potential therefore uses both electric fields. At the late default state, the finite-grid local induction residual is about seven millionths. The report retains it as a numerical diagnostic, with physical diffusivity fixed at its input value.
Ez(null)=ηj,dtd[ψ(O)−ψ(X)]=Ez(X)−Ez(O)
This continuum relation uses the declared sign convention; the numerical projection residual is recorded alongside it.
The small package contains independent Python, the exact NOAA input, our synthetic MHD states and source/units/failure notes. The pinned dependencies are listed before the offline commands.
NOAA permits unrestricted use and redistribution of the selected original input. New standalone Python is MIT; our data, plots and documents are CC BY4.0 with source attribution. Original publication PDFs and website Engine code are excluded.
Work through the question
Why can an energy-conserving numerical solution fail flux freezing at a null?
The Galerkin projection can preserve global quadratic identities while removing a nonlinear harmonic needed for a local cancellation. The explicit 32-grid example demonstrates both outcomes in the same run.
May νω2 be used as the local viscous-heating colour?
The domain integral agrees with strain heating for this periodic incompressible model, but pointwise it generally differs from 2νSijSij. Local Ohmic heating can instead be shown directly as magnetic diffusivity times current squared.
The 128-grid default has a small energy residual. What additional evidence is needed before using its current?
Compare the full current field and peak with the 256-grid result at the same physical times; test time-step refinement, local induction and the selected null identities. The retained32/64 failures show why energy alone is insufficient.