Adds average u calculation for Mg material.