Tabulated external force potential

33 views
Skip to first unread message

Ioachim Dusa

unread,
Dec 10, 2025, 8:47:58 AM (5 days ago) Dec 10
to cp2k
Dear CP2K community, 

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? 

Thank you very much for your help!

Ole Schütt

unread,
Dec 10, 2025, 8:59:50 AM (5 days ago) Dec 10
to cp2k

Ioachim Dusa

unread,
Dec 10, 2025, 9:32:12 AM (5 days ago) Dec 10
to cp2k
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. 

Could that be done? 

Johann Pototschnig

unread,
Dec 11, 2025, 7:16:46 AM (4 days ago) Dec 11
to cp2k
It is possible to give an external field via cube file or function: 

Johann
Reply all
Reply to author
Forward
0 new messages