Hi <div><br /></div><div>If that is the problem , a straightforward way would be to pass the connectivity information through a connectivity file. </div><div>The connectivity generated by CP2K can also be tuned from <li style="caret-color: rgb(64, 64, 64); color: rgb(64, 64, 64); font-family: Lato, proxima-nova, "Helvetica Neue", Arial, sans-serif; font-size: 16px; box-sizing: border-box; list-style: none; display: inline-block; padding-top: 5px;"><a href="https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL.html" style="box-sizing: border-box; color: rgb(155, 89, 182); cursor: pointer;">FORCE_EVAL</a></li><span style="caret-color: rgb(64, 64, 64); color: rgb(64, 64, 64); font-family: Lato, proxima-nova, "Helvetica Neue", Arial, sans-serif; font-size: 16px;"> </span><li style="caret-color: rgb(64, 64, 64); color: rgb(64, 64, 64); font-family: Lato, proxima-nova, "Helvetica Neue", Arial, sans-serif; font-size: 16px; box-sizing: border-box; list-style: none; display: inline-block; padding-top: 5px;"><a href="https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/SUBSYS.html" style="box-sizing: border-box; color: rgb(155, 89, 182); cursor: pointer;">SUBSYS</a></li><span style="caret-color: rgb(64, 64, 64); color: rgb(64, 64, 64); font-family: Lato, proxima-nova, "Helvetica Neue", Arial, sans-serif; font-size: 16px;"> </span><li style="caret-color: rgb(64, 64, 64); color: rgb(64, 64, 64); font-family: Lato, proxima-nova, "Helvetica Neue", Arial, sans-serif; font-size: 16px; box-sizing: border-box; list-style: none; display: inline-block; padding-top: 5px;"><a href="https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/SUBSYS/TOPOLOGY.html" style="box-sizing: border-box; color: rgb(155, 89, 182); cursor: pointer;">TOPOLOGY</a></li><span style="caret-color: rgb(64, 64, 64); color: rgb(64, 64, 64); font-family: Lato, proxima-nova, "Helvetica Neue", Arial, sans-serif; font-size: 16px;"> </span><li style="caret-color: rgb(64, 64, 64); color: rgb(64, 64, 64); font-family: Lato, proxima-nova, "Helvetica Neue", Arial, sans-serif; font-size: 16px; box-sizing: border-box; list-style: none; display: inline-block; padding-top: 5px;">GENERATE</li></div><div> </div><div>Coordinates passed in PDB format, where molecule name and molecule number are specified, might also work. </div><div><br /></div><div>Regards</div><div>Marcella</div><div><br /></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Tuesday, February 18, 2025 at 3:06:02 PM UTC+1 Planck wrote:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi, <br> I am trying to simulate molecular dynamics for a hypothetical chain of carbon atoms (this is a minimum working example designed to illustrate a larger issue I am facing). Each molecule consists of 5 carbon atoms, and my simulation contains 4 such molecules.<br><br>```<br> 20<br> #Built with Packmol<br> C 264.316076 114.220486 50.721755<br> C 264.392382 114.277533 50.950866<br> C 264.525927 114.377373 51.351839<br> C 264.659472 114.477213 51.752813<br> C 264.735777 114.534260 51.981923<br> C 327.956067 237.050267 49.303207<br> C 327.861562 237.033691 49.074379<br> C 327.696165 237.004681 48.673899<br> C 327.530769 236.975671 48.273418<br> C 327.436264 236.959095 48.044590<br> C 433.879103 142.141879 115.467902<br> C 433.814625 141.918476 115.381286<br> C 433.701780 141.527492 115.229696<br> C 433.588936 141.136507 115.078106<br> C 433.524458 140.913105 114.991490<br> C 234.869472 121.984410 116.856352<br> C 234.879704 121.977472 116.608530<br> C 234.897610 121.965330 116.174809<br> C 234.915516 121.953188 115.741088<br> C 234.925748 121.946251 115.493266<br>```<br>I have defined a Lennard-Jones potential between the carbon atoms. My input file looks like this:<br><br>```<br>&GLOBAL<br> PRINT_LEVEL HIGH<span style="white-space:pre"> </span>! Low verbosity<br> PROJECT MD_simulation<br> RUN_TYPE MD<br>&END GLOBAL<br><br>&MOTION<br> &MD<br> ENSEMBLE NVT<span style="white-space:pre"> </span>! Constant volume<br> TEMPERATURE 420<span style="white-space:pre"> </span><br> TIMESTEP 4.0<span style="white-space:pre"> </span>! 4 fs<br> STEPS 100000<span style="white-space:pre"> </span>! <br><br> &THERMOSTAT<br> TYPE CSVR<br> &END THERMOSTAT<br> <br> &PRINT<br><span style="white-space:pre"> </span> &ENERGY<br> &EACH<br> MD 25<span style="white-space:pre"> </span>! 25*TIMESTEP<br><span style="white-space:pre"> </span> &END EACH<br><span style="white-space:pre"> </span> &END ENERGY<br> &PROGRAM_RUN_INFO<br> &EACH<br> MD 25<span style="white-space:pre"> </span>! 25*TIMESTEP<br><span style="white-space:pre"> </span> &END EACH<br><span style="white-space:pre"> </span> &END PROGRAM_RUN_INFO<br> &END PRINT<br> &END MD<br> &PRINT<br> &TRAJECTORY<br> <span style="white-space:pre"> </span> &EACH<br> <span style="white-space:pre"> </span> MD 25<span style="white-space:pre"> </span>! 25*TIMESTEP<br> &END EACH<br> &END TRAJECTORY<br> &END PRINT<br>&END MOTION<br><br>&FORCE_EVAL<br> METHOD FIST<br> &MM<br> &FORCEFIELD<br> DO_ELECTROSTATICS F<span style="white-space:pre"> </span>! Ignore electrostatics (potential from QC)<br> IGNORE_MISSING_CRITICAL_PARAMS T<span style="white-space:pre"> </span> <span style="white-space:pre"> </span>! Ignore bonded parameters (potential from QC)<br><br> &SPLINE<br> EMAX_SPLINE 5000<br> EPS_SPLINE 1.00000000E-8<span style="white-space:pre"> </span>! Increase spline accuracy<br> &END SPLINE<br> <br> &NONBONDED<br><br> &LENNARD-JONES<br> atoms C C<br> EPSILON [kcalmol] 0.08<br> SIGMA [angstrom] 3.1507<br> RCUT [angstrom] 11.4<br> RMIN 1.0<br> &END LENNARD-JONES<br><br> &END NONBONDED<br><br><br> &END FORCEFIELD<br> <br> &POISSON<br> PERIODIC NONE<br> &EWALD<br> EWALD_TYPE NONE<br> &END EWALD<br> &END POISSON<br> <br> &END MM<br><br> &SUBSYS<br> <br> &CELL<br> PERIODIC XYZ<br> ABC 800 800 800<br> &END CELL<span style="white-space:pre"> </span><br><br> &TOPOLOGY<br> COORD_FILE_FORMAT XYZ<br> COORD_FILE_NAME C5_20.xyz<br> &END TOPOLOGY<br> <br> &END SUBSYS<br> <br> STRESS_TENSOR NUMERICAL<br>&END FORCE_EVAL<br><br>```<br><br><br> but when I run the simulation, I encounter the following error:<br>```<br> SPLINE_INFO| Generating 1 splines for NONBONDED interactions <br> Due to 1 different atomic kinds<br><br> *******************************************************************************<br> * ___ *<br> * / \ *<br> * [ABORT] SPLINE_INFO| Number of points: 2346797 obtained accuracy 43.1289 *<br> * \___/ . MM SPLINE: no convergence on required accuracy (adjust *<br> * | EPS_SPLINE and rerun) *<br> * O/| *<br> * /| | *<br> * / \ pair_potential.F:426 *<br> *******************************************************************************<br><br><br> ===== Routine Calling Stack ===== <br><br> 7 spline_nonbond_control<br> 6 force_field_pack_splines<br> 5 force_field_pack<br> 4 force_field_control<br> 3 fist_init<br> 2 fist_create_force_env<br> 1 CP2K<br>```<br>I suspect this is happening because I did not explicitly specify that each 5-atom unit is a single molecule, so CP2K is applying the Lennard-Jones potential between atoms that should be bonded. Since the atoms within each molecule are very close together, CP2K treats them as interacting via nonbonded forces, which leads to numerical instability in the Lennard-Jones calculations.<br><br>**If my assumption is correc**, How can I properly define a molecule in CP2K using the 5 carbon atoms?<br>How can I exclude Lennard-Jones interactions **within the same molecule**, while keeping them for interactions between different molecules?<br><br>N.B:<br>I understand that the carbon atoms are very close together, but this is a minimum working example meant to illustrate the issue.<br>I cannot change the atomic positions, as the actual problem requires keeping them fixed. Also I want to ignore the bond vibrations, rotations, torsions etc. <br><br>Any help or guidance would be greatly appreciated!<br><br></blockquote></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "cp2k" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:cp2k+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br />
To view this discussion visit <a href="https://groups.google.com/d/msgid/cp2k/c8965abb-ad8a-41c7-98b1-ca8674207b75n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/c8965abb-ad8a-41c7-98b1-ca8674207b75n%40googlegroups.com</a>.<br />