Page 1 of 1

Question about running eOn with external potential

Posted: Tue Nov 10, 2020 9:23 pm
by qian
Hi,

I am trying to run eOn with ext_pot as the option for potential. l used the binary ‘ext_pot’ to call cp2k to calculate the energy and forces. But it seems to be extremely slow. I tested on the pt system using the example in akmc-pt. With the build-in morse_pt potential, it only took ~5 seconds for one process search. However, when I tried to use the same Morse model, but with ext_pot calculating energy and forces using cp2k, it took ~500 seconds, which is ~100 times slower.

I’m wondering if the ext_pot is supposed to be so slow or is there any way to improve the computation speed when I have to use an external package to get energy and forces? Thank you!

Best,
Qian

Re: Question about running eOn with external potential

Posted: Wed Nov 11, 2020 12:54 am
by graeme
Hi Qian,

I'm not really sure what cp2k does when it evaluates an empirical potential, but I could imagine that there is a significant overhead in running cp2k to evaluate a simple Morse interaction. To check this, you might just check the time to calculate a single point energy and force with cp2k and see if that is consistent with the eon run time and the number of force evaluations that it did.

The idea behind the ext_pot is to allow coupling of EON to other codes. Our thought was that these codes would be based upon DFT or some approximate electronic structure. In that case, the overhead from running another program to get the forces and energy could be modest as compared to the cost of calculating that energy and force. With a Morse potential, however, there should be closer integration (unless the system is huge). We do support integration with the LAMMPS library with allows for relatively efficient calling of a wide variety of empirical potentials.

Graeme