In case you want to perform a relaxed scan of the potential energy surface for a given dihedral, you have to perform constrained (or at least restrained) optimizations. The namd way to do so is to define a collective variable (colvar in namd terminology) and then impose a harmonic potential […]