Calculation of macromolecular force constants