“set_dihedral” changes the dihedral angle formed between the four bonded atoms provided. The atoms must be acyclic.
set_dihedral atom1, atom2, atom3, atom4, angle [, state [, quiet ]]
Because set_dihedral uses the molecular editing capability, numbered “pk” atom selections (if any) will be redefined by this operation.