MRI Gradient Field & Slice Selection (2D)

This 2D companion rebuilds the actual physics the 3D MRI-gradient scene only gestures at: a linear gradient turns position into Larmor frequency, an RF pulse of finite bandwidth selects a real band of that frequency axis, and a field-inhomogeneity slider demonstrates why a mis-shimmed scanner excites the wrong slice — with the excited-spin fraction, slice thickness and net transverse signal all computed live from the per-spin frequencies rather than animated for effect.