Calculation of dynamic friction on intramolecular degrees of freedom