The Coordinate System¶
The PS grid is a two-center orthogonal coordinate system formed by revolving an elliptic coordinate plane around the line intersecting two foci. These planes are formed by ellipses and hyperbolae that share the same focus cite{arfken}. Assume that we place the foci in the Cartesian coordinates \((0,0,-a)\) and \((0,0,a)\). We can transform from one coordinate system to the other with
Where \(a\) is the distance between the foci, and \(\mu\) and \(\nu\) correspond to the ellipsoidal and hyperboloid surfaces. In the case of an axially symmetric system, the molecular orbitals of interest are independent of the azimuth angle according to Equations (ref{coordinate_transformations}). The \(\phi\) coordinate can be treated analytically and our problem now becomes two-dimensional.
To allow a more accurate description of the systems around the nuclei, the coordinates can be mapped into a new set of
In the new coordinates, the ‘radial’ part of the laplacian is
where \(\mathbf{m_a^2}\) is an integer and it specifies the rotation symmetry of the orbitals cite{96KS}: \
Orbitals that have a higher symmetry than \(\phi\) are not relevant for diatomic molecules at the DFT level of theory. Orbitals that have the same radial part and the same \(m=\pm m_a\) belong to the same shell.
Symmetry Considerations¶
These coordinates have a convenient correspondence with the distances between any point at either of the foci of the coordinate system.
where \(r_1\) and \(r_2\) represent the distances of any point \((x,y,z)\) to the foci. Additionally, the scales factors and the volume element for a PS grid are
Further discussions on the scale factors can be found on the curvilinear coordinate system section of Reference cite{arfken}. Equations ref{eq:rinPS} reveal a lot of interesting properties of the transformation in Equations ref{eq:sat} and ref{eq:sath}. If the sign of \(\mu\) or \(nu\) is changed, then the point \((x,y,z) \rightarrow (-x,-y,z)\). Thus, a rotation by \(\pi\) radians leaves orbitals with even \(m\) unchanged but reverses the sign of the orbitals with odd m-values:
Functions with \(\sigma, \delta, ...\) symmetry are even functions of \((\mu, \nu)\)
Functions with \(\pi, \phi, ...\) symmetry are odd functions of \((\mu, \nu)\)
Mathematically, this is expressed as
Due to these properties, we are able to use the central difference formula in any function near the boundary line. These relations are also used to adjust \(f\) along \((0,\mu), (\pi, \mu)\) and \((\mu, 0)\) boundary lines for \(\sigma\) functions. Any function that has a higher \(\sigma\) symmetry vanish at these boundary lines.
Discretization¶
To discretize our system, we build a two-dimensional mesh with two evenly spaced one-dimensional grids. Since this system is orthogonal, the mesh is a product of two independent one-dimensional meshes that generate a rectangle of \(N_a \times N_r\) points, representing the number of angular and radial points. With appropriate boundary conditions, only half of the rectangle is required for homonuclear diatomics, otherwise the whole rectangle is constructed. After having defined our space, we require our differentiation and integration operations. Integration is performed through
To calculate the weights proceed as stated in the Appendix ref{ap:Newton}. The first and second derivatives of the Laplacian defined on Equation ref{eq:laplacian} are approximated by finite different expression from the central difference formula.
where \(\{c_i\}\) are the finite difference coefficients. An additional requirements for these operators is that they must have the appropriately boundary conditions for each symmetry class, therefore a distinct matrix is needed for each of the different orbitals symmetries.
Although we have computed the integration and differentiation operators, we have not discuss how to produce the potentials that are usually used in a KS-DFT calculation. Each of them needs to be addressed individually.
The external potential is found by substitution of the transformation equations.
\[v_{ext}(\mathbf{r}) = - \frac{ Z (cosh(\mathfrak{e}) - cos(\mathfrak{h}))}{ a (cosh^2(\mathfrak{e}) - cos^2(\mathfrak{h})) }\]
The Hartree or the Coulomb potential arises from the total electron density. Although we know its explicit form as an integral involving the electronic density, it is more commonly known to be determined by solving the Poisson equation
\[\nabla^2 v_{H}(\mathbf{r}) = -4\pi n(\mathbf{r})\]The Poisson equation is not solved by direct substitution of the matrices that we produced in the previous section. Instead they are solved using an LU decomposed Laplacian followed by setting up the boundary conditions as suggested in Reference cite{96KS}.
The exchange-correlation potential is found through the library of exchange-correlation functionals libxc cite{libxc}. The library does not care about the coordinate system of the density, it only requires as input the value of the density and the gradient at the total discretized points. Currently no higher rungs than GGA are available in the current version of cad.