Probe-Particle / ppafm

Classical force field model for simulating atomic force microscopy images.
MIT License
49 stars 18 forks source link

Figure out electrostatics in FDBM #277

Open mondracek opened 4 months ago

mondracek commented 4 months ago

How to achieve this? Two solutions have been proposed and (to some extent at least) also implemented:

  1. Using the --Rcore option
  2. Using ddensity (delta-density, the self-consistent minus atomic non-self-consistent density) instead of the full self-consistent electron density for the tip

We should figure out which of these soulution works better (or perhaps propose yet another one?), both in terms of numerical stability and in terms of being substantiated by the physics of the problem. Moreover, the solution may need to be different for VASP (pseudopotential code, the output density in CHGCAR exactly integrates to the total number of valence electrons) and for FHI-AIMS (all electron code, but the *_total_density.cube, as far as I know, does not have to integrate to the total number of electrons exactly, because of the finite grid that samples the density in the CUBE file).