It is possible to give an external field via cube file or function: <br /><div>https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/DFT/EXTERNAL_POTENTIAL.html</div><div><br /></div><div>Johann</div><br /><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Wednesday, December 10, 2025 at 3:32:12 PM UTC+1 Ioachim Dusa 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;">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" rel="nofollow" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/MM/FORCEFIELD/NONBONDED/TABPOT.html&source=gmail&ust=1765541453353000&usg=AOvVaw3a2z96VWkmqr7sWzaMTo2a">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 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></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/b6735aa3-d1ee-4de3-9d25-bb6a2f4f089an%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/b6735aa3-d1ee-4de3-9d25-bb6a2f4f089an%40googlegroups.com</a>.<br />