1 of 48

A (quick?) Primer on Magnetic Reconnection

Presented by: M. Hasan Barbhuiya and Chen Shi (on behalf of the RX-FG)

Hands-on Tutorial @ GEM 2025

2 of 48

Outline

2

3 of 48

Very Simplified Picture of Magnetic Reconnection in 2D

  •  

3

(Hesse and Cassak, JGR, 2020)

Oppositely directed magnetic field over a small length-scales gives rise to a thin and strong current sheet

1. Dissipation breaks field lines which reconnect – creates an “X” line

2. Bent newly reconnected field straighten out

3. On large scales, plasma moves outward with the straightening field:

Magnetic energy 🡪 particle energy + internal energy

4. Plasma moving into the low-pressure region takes field with it

4 of 48

Collisionless Antiparallel Symmetric Reconnection

  • Collisionless: where collision time scale >> gyro-motion time scale
  • Antiparallel: absence of out-of-plane initial magnetic field
  • Symmetric: two upstream regions have same plasma parameters

4

4

 

 

Downstream region: ions again recouple to the reconnected field

 

 

Hall current carried by mostly electrons at small lengths scales

Quadrupolar Hall B field

  • Two-scale structure: first ions decouple in IDR and then electrons decouple in EDR
  • After that, reconnection happens at the X-line

Inflow

Outflow

5 of 48

2D reconnection – Reconnection rate

5

 

 

6 of 48

Phase-Space Density

  •  

6

 

 

 

 

7 of 48

 

7

 

8 of 48

Boltzmann-Maxwell Equations

8

Gauss’ law

No divergence of B

Maxwell-Faraday’s law of induction

Ampere’s law

Boltzmann Equation

9 of 48

Fluid Equations from Boltzmann

9

Integrate over v-space, i.e., 0th moment

Boltzmann Equation

 

 

 

 

10 of 48

Electron Momentum equation – Generalized Ohm’s Law

10

 

 

Rewrite this as

 

11 of 48

Background for Simulations

11

 

12 of 48

PIC – basic idea

12

 

13 of 48

Terms in the Electron Momentum Equation

13

EDR

 

14 of 48

MHD equations

14

Manipulate fluid equations

 

Mass continuity equation

Momentum equation

Pressure equation

 

No divergence of B

Maxwell-Faraday’s law of induction

Ampere’s law

 

15 of 48

MHD equation set in conservation form

  •  

15

Mass continuity equation

Momentum equation

Pressure equation

 

 

16 of 48

Pseudo-spectral method

16

 

 

17 of 48

Source files

  • List of all source files

17

makefile: Compilation procedure

mhd.f90: Main program of the code.

mhd.input: Input parameters

mhdinit.f90: Initial setup

You only need to modify these two files.

18 of 48

mhdinit.f90�

18

Initialize fluctuations

Example:

 

Initialize background fields

19 of 48

mhd.input��

19

Maximum simulation time

Output the fields every time

Output RMS(fields) every time

 

Method for “de-aliasing”

Number of grid points

Size of simulation domain

20 of 48

mhd.input��

20

Case # of background fields

Other parameters for background fields

Case # of fluctuations

Other parameters for fluctuations

Adiabatic index

If turn on resistivity. T: True. F: False.

Resistivity

If turn on viscosity.

Viscosity

21 of 48

Test: tearing-unstable current sheet��

  • Initial condition: (quasi-)equilibrium background field + seed perturbations

21

 

 

Maintain equilibrium

22 of 48

Seed perturbations

22

 

 

  • Resistivity is necessary in MHD simulation of reconnection

23 of 48

Plasma is Ubiquitous in Space!

  • Heliophysical plasma

23

  • Planetary Plasma

Our Sun

Heliospheric Current Sheet

Earth’s Magnetosphere

  • Astrophysical Plasma

Lagoon Nebula

Black Hole Accretion Disk and Plasma Jets

Mars’ (induced) Magnetosphere

24 of 48

Phase Space Density and Local Thermodynamic Equilibrium

  •  

24

25 of 48

We need Kinetic Theory for Non-LTE Systems

  •  

25

 

 

26 of 48

Non-LTE systems inside Earth’s Magnetosphere

26

upstream

downstream

Dayside reconnection

Tailside reconnection

�Magnetosphere (Burch+, 2016, Science)

Bow Shock (Wang+, 2018, GRL)

Solar Wind (Marsch, 2018, Ann. Geophys.)

PHASMA @ WVU (Shi+, 2022, PRL)

27 of 48

Visualizing Energy Conversion

27

Collisionless Shock

1. Solar wind comes in with relatively high bulk flow energy, and relatively low thermal energy

 

 

  • Kinetic codes (e.g., PIC) and satellite missions (e.g., MMS) are routinely used to study kinetic-scale energy conversion

28 of 48

Pressure-Strain Interaction in Simulations and Observations

  • Pressure-strain interaction is well studied in simulations and observations (in Nature) of magnetic reconnection

28

MMS measurements (Bandyopadhyay+ 2021)

Simulation Results (Pezzi+ 2021)

29 of 48

Changes to Higher Moments – A Cartoon

29

Start with a Maxwellian distribution

 

 

 

(Cassak+, PRL, 2023)

30 of 48

Quantifying Energy Conversion

  • The time evolution equation for thermal energy is written as:

30

  • The time evolution equation for bulk flow �energy is written as:

is called pressure-strain interaction and it describes the channel for

31 of 48

Plasma Criteria

31

 

32 of 48

Energy Equations

32

 

 

 

Rewrite and use continuity equation

 

From Maxwell’s equations

 

33 of 48

2D reconnection – Reconnection rate and Aspect ratio

33

 

Curvature force causes plasma to flow out of the diffusion region into the downstream

 

Integrate over diffusion region volume, use Gauss’ volume integral

Considering upstream and downstream sides’ surfaces for scaling

Integrate over diffusion region volume, use Gauss’ volume integral

 

 

 

Ideal MHD at large scales has

34 of 48

2D reconnection – Electron Frozen in Condition for two-scale reconnection structure

34

 

 

At scales when pressure and inertia terms aren’t important

 

Describes the change in magnetic flux due to change in local field

 

Thus, we end up with frozen in condition but for electrons instead and so to break this condition, pressure tensor elements and/or inertia are needed!

35 of 48

2D reconnection – EDR and IDR aspect ratio

35

 

 

Rewrite the RHS

 

 

 

 

36 of 48

Extrapolating fields on the grid to macroparticles

36

37 of 48

Advancing macroparticles using Boris Stepper

37

 

38 of 48

Calculating charge and current densities

38

Other than “Jacobi relaxation”, Gauss-Seidel, Red-Black, Successive Overrelaxation, Multigrid

39 of 48

Multigrid approach

39

 

Jacobi pre-smoother, for “relaxation”, 4

Jacobi post-smoother, for “relaxation”, 4

For “Successive Overrelaxation”, 20

2000 (tried 1000, convergence failed)

8 (tried 3, convergence failed)

 

Used in our simulations

Set to 10

We used periodic boundaries but didn’t use it

Used in our simulations

Used in our simulations

Didn’t use since JACOBI was used

40 of 48

PIC simulations: Normalizations

40

 

 

41 of 48

 

41

 

42 of 48

Energy conservation in the PIC simulation

42

Total energy density

Change in total energy density

 

43 of 48

PIC simulations: Initial set-up

43

 

44 of 48

Optimizing the velocity-space grid

44

 

Within -3% error

Within -1 % error

Figure for electrons from PPG = 25600 simulation

45 of 48

Particle Weight Calculation

45

 

46 of 48

Installation of the code (Linux/MacOS)

  • Prerequisites:
    • C & Fortran compilers: Usually the system comes with gcc & gfortran
    • Message Passing Interface (MPI): parallelization
      • Download: https://www.open-mpi.org/software/ompi/v5.0/
      • Installation instruction: https://docs.open-mpi.org/en/v5.0.x/installing-open-mpi/quickstart.html
      • Quick guide:
        1. Download and extract files
        2. From Terminal, go the directory of the files
        3. Run: “./configure”
        4. Run “make all”
        5. Run “sudo make install”

47 of 48

Installation of the code (Linux/MacOS)

  • Prerequisites:
    • FFTW: Fast Fourier Transform
      • Download: https://www.fftw.org/download.html
      • Installation instruction: https://www.fftw.org/fftw3_doc/Installation-on-Unix.html
      • Quick guide:
        1. Download and extract files
        2. From Terminal, go the directory of the files
        3. Run: “./configure”
        4. Run “make all”
        5. Run “sudo make install”
  • Download the MHD code

48 of 48

Time advancement

  •