Dislocation segment distribution effects on dynamic modulus and internal friction