How to correctly set the function in EXTERNAL_POTENTIAL?

149 views
Skip to first unread message

D Y

unread,
Apr 21, 2022, 6:42:13 AM4/21/22
to cp2k
Dear cp2k users and experts,
  I want to set up a function with spherical symmetry in CP2K_INPUT / FORCE_EVAL / EXTERNAL_POTENTIAL section during AIMD simulation, to prevent particles escape form slab. So i looked up the xTB manual for reference, and found there were two ways to set up such potential. one is logfermi potential, the other is polynomial potential. 

图片1.png图片2.png
Hence, i set up something like these in cp2k input file:
1. &EXTERNAL_POTENTIAL
        ATOMS_LIST   129..138
        FUNCTION   A*(sqrt((X-a)^2+(Y-b)^2+(Z-c)^2)/R)^8
        PARAMETERS A R a b c
        VALUES     1.0E-2 5 9.2 10.8 5.6
        UNITS  eV angstrom angstrom angstrom angstrom
  &END EXTERNAL_POTENTIAL

2.   &EXTERNAL_POTENTIAL
        ATOMS_LIST   129..138
        FUNCTION   A*log10(1+exp(8*sqrt((X-a)^2+(Y-b)^2+(Z-c)^2)-R))
        PARAMETERS A R a b c
        VALUES     1.0E-2 5 9.2 10.8 5.6
        UNITS  eV angstrom angstrom angstrom angstrom
  &END EXTERNAL_POTENTIAL

I really want to know whether the above mentioned functions are correctly setted? if it is wrong, could you please tell me  how to correctly set up this function?

sedate

unread,
Dec 30, 2025, 3:49:06 AM (3 days ago) 12/30/25
to cp2k
Hello, it is ok for seting a potential to prevent molecules motion during AIMD simulations? I get the same problem. 
Reply all
Reply to author
Forward
0 new messages