MRI Gradient Coils: Slice Selection, Frequency Encoding and Image Reconstruction in a 3D Scanner

See how three gradient coils turn frequency into position: drag the excited slice through a phantom and watch the Fourier-reconstructed image.

Switch to 2D

Presets

Playback

Parameters

Camera

Layers

Quality

Model check

The science

What you see. A whole-body MRI scanner drawn with its layers: the cryostat of the main magnet, the gradient-coil assembly (copper Maxwell rings for the bore axis, blue and green saddle windings for the other two axes), the RF birdcage and a water phantom with four contrast spheres. The coloured discs mark planes of equal Larmor frequency while the z gradient is on; the cyan slab is the slice the RF pulse excites. The graph at the bottom right is the image the machine would reconstruct from that slice.

Larmor frequency. A proton precesses at f = γ̄ B with γ̄ = 42.577 MHz/T (63.87 MHz at 1.5 T). A gradient adds a field that grows linearly with position, B = B0 + G z, so frequency becomes a ruler: each plane has its own frequency. Slice selection: an RF pulse of bandwidth BW applied while Gs is on excites the planes with |γ̄ Gs (z − z0)| < BW/2, so the thickness is BW / (γ̄ Gs). Frequency encoding: during readout Gr maps position along x to frequency, and the receiver bandwidth sets the field of view FOV = BWrx / (γ̄ Gr). A second gradient (phase encoding) is stepped between repetitions, and the image is the inverse 2D Fourier transform of the sampled k-space.

The z gradient coil. The bore-axis gradient is a Maxwell pair: two coaxial loops of radius a at z = ±√3 a/2 carrying opposite currents. Their field is Bz = G z with G = (3√3/2)(4/7)5/2 μ0 N I / a2 = 0.6413 μ0 N I / a2; the √3 spacing is exactly the one that cancels the z3 term, so the field stays linear over a wide region around the centre (graph 1 compares it with a pair spaced by a). The graph shows the on-axis field from a numerical Biot-Savart sum. Real gradient coils for the x and y axes are Golay saddle windings; the picture shows such windings, but the model gives them the same ideal linear field as the z axis rather than computing their field. A single Maxwell pair is linear only near the centre (about 0.4% error at 0.3 a, roughly ±10 cm here, and the curve flattens beyond); real whole-body coils spread many windings to stay linear over 40–50 cm, so the position encoding in the rest of the model assumes an ideal linear gradient over the whole phantom. Real coils also have a small field component along other axes (concomitant field), which is ignored.

Speed limits. The rise time is G / slew. A field that changes quickly induces currents in nerves; the model uses the form of the IEC 60601-2-33 limit (dB/dt)thr = 20 (1 + 0.36 ms / τ) T/s with τ the rise time and dB/dt = slew × r at r = 30 cm. Real limits depend on coil design, axis and operating mode. The chemical shift of fat is 3.5 ppm of f0, which moves fat by a fraction of a pixel along the readout axis.

Honest simplifications. The phantom signal is a uniform value per object (no T1, T2 or flip-angle weighting); the k-space is the analytic transform of discs, not simulated spins; the slice profile is a hard band although a real sinc pulse gives a soft edge; the matrix is fixed at 64 × 64; the slab is drawn at least 1.2 mm thick so it can be seen; the sequence diagram is a schematic gradient echo with rephasing lobes scaled to half the area. The scanner is a generic model, not any manufacturer's design.

Checks. (1) The Bloch equation integrated with RK4 gives precession at γ̄B, plus the gradient offset of an off-centre spin; (2) the numerical Biot-Savart slope of the Maxwell pair against the closed form and its linearity against a mis-spaced pair; (3) a brute-force scan of slice width and the location of a disc after Fourier reconstruction; (4) aliasing wraps a disc by exactly one field of view and the edge frequency is half the bandwidth.

Loading model...
Loading Blender model...
Gradient field along the bore: Maxwell pair against the ideal line
Larmor frequency against position, with the band the RF pulse excites
Gradient-echo pulse sequence (animated cursor)
Image reconstructed from the selected slice
Made with 🟠 Blender · Three.js