Energy dissipation in medium and high cycle fatigue in metallic and composite materials