Cool a basaltic magma chamber and watch minerals crystallize in the order of Bowen's reaction series: olivine and calcium-rich plagioclase first, then pyroxene, amphibole, biotite, potassium feldspar and finally quartz. Choose fractional or equilibrium crystallization, dissolved water and a trace element, and follow the residual melt silica, the Rayleigh trace-element curve and the plagioclase solid-solution loop. A Blender-built cutaway chamber with numerical checks built in.