SOAP and LODE radial integrals¶
On this page, we describe the exact mathematical expression that are implemented in the radial integral and the splined radial integral classes i.e. Splined radial integrals. Note that this page assumes knowledge of spherical expansion & friends and currently serves as a reference page for the developers to support the implementation.
Preliminaries¶
In this subsection, we briefly provide all the preliminary knowledge that is needed to understand what the radial integral class is doing. The actual explanation for what is computed in the radial integral class can be found in the next subsection (1.2). The spherical expansion coefficients \(\langle anlm | \rho_i \rangle\) are completely determined by specifying two ingredients:
the atomic density function \(g(r)\) as implemented in Atomic density, often chosen to be a Gaussian or Delta function, that defined the type of density under consideration. For a given central atom \(i\) in the system, the total density function \(\rho_i(\boldsymbol{r})\) around is then defined as \(\rho_i(\boldsymbol{r}) = \sum_{j} g(\boldsymbol{r} - \boldsymbol{r}_{ij})\).
the radial basis functions \(R_{nl}(r)\) as implementated Radial basis functions, on which the density \(\rho_i\) is projected. To be more precise, the actual basis functions are of the form
\[B_{nlm}(\boldsymbol{r}) = R_{nl}(r)Y_{lm}(\hat{r}),\]where \(Y_{lm}(\hat{r})\) are the real spherical harmonics evaluated at the point \(\hat{r}\), i.e. at the spherical angles \((\theta, \phi)\) that determine the orientation of the unit vector \(\hat{r} = \boldsymbol{r}/r\).
The spherical expansion coefficient \(\langle nlm | \rho_i \rangle\) (we omit the atom type index \(a\) for simplicity) is then defined as
In practice, the atom centered density \(\rho_i\) is a superposition of the neighbor contributions, namely \(\rho_i(\boldsymbol{r}) = \sum_{j} g(\boldsymbol{r} - \boldsymbol{r}_{ij})\). Due to linearity of integration, evaluating the integral can then be simplified to
Thus, instead of having to compute integrals for arbitrary densities \(\rho_i\), we have reduced our problem to the evaluation of integrals of the form
which are completely specified by
the density function \(g(\boldsymbol{r})\)
the radial basis \(R_{nl}(r)\)
the position of the neighbor atom \(\boldsymbol{r}_{ij}\) relative to the center atom
The radial integral class¶
In the previous subsection, we have explained how the computation of the spherical expansion coefficients can be reduced to integrals of the form
If the atomic density is spherically symmetric, i.e. if \(g(\boldsymbol{r}) = g(r)\) this integral can always be written in the following form:
The key point is that the dependence on the vectorial position \(\boldsymbol{r}_{ij}\) is split into a factor that contains information about the orientation of this vector, namely \(Y_{lm}(\hat{r}_{ij})\), which is just the spherical harmonic evaluated at \(\hat{r}_{ij}\), and a remaining part that captures the dependence on the distance of atom \(j\) from the central atom \(i\), namely \(I_{nl}(r_{ij})\), which we shall call the radial integral. The radial integral class computes and outputs this radial part \(I_{nl}(r_{ij})\). Since the angular part is just the usual spherical harmonic, this is the part that also depends on the choice of atomic density \(g(r)\), as well as the radial basis \(R_{nl}(r)\). In the following, for users only interested in a specific type of density, we provide the explicit expressions of \(I_{nl}(r)\) for the Delta and Gaussian densities, followed by the general expression.
Delta Densities¶
Here, we consider the especially simple special case where the atomic density function \(g(\boldsymbol{r}) = \delta(\boldsymbol{r})\). Then:
Thus, in this particularly simple case, the radial integral is simply the radial basis function evaluated at the pair distance \(r_{ij}\), and we see that the integrals have indeed the form presented above.
Gaussian Densities¶
Here, we consider another popular use case, where the atomic density function is a Gaussian. In featomic, we use the convention
The prefactor was chosen such that the “L2-norm” of the Gaussian
but does not affect the following calculations in any way. With these conventions, it can be shown that the integral has the desired form
with
where \(i_l\) is a modified spherical Bessel function. The first factor, of course, is just the normalization factor of the Gaussian density. See the next two subsections for a derivation of this formula.
Derivation of the General Case¶
We now derive an explicit formula for radial integral that works for any density. Let \(g(r)\) be a generic spherically symmetric density function. Our goal will be to show that
and thus we have the desired form \(\langle nlm | g;\boldsymbol{r}_{ij} \rangle = Y_{lm}(\hat{r}_{ij}) I_{nl}(r_{ij})\) with
where \(P_l(x)\) is the \(l\)-th Legendre polynomial.
Derivation of the explicit radial integral for Gaussian densities¶
Denoting by \(\theta(\boldsymbol{r},\boldsymbol{r}_{ij})\) the angle between a generic position vector \(\boldsymbol{r}\) and the vector \(\boldsymbol{r}_{ij}\), we can write
where the first factor no longer depends on the integration variable \(r\).
Analytical Expressions for the GTO Basis¶
While the above integrals are hard to compute in general, the GTO basis is one of the few sets of basis functions for which many of the integrals can be evaluated analytically. This is also useful to test the correctness of more numerical implementations.
The primitive basis functions are defined as
In this form, the basis functions are not yet orthonormal, which requires an extra linear transformation. Since this transformation can also be applied after computing the integrals, we simply evaluate the radial integral with respect to these primitive basis functions.
Real Space Integral for Gaussian Densities¶
We now evaluate
the result of which can be conveniently expressed using \(a=\frac{1}{2\sigma^2}\), \(b_n = \frac{1}{2\sigma_n^2}\), \(n_\mathrm{eff}=\frac{n+l+3}{2}\) and \(l_\mathrm{eff}=l+\frac{3}{2}\) as
where \(M(a,b,z)\) is the confluent hypergeometric function (hyp1f1).