---
title: "Magnetorotational Instability and Angular Momentum Transport Interactive Lab | Sandbox Physics"
description: "How can a weak magnetic field help gas lose angular momentum? Magnetic tension couples gas that rotates at different rates."
canonical_url: "https://sandboxphysics.com/labs/magnetorotational-instability/"
language: "en"
page_type: "lab"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/labs/magnetorotational-instability/"
last_modified: "2026-11-13"
---

# Magnetorotational Instability and Angular Momentum Transport

**How can a weak magnetic field help gas lose angular momentum?** Magnetic tension couples gas that rotates at different rates. Small disturbances can draw energy from this shear and grow. Correlated velocities and the bent field then carry angular momentum outward, helping gas farther in move inward.

Change a vertical magnetic field and the disk shear. Watch a local channel grow or oscillate, then compare its magnetic and velocity stresses.

> Interactive simulation: open this page in a web browser to change the parameters and run the model.

Model assumptions

This is a linear, unstratified, incompressible ideal-MHD channel in a co-rotating local Cartesian box. Radial and orbital directions are homogeneous, height is periodic, density is uniform and the vertical background field is constant. Rotation and box height set the units. The browser integrates four real sine/cosine amplitudes with RK4 and independently integrates shear work from stage stresses. It stops before either the horizontal magnetic amplitude exceeds eight percent of the background field or the velocity amplitude exceeds five percent of box length times angular frequency, and ends at dimensionless time eight. Cases with growth above one hundred-thousandth of the rotation frequency start in the analytic growing eigenmode; the other cases start with a radial velocity kick. Changing a parameter prepares a new small initial perturbation. Field-line transverse displacement is enlarged thirty times. Teal arrows show horizontal velocity perturbations; the three-dimensional view also uses blue arrows for the prescribed background shear. Arrow lengths do not measure speed. The analytic growth rate is separate from the evolving state. There is no stratification, compressibility, nonideal magnetic effect, nonlinear turbulence, saturation, global inflow or emitted spectrum. The separate offline replay evolves actual vertical mesh fields and retains its own sampled convergence limits.

Who carries angular momentum outward?

Velocity correlation Magnetic tension

$$
\begin{gathered}T_{\rm Re}=\rho\langle u_xu_y\rangle,\\T_{\rm Max}=-\rho\langle b_xb_y\rangle\end{gathered}
$$

Where the shear energy goes

Kinetic energy Magnetic energy

$$
\begin{gathered}E_K=\rho\langle u_x^2+u_y^2\rangle/2,\\E_B=\rho\langle b_x^2+b_y^2\rangle/2\end{gathered}
$$

Replay the spatial fields and read the equations

The downloadable Python standard-library example evolves four periodic vertical mesh fields. Eleven fixed cases test spatial and temporal refinement, analytic growth and stress, stable limits, shear work and the divergence of this channel. It includes 277 saved field frames.

[Download the source, fields and independent checks](https://sandboxphysics.com/stories/magnetorotational-instability/materials/linear-channel-replay-public.zip)

[Balbus and Hawley 1991, linear analysis, equations 2.2–2.14b](https://articles.adsabs.harvard.edu/pdf/1991ApJ...376..214B); [Stone and Gardiner 2010, local rotating-box equations](https://arxiv.org/html/1006.0139v1)

The replay is a linear spatial calculation. The original papers and third-party simulation packages are linked separately.

## How a bent field carries angular momentum

**Background** Gas in a nearly circular orbit needs to lose angular momentum before it can settle farther in. In a Keplerian disk the inner gas turns faster, even though its specific angular momentum is smaller.

**Why it matters** A weak field can connect neighboring gas and transfer angular momentum between them. Their separation can grow as that transfer continues.

- **Focus question**: Which stress points outward as the channel grows?
- **One-sentence intuition**: The growing disturbance draws energy from differential rotation. Outward transport appears in the signs of both velocity and magnetic correlations.

### Core mathematical model

#### The local rotation law

$$
\begin{gathered}v_{0y}=-q\Omega x,\\\kappa^2=2(2-q)\Omega^2\end{gathered}
$$

Radial x points outward, orbital y follows rotation, and z is vertical. The epicyclic frequency describes a small radial orbital oscillation. Keplerian rotation has shear index one and a half.

#### The exponential-mode test

$$
\begin{gathered}K=kv_A,\\s^4+(\kappa^2+2K^2)s^2\\{}+K^2(K^2-2q\Omega^2)=0\end{gathered}
$$

The magnetic coupling frequency combines wave number and Alfven speed. A positive real root gives exponential growth. At a fixed wavelength, weak coupling grows slowly and strong tension restores oscillation. The displayed rate comes from this polynomial.

#### Signed angular-momentum transport

$$
\begin{gathered}T_{xy}=\rho\langle u_xu_y-b_xb_y\rangle,\\b=\delta B/\sqrt{\mu_0\rho}\end{gathered}
$$

Angle brackets average over height. Positive stress carries angular momentum outward. The sine velocity and cosine magnetic fields each contribute their own height average.

#### Energy supplied by shear

$$
\begin{gathered}\frac{\mathrm dE}{\mathrm dt}=q\Omega T_{xy},\\E=\frac{\rho}{4}(u_x^2+u_y^2+b_x^2+b_y^2)\end{gathered}
$$

The amplitudes in the energy expression are the four evolving real coefficients. A separate stage-stress integral checks the energy change. Solid-body rotation supplies no shear work.

### Common difficulties

#### Field strength and wavelength belong together

**Typical misconception** A stronger magnetic field always makes MRI grow faster.

**Better mental model** At the fixed vertical wavelength here, growth exists only within a finite coupling band. Maximizing over all wavelengths asks a different question.

#### The stopped channel is still linear

**Typical misconception** The last frame gives the turbulent saturation level.

**Better mental model** The calculation stops at its declared small-amplitude boundary. Following saturation requires nonlinear equations and separately validated calculations.

### Run the experiment

1. 01

   #### Watch the growing channel

   Start with Fastest Keplerian growth and compare the two stress curves below the scene.

   **What to observe:** The magnetic contribution is positive and larger than the velocity contribution. In this analytic mode their ratio is five-thirds.

2. 02

   #### Change the background field

   Drag the gold field tip vertically. Compare slow growth with the tension-restored preset.

   **What to observe:** Each change starts a new small perturbation at the same representative time. The fixed wavelength makes the two edges of the unstable band visible.

3. 03

   #### Remove the shear

   Choose Solid-body rotation and follow the sum of the two energy curves.

   **What to observe:** Magnetic and kinetic energy can exchange while their total stays fixed to integration accuracy.

4. 04

   #### Save the physical channel

   Pause and save. Compare the four real amplitudes, their sampled fields and signed stresses.

   **What to observe:** The saved binary64 words retain the exact accepted amplitudes. The separate offline package evolves mesh fields and tests spatial convergence.

Physical conclusion

Magnetic tension can turn differential rotation into a growing disturbance and an outward angular-momentum flux. The stress sign and shear work connect that picture to the calculation.

## Related experiments and articles

Magnetic tension and the growth of a disk disturbance · Reading path

### Magnetic tension and the growth of a disk disturbance

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

1. [Article **Who carries angular momentum through an accretion disk?**](https://sandboxphysics.com/stories/magnetorotational-instability/who-carries-angular-momentum/)
2. [Article **Four real fields in a rotating patch of a disk**](https://sandboxphysics.com/stories/magnetorotational-instability/four-fields-in-a-rotating-patch/)
3. [Article **Predict the growth, then follow its energy**](https://sandboxphysics.com/stories/magnetorotational-instability/growth-stress-and-energy/)
4. [Article **Why a vertical mesh changes a linear channel**](https://sandboxphysics.com/stories/magnetorotational-instability/why-a-vertical-mesh-changes-a-channel/)
5. [Article **Checking growth, transport and shear work**](https://sandboxphysics.com/stories/magnetorotational-instability/checking-growth-and-shear-work/)
6. [Article **Check an MRI calculation from its saved fields**](https://sandboxphysics.com/stories/magnetorotational-instability/check-saved-mri-fields/)
7. [Article **Read beyond linear MRI growth**](https://sandboxphysics.com/stories/magnetorotational-instability/read-beyond-linear-mri/)

Motion & dynamics · Starter path

## From a falling ball to an orbit

Start by measuring gravity and splitting motion into components. Then add contact forces and collisions, and follow the same laws all the way to an orbit.

[Start here → **Free Fall & Measuring Gravity** Capture a few drops and fit the camera positions to estimate gravitational acceleration. Then add air damping and watch the fit drift from the truth. Observe · 14 min](https://sandboxphysics.com/labs/free-fall/)

1. [1 Free Fall & Measuring Gravity](https://sandboxphysics.com/labs/free-fall/)
2. [2 Projectile Flight Designer](https://sandboxphysics.com/labs/projectile-flight/)
3. [3 Inclined Plane & Friction](https://sandboxphysics.com/labs/inclined-plane/)
4. [4 One-Dimensional Collision Bench](https://sandboxphysics.com/labs/collision-bench/)
5. [5 Mass–Spring Oscillator](https://sandboxphysics.com/labs/mass-spring/)
6. [6 How Orbits Take Shape](https://sandboxphysics.com/labs/orbit/)

[View the full path →](https://sandboxphysics.com/topics/mechanics/#starter-path)
