Fluid model

ViscoResistiveMHD

Full (non-linear) visco-resistive MHD equations discretized with a variational method.

Overview

ViscoResistiveMHD is the full nonlinear dissipative MHD model in the

entropy formulation. It is the most complete variational MHD model in this family when both viscosity and resistivity are required.

Use cases

This model is appropriate for:
  • nonlinear dissipative MHD simulations
  • entropy-based variational MHD benchmarks
  • studies where both viscosity and resistivity matter

Governing equations

PDEs solved by model:

Continuity:

Momentum:

Entropy:

Induction:

where the internal energy per unit mass is , and and are artificial viscosity and resistivity coefficients.

Normalization

The model uses Alfvén-speed normalization together with entropy-based

thermodynamic units inherited from the chosen internal-energy functional.

Discretization

Time integration is performed by the following propagators (in sequence):
  1. VariationalDensityEvolve
  2. VariationalMomentumAdvection
  3. VariationalEntropyEvolve
  4. VariationalMagFieldEvolve
  5. VariationalViscosity (if with_viscosity is True)
  6. VariationalResistivity (if with_resistivity is True)

Diagnostics

The following scalars are tracked during simulation:

  • Kinetic energy: en_U
  • Thermodynamic energy: en_thermo
  • Magnetic energy: en_mag
  • Total energy: en_tot
  • Total density / entropy: dens_tot, entr_tot
  • Divergence diagnostic: tot_div_B

Examples

Figure from the Resistively damped Alfvén wave example

Resistively damped Alfvén wave

A standing Alfvén wave in a resistive plasma oscillates at the Alfvén frequency while its amplitude decays at the rate η k² / 2. Struphy's nonlinear resistive MHD is run at three resistivities and compared with the exact rate. The initial fields are u(x,0)=(0,0.05sin⁡x,0),B(x,0)=(1,0,0),\mathbf{u}(x,0)=(0,0.05\sin x,0),\qquad \mathbf{B}(x,0)=(1,0,0), with n(x,0)=1n(x,0)=1 on 0≤x<2π0\le x<2\pi; the scan uses η∈{0.05,0.1,0.2}\eta\in\{0.05,0.1,0.2\}.

Figure from the Orszag–Tang vortex example

Orszag–Tang vortex

Nonlinear evolution of crossed velocity and magnetic vortices in ideal MHD, with density, magnetic field lines, pressure and conservation diagnostics. The initial vortices are u(x,y,0)=(−sin⁡y,sin⁡x,0),B(x,y,0)=(−sin⁡y,sin⁡(2x),0),\mathbf{u}(x,y,0)=(-\sin y,\sin x,0),\qquad \mathbf{B}(x,y,0)=(-\sin y,\sin(2x),0), with uniform density n(x,y,0)=1n(x,y,0)=1 on the periodic square [0,2π)2[0,2\pi)^2.

Figure from the Resistive diffusion of a magnetic field example

Resistive diffusion of a magnetic field

A sinusoidal magnetic field in a resistive plasma at rest decays without changing shape, at the rate η k². Struphy's variational discretization converts the lost magnetic energy into thermal energy and keeps the total energy constant. The initial state is B(x,0)=(0,0,0.1sin⁡(2x)),u(x,0)=0,n(x,0)=1,\mathbf{B}(x,0)=(0,0,0.1\sin(2x)),\qquad \mathbf{u}(x,0)=0,\qquad n(x,0)=1, on 0≤x<2π0\le x<2\pi, with resistivities η∈{0.05,0.1,0.2}\eta\in\{0.05,0.1,0.2\}.

Figure from the Resistive magnetic X-point example

Resistive magnetic X-point

A periodic magnetic X-point is squeezed by an incompressible strain and evolved with Struphy's nonlinear visco-resistive MHD model. Finite resistivity supports an out-of-plane electric field at the null, changes the flux connecting the X- and O-points, and converts magnetic energy into internal energy while the compatible FEEC discretization controls div B. The initial magnetic field and strain are B(x,y,0)=(0.7sin⁡y,sin⁡x,0),\mathbf{B}(x,y,0)=(0.7\sin y,\sin x,0), u(x,y,0)=0.2(−sin⁡xcos⁡y,cos⁡xsin⁡y,0),\mathbf{u}(x,y,0)=0.2(-\sin x\cos y,\cos x\sin y,0), on [−π,π)2[-\pi,\pi)^2, with resistivity η=0.05\eta=0.05.