<div dir="ltr">Dear CP2K users,<div><br></div><div>I want to fix the dihedral angle of the molecular cluster. The indices of the 4 atoms in the cluster are 8, 2, 5, 11, and the corresponding dihedral angle is about 26.92 degree.</div><div><br></div><div>According to the CP2K manual, I found that the <font color="#0000ff">&CONSTRAINT</font> subsection in the &MOTION section might be able to deal with it.</div><div><br></div><div>Here is my code: </div><div><br></div><div>&MOTION</div><div>    &CONSTRAINT</div><div>        &COLLECTIVE</div><div>             COLVAR 8 2 5 11</div><div>             TARGET 26.92      # [degree] </div><div>        &END COLLECTIVE</div><div>    &END CONSTRAINT</div><div>...</div><div>...    </div><div><br></div><div><br></div><div>However, CP2K reported an error,</div><div><div><font color="#0000ff"> ************************************************************************</font></div><div><font color="#0000ff"> *** 12:30:45 ERRORL2 in input_parsing:val_create_parsing :: found    ***</font></div><div><font color="#0000ff"> *** unexpected extra argument 2 at , File: 'fix_dihedral_test1.inp',         ***</font></div><div><font color="#0000ff"> *** Line: 113, Column: 1, Chunk: <8>                                                     ***</font></div><div><font color="#0000ff"> ************************************************************************</font></div><div><font color="#0000ff"> <br></font></div><div><font color="#0000ff"> Looking for words in the input similar to the unknown: </font></div><div><font color="#0000ff">   '2'</font></div></div><div><br></div><div>Please see my input file in the attachment. </div><div><br></div><div><br></div><div>This error might result from the setting COLVAR 8 2 5 11 (but this keyword does not at Line 113 of the input file... )</div><div><br></div><div>I noticed that the keyword COLVAR should specify one index of an atom in the molecule, and the subsection of &COLLECTIVE can be repeated. </div><div><br></div><div>Does it correct to write like following?</div><div><br></div><div><div>&MOTION</div><div>    &CONSTRAINT</div><div>        &COLLECTIVE</div><div>             COLVAR 8</div></div><div>        &END COLLECTIVE</div><div><div><div>        &COLLECTIVE</div><div>             COLVAR 2</div></div><div>        &END COLLECTIVE<br></div></div><div><div><div>        &COLLECTIVE</div><div>             COLVAR 5</div></div><div>        &END COLLECTIVE</div></div><div><div><div>        &COLLECTIVE</div><div>             COLVAR 11</div></div><div>        &END COLLECTIVE</div></div><div>...</div><div>...</div><div><br></div><div>But the TARGET keyword  (value for fixing the dihedral angle to 26.92 degree) is in the subsection of &COLLECTIVE, NOT in the section of &CONSTRAINT.</div><div>How can I set the dihedral angle and fix it to 26.92 degree?</div><div><br></div><div>I appreciated it if anyone could help me. </div><div><br></div><div>Thanks so much.</div><div><br></div><div>Huan</div><div>.</div><div><br></div><div><br></div><div><br></div><div><br></div></div>