Thermodynamic Description of Ultrasonic Attenuation in Metals