Fluid model

LinearMHD

Linear ideal MHD with zero-flow equilibrium for magnetohydrodynamic wave propagation.

Overview

This model simulates small-amplitude perturbations in a magnetized plasma with a static

equilibrium magnetic field and zero background flow. The model solves the linearized ideal magnetohydrodynamic equations, which couple fluid dynamics (density, velocity, pressure) with magnetic field evolution.

The linear MHD system supports three wave families:

  • Alfvén waves: incompressible shear waves propagating along
  • Fast magnetosonic waves: compressible waves with phase velocity above the Alfvén speed
  • Slow magnetosonic waves: compressible waves with phase velocity below the Alfvén speed

All evolved quantities are perturbations around a stationary equilibrium:

  • - density perturbation
  • - velocity perturbation
  • - pressure perturbation
  • - magnetic field perturbation

The corresponding equilibrium quantities are:

  • - background density
  • - background pressure
  • - background magnetic field

Use cases

This model is appropriate for studying linear wave propagation in a static magnetized plasma,

including Alfvén and magnetosonic dynamics around a prescribed equilibrium.

Typical use cases include:

  • verification of linear MHD wave dispersion and mode structure
  • perturbative studies around static equilibria
  • benchmark problems for ideal-MHD field-fluid coupling

Governing equations

PDEs solved by model:

Continuity (mass conservation):

Momentum (Lorentz force):

Energy (adiabatic process):

Induction (Faraday's law):

Normalization

All velocities are normalized by the Alfvén velocity:

The model therefore uses the Alfvén velocity as its characteristic speed scale.

Discretization

Time integration is performed by the following propagators (in sequence):
  1. ShearAlfvenPropagator
  2. Magnetosonic

Diagnostics

The following scalars are tracked during simulation:

  • Kinetic energy (perturbation):
  • Magnetic energy (perturbation):
  • Mean pressure perturbation: (en_p). This is a linear diagnostic, not an energy.
  • Thermal perturbation energy: (en_thermal), with
  • Total perturbed energy: (en_tot)
  • Equilibrium magnetic energy:
  • Equilibrium internal energy:
  • Total magnetic energy:

Examples

Figure from the MHD waves in a magnetized slab example

MHD waves in a magnetized slab

Broadband noise excites the shear Alfvén wave and the slow and fast magnetosonic waves of a uniform, obliquely magnetized plasma. The power spectra of the velocity and the pressure show the three branches, and their fitted speeds are compared with the exact ideal-MHD values. The equilibrium parameters are B0=(0,1,1),n0=0.7,p0=β∣B0∣22=3,\mathbf{B}_0=(0,1,1),\qquad n_0=0.7,\qquad p_0=\frac{\beta|\mathbf{B}_0|^2}{2}=3, with β=3\beta=3 and γ=5/3\gamma=5/3. All three velocity components receive coefficient noise of amplitude 0.10.1 in a periodic interval Lz=60L_z=60.

Figure from the Toroidal shear-Alfvén waves example

Toroidal shear-Alfvén waves

A local preview of coupled poloidal shear-Alfvén perturbations in a circular tokamak, evolved with LinearMHD, including its magnetosonic propagator. The hollow torus has 0.1≤r≤10.1\le r\le1, major radius R0=10R_0=10, and a periodic one-sixth toroidal sector. The AdhocTorus equilibrium uses B0=3B_0=3, q0=1.71q_0=1.71, q1=1.87q_1=1.87 and β=0.0018\beta=0.0018. The initial logical velocity combines m=10,11m=10,11, n=−1n=-1 sector modes with amplitude parameter 10−310^{-3} and Gaussian profiles centered at η1=0.5\eta_1=0.5 with width 0.10.1; the poloidal component uses their radial derivatives. The coarse grid and short duration are intended for exploration, not a converged TAE benchmark. Plots show physical minor-radial, poloidal and toroidal velocity on the φ=0 slice; each component keeps its own fixed color range throughout the animation.