Functions for mineral-melt calculationsΒΆ