Thanks, I was looking more for an option where I can specify the absolute coordinates instead of the absolute distance. I am looking to implement a complicated form of a confining potential V(z), where the atoms should experience it only in the z-direction, for example. <div><br /></div><div>Could that be done? <br /><br /></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">Ole Schütt schrieb am Mittwoch, 10. Dezember 2025 um 13:59:50 UTC:<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>This might be what you're looking for:</div><div><br></div><div><a href="https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/MM/FORCEFIELD/NONBONDED/TABPOT.html" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=de&q=https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/MM/FORCEFIELD/NONBONDED/TABPOT.html&source=gmail&ust=1765462901164000&usg=AOvVaw2xypNWad2FHfz6qv-JK3Uz">https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/MM/FORCEFIELD/NONBONDED/TABPOT.html</a></div><div><br></div><div>-Ole</div><br><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Wednesday, December 10, 2025 at 2:47:58 PM UTC+1 <a href data-email-masked rel="nofollow">ioach...@gmail.com</a> 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">Dear CP2K community, <div><br></div><div>I was wondering whether it is possible to specify an external potential for the force and energy evaluation dependent on the atomic positions using a tabulated file. FORCE_EVAL/EXTERNAL_POTENTIAL does not seem to have this option; only FUNCTION for which the analytical form is needed, which in my case is too complex to implement in the input file. Are there any workarounds? </div><div><br></div><div>Thank you very much for your help!</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/364fba18-d9ad-4954-b6a2-3c671464c5f9n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/364fba18-d9ad-4954-b6a2-3c671464c5f9n%40googlegroups.com</a>.<br />