<div dir="ltr">Hi Marcella, <div> Thank you for your quick response. Meanwhile I implemented your advice and replaced my "xyz" type coordinate file with a "pdb" file, with CONNEC information. But apparently CP2K is unable to read the connectivity information from there. So I defined a "PSF" file for the molecule myself and tried reading the connectivity information from there. However I'm getting the error:+<br>``` PSF_INFO| CMA :: Unimplemented keyword in CP2K PSF/UPSF format!```<br>Here is my PDB and PSF files. Could you please help me understand what is going wrong?<br> Is there any alternate ways to define the connectivity for artificial molecules like these? I appreciate your time and help.<br><br>1. C5_20.pdb<br>```<br>HEADER <br>TITLE Built with Packmol <br>REMARK Packmol generated pdb file <br>REMARK Home-Page: <a href="http://m3g.iqm.unicamp.br/packmol">http://m3g.iqm.unicamp.br/packmol</a><br>REMARK<br>ATOM 1 C1 CC AA 1 3.763 1.559 -0.001 1.00 0.00 C <br>ATOM 2 C2 CC AA 1 4.432 1.969 0.619 1.00 0.00 C <br>ATOM 3 C3 CC AA 1 5.101 2.380 1.238 1.00 0.00 C <br>ATOM 4 C4 CC AA 1 5.770 2.791 1.858 1.00 0.00 C <br>ATOM 5 C5 CC AA 1 6.439 3.202 2.477 1.00 0.00 C <br>ATOM 6 C1 CC AA 2 7.024 10.035 5.233 1.00 0.00 C <br>ATOM 7 C2 CC AA 2 6.590 9.963 4.335 1.00 0.00 C <br>ATOM 8 C3 CC AA 2 6.156 9.890 3.437 1.00 0.00 C <br>ATOM 9 C4 CC AA 2 5.722 9.817 2.539 1.00 0.00 C <br>ATOM 10 C5 CC AA 2 5.288 9.744 1.641 1.00 0.00 C <br>ATOM 11 C1 CC AA 3 10.002 6.551 9.985 1.00 0.00 C <br>ATOM 12 C2 CC AA 3 9.995 5.677 9.500 1.00 0.00 C <br>ATOM 13 C3 CC AA 3 9.989 4.802 9.014 1.00 0.00 C <br>ATOM 14 C4 CC AA 3 9.983 3.928 8.529 1.00 0.00 C <br>ATOM 15 C5 CC AA 3 9.977 3.053 8.044 1.00 0.00 C <br>ATOM 16 C1 CC AA 4 3.604 2.706 9.741 1.00 0.00 C <br>ATOM 17 C2 CC AA 4 2.835 3.343 9.802 1.00 0.00 C <br>ATOM 18 C3 CC AA 4 2.067 3.980 9.863 1.00 0.00 C <br>ATOM 19 C4 CC AA 4 1.298 4.616 9.925 1.00 0.00 C <br>ATOM 20 C5 CC AA 4 0.529 5.253 9.986 1.00 0.00 C <br>CONECT 1 2<br>CONECT 2 1 3<br>CONECT 3 2 4<br>CONECT 4 3 5<br>CONECT 5 4<br>CONECT 6 7<br>CONECT 7 6 8<br>CONECT 8 7 9<br>CONECT 9 8 10<br>CONECT 10 9<br>CONECT 11 12<br>CONECT 12 11 13<br>CONECT 13 12 14<br>CONECT 14 13 15<br>CONECT 15 14<br>CONECT 16 17<br>CONECT 17 16 18<br>CONECT 18 17 19<br>CONECT 19 18 20<br>CONECT 20 19<br>END<br>```<br>2. C5_molecule.psf<br>```<br>PSF CMAP<br><br> 1 !NTITLE<br><br> 5 !NATOM<br> 1 MOL 1 CC C1 C 0.000000 12.0110 0<br> 2 MOL 1 CC C2 C 0.000000 12.0110 0<br> 3 MOL 1 CC C3 C 0.000000 12.0110 0<br> 4 MOL 1 CC C4 C 0.000000 12.0110 0<br> 5 MOL 1 CC C5 C 0.000000 12.0110 0<br><br> 4 !NBOND: bonds<br> 1 2 2 3 3 4 4 5<br><br> 3 !NTHETA: angles<br> 1 2 3 2 3 4 3 4 5<br><br> 2 !NPHI: dihedrals<br> 1 2 3 4 2 3 4 5<br><br> 0 !NIMPHI: impropers<br><br> 0 !NCRTERM: cross-terms<br>```<br>3. Input file<br><br>```<br>&GLOBAL<br> PRINT_LEVEL HIGH ! Low verbosity<br> PROJECT MD_simulation<br> RUN_TYPE MD<br>&END GLOBAL<br><br>&MOTION<br> &MD<br> ENSEMBLE NVT ! Constant volume<br> TEMPERATURE 420 <br> TIMESTEP 4.0 ! 4 fs<br> STEPS 100000 ! <br><br> &THERMOSTAT<br> TYPE CSVR<br> &END THERMOSTAT<br> <br> &PRINT<br> &ENERGY<br> &EACH<br> MD 25 ! 25*TIMESTEP<br> &END EACH<br> &END ENERGY<br> &PROGRAM_RUN_INFO<br> &EACH<br> MD 25 ! 25*TIMESTEP<br> &END EACH<br> &END PROGRAM_RUN_INFO<br> &END PRINT<br> &END MD<br> &PRINT<br> &TRAJECTORY<br> &EACH<br> MD 25 ! 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 ! Ignore electrostatics (potential from QC)<br> IGNORE_MISSING_CRITICAL_PARAMS T ! Ignore bonded parameters (potential from QC)<br><br> &SPLINE<br> EMAX_SPLINE 5000<br> EPS_SPLINE 1.00000000E-8 ! Increase spline accuracy<br> &END SPLINE<br><br><br> &BOND <br> ATOMS C C<br> K 900.0<br> KIND HARMONIC<br> R0 1.0<br> &END BOND<br><br> &BEND<br> ATOMS C C C<br> KIND HARMONIC<br> K [rad^-2kcalmol] 1100.0<br> THETA0 [deg] 180<br> &END BEND<br><br> &CHARGE<br> ATOM C<br> CHARGE 0<br> &END CHARGE<br> <br> &NONBONDED<br><br> &LENNARD-JONES<br> atoms C C<br> EPSILON 0.08<br> SIGMA 3.1507<br> RCUT 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 30 30 30<br> &END CELL <br><br> &TOPOLOGY<br> COORD_FILE_FORMAT pdb<br> COORD_FILE_NAME C5_20.pdb<br> CONN_FILE_FORMAT PSF<br> CONN_FILE_NAME C5_molecule.psf<br><br><br> &END TOPOLOGY<br> <br> &END SUBSYS<br> <br> STRESS_TENSOR NUMERICAL<br>&END FORCE_EVAL<br>```<br><br><br><br><br><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Feb 18, 2025 at 4:34 PM Marcella Iannuzzi <<a href="mailto:marci.akira@gmail.com">marci.akira@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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 <ul><li style="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)" target="_blank">FORCE_EVAL</a></li></ul><span style="color:rgb(64,64,64);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:16px"> </span><ul><li style="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)" target="_blank">SUBSYS</a></li></ul><span style="color:rgb(64,64,64);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:16px"> </span><ul><li style="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)" target="_blank">TOPOLOGY</a></li></ul><span style="color:rgb(64,64,64);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:16px"> </span><ul><li style="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></ul></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:0px 0px 0px 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-wrap"> </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-wrap"> </span>! Constant volume<br> TEMPERATURE 420<span style="white-space:pre-wrap"> </span><br> TIMESTEP 4.0<span style="white-space:pre-wrap"> </span>! 4 fs<br> STEPS 100000<span style="white-space:pre-wrap"> </span>! <br><br> &THERMOSTAT<br> TYPE CSVR<br> &END THERMOSTAT<br> <br> &PRINT<br><span style="white-space:pre-wrap"> </span> &ENERGY<br> &EACH<br> MD 25<span style="white-space:pre-wrap"> </span>! 25*TIMESTEP<br><span style="white-space:pre-wrap"> </span> &END EACH<br><span style="white-space:pre-wrap"> </span> &END ENERGY<br> &PROGRAM_RUN_INFO<br> &EACH<br> MD 25<span style="white-space:pre-wrap"> </span>! 25*TIMESTEP<br><span style="white-space:pre-wrap"> </span> &END EACH<br><span style="white-space:pre-wrap"> </span> &END PROGRAM_RUN_INFO<br> &END PRINT<br> &END MD<br> &PRINT<br> &TRAJECTORY<br> <span style="white-space:pre-wrap"> </span> &EACH<br> <span style="white-space:pre-wrap"> </span> MD 25<span style="white-space:pre-wrap"> </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-wrap"> </span>! Ignore electrostatics (potential from QC)<br> IGNORE_MISSING_CRITICAL_PARAMS T<span style="white-space:pre-wrap"> </span> <span style="white-space:pre-wrap"> </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-wrap"> </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-wrap"> </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 a topic in the Google Groups "cp2k" group.<br>
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/cp2k/V5RlsZPw1Lk/unsubscribe" target="_blank">https://groups.google.com/d/topic/cp2k/V5RlsZPw1Lk/unsubscribe</a>.<br>
To unsubscribe from this group and all its topics, send an email to <a href="mailto:cp2k+unsubscribe@googlegroups.com" target="_blank">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" target="_blank">https://groups.google.com/d/msgid/cp2k/c8965abb-ad8a-41c7-98b1-ca8674207b75n%40googlegroups.com</a>.<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/CAFgiMy-_FJd1Yuhg-LF%3DruX%2BRfQ-4zXpvQdZna0-yNYxpF-qsQ%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/CAFgiMy-_FJd1Yuhg-LF%3DruX%2BRfQ-4zXpvQdZna0-yNYxpF-qsQ%40mail.gmail.com</a>.<br />