If you have access to CP2K with PLUMED you can do that with <a href="https://www.plumed.org/doc-v2.9/user-doc/html/_c_o_o_r_d_i_n_a_t_i_o_n_n_u_m_b_e_r.html">COORDINATIONNUMBER </a>with the HIGHEST keyword.<br /><br /><div class="gmail_quote"><div dir="auto" class="gmail_attr">Op zaterdag 2 augustus 2025 om 10:44:03 UTC+2 schreef Daniel Marke:<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! Is there a way to use the keywords<div>ATOMS_FROM and ATOMS_TO and only have the highest CN and not the sum of all in the list?</div><br><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Monday, 10 September 2018 at 15:03:45 UTC+2 Marcella Iannuzzi 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"><div dir="ltr"> Dear Nicolas,<div><br></div><div>just use the COLVAR&COORDINATION , and list the indexes of the atoms using the keywords</div><div>ATOMS_FROM and ATOMS_TO</div><div><br></div><div>Regards</div><div>Marcella</div></div><div dir="ltr"><div><br><br>On Friday, September 7, 2018 at 5:26:58 AM UTC+2, Nicolás Marcelo Rozas Castro wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">Dears CP2K users <br><br><div>I have a problem to define my colective variable. I want to define the coordination number between an atom and many others in my simulation box, but i want to use the summation of this as:</div><div><br></div><div><img src="https://groups.google.com/group/cp2k/attach/4ea44b83ec6fe/Auto%20Generated%20Inline%20Image%201?part=0.1&view=1&authuser=0" alt=""></div><div>where s, are all the atoms tha i need to consider. so my question is, how can i achieve this?</div><div><br></div></blockquote></div></div></blockquote></div></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/f0ba6a76-cdf5-47ad-b36a-084b16de003bn%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/f0ba6a76-cdf5-47ad-b36a-084b16de003bn%40googlegroups.com</a>.<br />