Closed hainm closed 9 years ago
import pytraj as pt import sander dhlist = [] inp = sander.gas_input(8) with sander.setup(parm, parm.coords, None, inp): for deg in range(0, 180, 20): pt.rotate_dihedral(frame, 'phi resrange 2', deg=deg, top=traj.top) sander.set_positions(frame.coords) ene, frc = sander.energy_forces() dhlist.append(ene.dihedral)
done. I know how to do this know.