Computer modeling of the crystallization of magma within volcanoes; the measurement of trace metals in the crystals and liquids formed during experimental melting and crystallization of volcanic rocks; the study of natural inclusions of magma within crystals