You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We were trying to implement the regularized potential from this paper All-Electron Plane-Wave Electronic Structure Calculations for solid-state DFT calculation. We use all-electron plane-wave, so we need to transform the regularized potential into the frequency space like Coulombic potential. But unlike the Couloumbic potential which has an analytical formula of $V(k)=Z/k^2$ in the frequency space (can be derived by taking the limit $\alpha\to 0$ with Yukawa potential), we do not have an analytical formula for the regularized potential. So we thought we could use SBT to perform the transformation numerically.
First, we ensured that the implementation of the DFT code and the SBT routine were correct. The test case is the energy gap between two diamond geometries, and the reference value was computed with quantum espresso (QE). Firstly the base DFT code can match the QE result with a sufficiently large FFT mesh. Then we test the correctness of the SBT routine by replacing Coulombic potential with Yukawa potential $V(r, \alpha)=(Z e^{-\alpha r}) / r$ with different $\alpha$. As expected, with small $\alpha$ the energy gap is consistent with the reference value, and as we increase $\alpha$ the energy gap value diverges from the reference.
However, we encountered strange numerical issues when we tried to perform SBT on the regularized potential (equation 4 in the paper). The $V(k)$ calculated with SBT exhibits rapid oscillation, which looks like an artifact produced by the SBT rather than the behavior of the function. Below is the log-log plot of the SBT transform of the regularized potential, plotted against the Coulombic potential in frequency space:
Also, the $V(k)$ is very sensitive to how the radius is discretized. Below is the SBT transform of the regularized potential with different radius grids, 1 is with N=10000, rmin=1e-5, rmax=100, and 2 is with N=100000, rmin=1e-5, rmax=1000.
This also confirms that the oscillation is an artifact since the oscillation pattern is determined by the radius grid parameters.
However, the SBT is somewhat "self-consistent" in the sense that, we can perform iSBT on the SBT-transformed value and get back the regularized potential in real space pretty well. As shown in the plot below, the iSBT value aligns with the original function in real space very well:
The absolute error of the iSBT is quite small:
Now we have several hypothesis, either SBT cannot be applied in this case or there is some numerical instability in the current implementation. We would appreciate your insight on this. Thanks!
We were trying to implement the regularized potential from this paper All-Electron Plane-Wave Electronic Structure Calculations for solid-state DFT calculation. We use all-electron plane-wave, so we need to transform the regularized potential into the frequency space like Coulombic potential. But unlike the Couloumbic potential which has an analytical formula of$V(k)=Z/k^2$ in the frequency space (can be derived by taking the limit $\alpha\to 0$ with Yukawa potential), we do not have an analytical formula for the regularized potential. So we thought we could use SBT to perform the transformation numerically.
First, we ensured that the implementation of the DFT code and the SBT routine were correct. The test case is the energy gap between two diamond geometries, and the reference value was computed with quantum espresso (QE). Firstly the base DFT code can match the QE result with a sufficiently large FFT mesh. Then we test the correctness of the SBT routine by replacing Coulombic potential with Yukawa potential$V(r, \alpha)=(Z e^{-\alpha r}) / r$ with different $\alpha$ . As expected, with small $\alpha$ the energy gap is consistent with the reference value, and as we increase $\alpha$ the energy gap value diverges from the reference.
However, we encountered strange numerical issues when we tried to perform SBT on the regularized potential (equation 4 in the paper). The$V(k)$ calculated with SBT exhibits rapid oscillation, which looks like an artifact produced by the SBT rather than the behavior of the function. Below is the log-log plot of the SBT transform of the regularized potential, plotted against the Coulombic potential in frequency space:
![anc_vs_coulomb](https://github.com/QijingZheng/pySBT/assets/2672146/b1b2d7f1-3790-4ce3-9539-255021a41c58)
Also, the$V(k)$ is very sensitive to how the radius is discretized. Below is the SBT transform of the regularized potential with different radius grids, 1 is with
![sbt_with_diff_params](https://github.com/QijingZheng/pySBT/assets/2672146/9e6999df-8474-4729-8919-8f63d4fa4e81)
N=10000, rmin=1e-5, rmax=100
, and 2 is withN=100000, rmin=1e-5, rmax=1000
.This also confirms that the oscillation is an artifact since the oscillation pattern is determined by the radius grid parameters.
However, the SBT is somewhat "self-consistent" in the sense that, we can perform iSBT on the SBT-transformed value and get back the regularized potential in real space pretty well. As shown in the plot below, the iSBT value aligns with the original function in real space very well:
![anc_isbt2](https://private-user-images.githubusercontent.com/2672146/294804232-6e7160de-6302-40c6-83ac-3fe650451296.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUi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ZXN0JlgtQW16LURhdGU9MjAyNDA2MzBUMTkyMTA3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Nzk4MmFhNGQ3ZmEwOGI1ODIzZWFlMzZjYWJiNTJjODc2N2M5NTVkMmE3ZjQyNDY0YzJiNjA3ODZjZTM2NmFlNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.mx1Hr5zxyZN7Mg_r3Do0f5neDKgEB1f7DSAGOM62HSA)
The absolute error of the iSBT is quite small:
Now we have several hypothesis, either SBT cannot be applied in this case or there is some numerical instability in the current implementation. We would appreciate your insight on this. Thanks!
code to produce the above plots
The text was updated successfully, but these errors were encountered: