HOMOL new dihed constrain cos function