WorksPhysics and Astronomy
Coupling all-electron full-potential density functional theory with grid-based continuum embeddings
Abstract
Recent advances in continuum embedding models have enabled the incorporation of solvent and electrolyte effects into density functional theory (DFT) simulations of material surfaces, significantly benefiting electrochemistry, catalysis, and other applications. To extend the simulation of diverse systems and properties, the implementation of continuum embedding models into the Environ library adopts a modular programming paradigm, offering a flexible interface for communication with various DFT programs. The speed and scalability of the current implementation rely on a smooth definition of the key physical properties of the atomistic system, in particular of its electronic density. This has hindered the coupling of Environ with all-electron simulation packages, as the sharp electron density peaks near atomic nuclei are difficult to represent on regular grids. In this work, we introduce a novel smoothing scheme that transforms atom-centered electron densities into a regular grid representation while preserving the accuracy of electrostatic calculations. This approach enables a minimal and generic interface, facilitating seamless interoperability between Environ and all-electron DFT programs. We demonstrate this development through the coupling of Environ with the FHI-aims package and present benchmark simulations that validate the proposed method.
interface, facilitating seamless interoperability between Environ and all-electron DFT programs. We demonstrate this development through the coupling of Environ with the FHI-aims package and present benchmark simulations that validate the proposed method.
Introduction
Continuum embedding models are commonly used to incorporate solvation effects in molecular simulations.[1, 2] These models treat the solvent as a structureless dielectric continuum interacting with a solute system while the latter is treated on an atomistic level. The popularity of these methods arises from their high efficiency. For typical applications where the solute is treated on an electronic structure level of theory, continuum embedding causes only a small to moderate computational overhead.[3] By contrast, simulating individual solvent molecules explicitly would not only increase the system size of the electronic structure calculation but also require adequate thermodynamic sampling of the solvent molecules’ phase space, thus increasing the computational cost by multiple orders of magnitude.[4]
A variety of continuum embedding models, also referred to as implicit solvation models, have been proposed in the literature.[2] Historically, these were typically implemented with one particular host program in mind.[5, 6, 7] However, with the modular programming paradigm getting increasingly adopted in computational science, continuum embedding packages are now available which can be incorporated as libraries into different host programs or used as standalone software.
These implementations often rely on fast Fourier transforms (FFT) for their numerical solvers.[6, 7] This allows for a straightforward coupling with density functional theory with plane waves and pseudopotentials (DFT-PWP) host codes.[8] FFT requires data to be represented on a regular grid, i.e., a grid with even spacing in the directions of all three lattice vectors. In contrast, all-electron full-potential DFT (henceforth shortened to all-electron DFT) relies on overlapping atom-centered grids to resolve the potential near the nuclei.[9] In this region, allelectron DFT correctly predicts a steep variation of the charge density with a characteristic cusp, which cannot be adequately represented on a regular grid. This leads to inconsistent results for any practically feasible grid spacing and precludes coupling regular grid based continuum embedding with all-electron DFT in the minimalist fashion which is possible with DFT-PWP. This hinders interoperability despite the underlying physical models of continuum embedding and all-electron DFT being compatible in most cases.
To bridge this gap, we present here an interface between the all-electron DFT program FHI-aims[9, 10, 11, 12] and the regular grid based continuum embedding package Environ.[6] The interface is kept generic in the sense that communication is, for the most part, restricted to grid information and such physical data which is practically always needed, namely the electron density, molecular geometry, potential, energy, and forces. Such an interface makes only minimal assumptions on either side about the methods which are used by the other side. This allows the user to freely choose these methods as long as the underlying physical models are compatible. This interoperability will immediately include methods developed in the future without requiring any adaptations to the interface. At the center of the interface lies a smoothing scheme which we use to represent the all-electron density on the regular grid in a way that accurately preserves atomic multipole moments, leading to consistent results at a feasible grid spacing.
Theoretical background
The physical background and computational details of the methods available in FHI-aims and Environ have been described in other publications. We restrict ourselves here to reiterating only those parts of the formalism which are relevant for the communication interface that is the subject of the present work.
All-electron full-potential density functional theory
Regular grid based software typically store the electron density in a straightforward value-per-grid-point manner. By contrast, FHI-aims uses a partitioning scheme to store the density as atomic multipole components which are functions of only one radial coordinate. In a first step, the full density of all electrons in the system is separated into a free atom contribution and a delta density
where the sum runs over all atoms in the system and is the density of a single, free (i.e., in vacuum) atom of the same species (i.e., nuclear charge) as . Throughout this work, we use the shorthand notations , to denote the radial and angular components of the atom-centered position in spherical coordinates, where is the nuclear position of . is then further partitioned into atomic contributions according to
The exact form of the atomic partitioning functions is not relevant for the present work. Suffice it to say that they fulfill at every point where or any of its components are non-zero such that , and that each of them is centered around its nucleus such that it decays to zero at some finite distance from . The atomic contributions are then finally partitioned into multipoles
where are the real-valued linear combinations of the spherical harmonics. Truncating the expansion at a finite order , a multipole density can be reconstructed which reproduces the original to a good approximation.
Although it slightly differs from , we refer to as the original electron density throughout this article to distinguish it from the smoothened electron density which we introduce in section 3.2. A few things are worth pointing out about this formalism. In eq. (4), the analytical form of is well-known, and the two remaining types of functions and depend only on a single, radial coordinate rather than the full vector . They can, thus, be tabulated on a dense grid without requiring much memory space. The evaluation at an arbitrary radius uses cubic spline interpolation between the tabulated values. and are tabulated on different types of grids. Without going into their detailed definitions, we note that both types of grids get denser closer to the nucleus. This allows the characteristic cusp of the electron density at the nucleus to be resolved with high accuracy, enabling an all-electron full-potential formalism which does not rely on pseudopotentials. While the evaluation of eq. (4) at an arbitrary point requires only data stored on 1-dimensional grids, the evaluation of eq. (3) at one given still requires on a 2-dimensional angular grid centered around . Consequently, evaluating eq. (3) at all grid values of at which we want to tabulate ultimately does require an atom-centered 3-dimensional grid consisting of radial shells of angular grids. The full grid in FHI-aims which corresponds to the regular grids used in DFT-PWPP thus consists of overlapping atom-centered grids.
Solving the Poisson equation
The electrostatic potential generated by a charge density in the absence of any other charge carriers or external fields is defined by the Poisson equation (PE)
A unique solution (in some cases up to a constant offset) is defined by appropriate boundary conditions, e.g. or periodicity at the boundary of a unit cell. The density here is more general than the electron density discussed in the previous section and may, for example, include nuclei.
Solving eq. (5) is an integral part of electronic structure theory and consequently has to be implemented in any DFT software package either directly or through external libraries. Different practical approaches have been developed. In FHI-aims, the linearity of the operator is exploited to decompose the electronic contribution to the potential into individual and in complete analogy to eq. (4). These components are obtained from
using the symmetry dependent radial Green’s function of the operator.
By contrast, starting from , regular grid based codes typically use FFT to obtain . In reciprocal space, the Laplace operator is transformed into a simple multiplication with , which can easily be inverted to obtain and, through inverse FFT, .1
The generalized Poisson and Poisson-Boltzmann equations
The situation becomes more complicated compared to eq. (5) when investigating systems in which charges are present which we do not want to explicitly include in . In this case, we need to make assumptions about the behavior of the remaining charges and their impact on . For example, consider some explicit charge distribution which is immersed in a local, linear, and isotropic dielectric medium. We may not want to include the polarization charge of the medium in . Instead, we can describe it by its relative dielectric permittivity in the generalized Poisson equation (GPE)[1]
If, additionally, an electrolyte is dissolved in the solvent medium and we do not want to treat the electrolyte charge explicitly as part of either, then we can treat each ionic species as a separate source term
which follows the Poisson-Boltzmann equation (PBE)13
with the charge and bulk concentration of species , the Boltzmann constant , the temperature , and a function which is in regions of space that are fully accessible to the electrolyte and in regions that the electrolyte cannot enter, with some transition between the regions.
Continuum embedding
The modifications of PE described in the previous section are generally accurate only on a macroscopic scale. Nonetheless, the idea of using them as an approximation on an atomic scale has led to the development of continuum embedding models. When simulating molecules or surfaces in solution, this allows us to treat only the solute (and possibly a small number of solvent molecules) on an atomistic level while representing (most of) the solvent as a dielectric continuum.[1, 2] In the present work, we focus on the continuum embedding software package Environ.
Different variations of the two basic models described in the previous section are implemented in Environ, such as a modification of PBE due to finite ion size and a linearized version of it, 13 as well as Stern layer corrections 14,15. The simpler planar countercharge, Gouy-Chapman-Stern, 13 and Mott-Schottky 16 electrolyte models for surfaces are also available, as well as further modifications of the potential such as periodic boundary corrections, 17 confining potentials, 18, and external charges.
What these models have in common is that they cannot be solved directly using the formalism in eq. (6). This is because the symmetry dependent radial Green’s function is derived from a multipole decomposition of the three-dimensional Green’s function of the operator. 19 No general and straightforward decomposition of this kind exists for the operator with arbitrary . Furthermore, eqs. (8) and (9) are interdependent and generally require iterative solver algorithms.
In addition to implementing these solvers, Environ handles a range of additional tasks. The permittivity and the function in PBE need to be defined. To this end, the region occupied by the solute, called the solvation cavity, is introduced. It is assumed to be inaccessible to solvent molecules. It is defined by a cavity function which is for inside the cavity and in the solvent. This allows for a definition such that and with the permittivity of the bulk solvent. Similarly, with and . [1] [13] The transition of and as functions of between these extremes is continuous and monotonic. Throughout the present work, we use the term ‘cavity’ in a strict sense only for the region in space where . The transition region with is considered to be outside of the cavity. We will use the shorthand terms inside/outside for ‘inside/outside of the cavity’ henceforth.
Environ provides various options to define the cavity. The self-consistent continuum solvation (SCCS) model[6] defines as a function of the electron density
where is a function which smoothly and monotonically switches from 0 to 1, and and are model parameters. The soft-sphere continuum solvation (SSCS) model20 defines the cavity based on the scaled van-der-Waals radii of the atoms
where the scaling factor and the softness are global model parameters which, in the base version of SSCS, do not depend on atom . However, an additional electric flux dependent prefactor can be introduced into the term to define a field-aware interface.21 It is clear that is never analytically equal to 1, which is why we defined the cavity by rather than above. Both SCCS and SSCS can be modified to take the finite size of the solvent molecules into account in a solvent-aware cavity definition.22 Finally, can be defined as a sphere (cluster-like system geometry), cylinder (system periodic in 1 dimension), or slab (system periodic in 2 dimensions)
where , the softness and width are parameters, the sum runs over all non-periodic dimensions of the system, is the cartesian coordinate of in dimension , and are the respective coordinates of the system center . Additionally, Environ provides an option to include one or multiple additional dielectric regions of similar shape to eq. (12) with individual dimensionality, softness, width, and center, originally introduced to model ice surfaces with molecular adsorbates.23
To account for effects such as surface tension or dispersion and Pauli repulsion interactions between solute and solvent, continuum embedding models commonly include some non-electrostatic energy contribution. In Environ, this takes the empirical form of an effective pressure and an effective surface tension which are applied to the cavity volume and surface area, which are calculated as the space integrals of and , respectively.[1] Furthermore, the continuum embedding software needs to compute the solvent potential which enters the Kohn-Sham (KS) operator in the host DFT program. Apart from the solvent contribution to the electrostatic potential, this may also include functional derivatives due to the electron-density-dependent cavity definition in SCCS and any derived terms such as the cavity surface area. Finally, the force contributions from the solvent model are computed.
To solve GPE, PBE, or their variations in practice, iterative algorithms are employed which at each step solve the regular PE (5) with the source term (right hand side) modified in such a way that after convergence, the resulting fulfills the specified electrostatic problem for the original . Environ closely follows the formalism of its original host DFT-PWP code[8] using an FFT based Poisson solver. This makes it necessary that the charge density and all derived quantities such as and are stored on a regular grid. All operations performed on them or necessary to compute them are implemented in a way that assumes this structure.
It would, in principle, be possible to recreate these iterative algorithms in FHI-aims using eq. (6) for the ‘inner’ Poisson solver which is called at each iteration step. Indeed, FHI-aims currently features implementations of the conductor-like screening model (COSMO),24 Stern layer modified Poisson-Boltzmann (SMPB),15 and multipole expansion (MPE)[3] [25, 26] methods. While these specialized implementations yield optimized computational performance,[3] their limited scope is a considerable disadvantage compared to the wide range of functionality implemented in a general purpose continuum embedding library like Environ.
Reproducing all of Environ’s already existing methods individually in FHI-aims would lead to a difficult-to-maintain, inflexible software extension which would require constant updates as novel embedding methods are developed. Conversely, one might consider introducing additional levels of abstraction into Environ to enable it to operate on data stored on different kinds of grids. However, apart from having to rewrite all existing objects and operations in an overlapping atom-centered grid framework, such an abstraction would also impose that same duplicate effort on future developments in this package.
Instead, here we describe a generic procedure to convert charge densities between the grids of FHI-aims and Environ. Following the modular programming paradigm, this minimal, easy-to-maintain interface immediately makes any methods implemented in either code (currently or in the future) interoperable as long as the underlying physical models are compatible. This is possible because, despite its complexity, continuum embedding generally needs to communicate only a very limited set of data with the host DFT program, as described in the next section.
The interface
Communication
Continuum embedding interacts with DFT by modifying the electrostatic potential in the KS operator. This modification is applied at each self-consistent field (SCF) step using the electron density at that step, thereby allowing for full self-consistency of the embedded DFT system. After convergence, energy and force contributions are computed, also allowing for geometry relaxation in full consistency with the continuum model. Generally, the DFT program does not require any further input from the embedding program. Conversely, the continuum embedding package Environ is designed to operate on only a minimal set of input data from its host DFT program, namely the electron density, the nuclear positions and charges, and the unit cell.
The general workflow of the resulting interface between FHI-aims and Environ is outlined in Figure 1. Within this framework, both FHI-aims and Environ are free to use any methods to compute their contributions to potential, energy, and forces as specified by the user in the separate input files for both programs. At the center of the interface stands a smoothing scheme described in § 3.2. This scheme allows us to convert the electron density from
Figure 1. Communication workflow between FHI-aims (blue/top) and Environ (red/bottom). At each SCF step, the components of are smoothened in a way that conserves the long range multipole moments of the core regions, cf. § 3.2. Shown as inserts are examples of original and components (blue) and their smoothened counterparts (red). The smoothened density is evaluated on Environ’s regular grid. Environ defines the cavity and solves the specified electrostatic problem. It computes any additional contributions and corrections specified by the user. To avoid artifacts in , Environ’s FFT core subroutines are modified to include a low-pass filter in the derivatives, cf. § 3.5. The solvent contributions to the effective potential in the KS operator, the free energy in solution , and the forces (symbols shortened in figure for clarity) are communicated to FHI-aims. The potential is interpolated back onto the overlapping atom-centered grids and added to the vacuum contribution computed by FHI-aims. An additional energy correction is computed, as described in § 3.6. The KS equations are solved, the density is updated, and the process is repeated to self-consistency.
the grid of FHI-aims to that of Environ without losing important information contained in the core region where an atom-centered grid is considerably more fine-grained than a regular grid. Furthermore, we include a low-pass filter in the FFT based derivatives as described in § 3.5 to avoid high frequency artifacts in the smoothened density. We note in passing that in contrast to the electron density and its electrostatic potential, Environ already has methods implemented to smear out the nuclei and their potentials, which will therefore not be further discussed here.
Specifically, the quantities listed below are computed and communicated at certain steps of the simulation. This procedure assumes that FHI-aims and Environ are parallelized using the same number of processes. In both programs, each process handles a part of the respective program’s grid and the corresponding data. However, the regions in space covered by one process in Environ and by the process with the same process ID in FHI-aims generally do not coincide, owing to the different nature of the grids and the corresponding partitioning schemes.
During (re-)initialization, the unit cell and nuclear positions and charges are sent from FHI-aims to Environ. Environ returns smoothing information ( (SSCS) or (SCCS), see § 3.3) to FHI-aims.
At the beginning of the potential update, Environ sends its grid points and meta-data to FHI-aims. FHI-aims computes the smoothened electron density on those grid points and sends it to Environ. Parallelization is trivial at this point. While each FHI-aims process handles only a part of the 3-dimensional grids, the 1-dimensional tabulated multipole components of every atom are synchronized across all processes. Each FHI-aims process simply computes the smoothened density on the grid points of the Environ process with the same process ID. Environ computes potential, energy, and, if requested, force components. Energy (and force) are sent to FHI-aims. Each Environ process writes the potential on its part of the grid to a separate temporary file.
During the potential update, FHI-aims interpolates the potential contribution from Environ back onto its own grid using tricubic interpolation and adds it to its own potential contribution. The latter is computed in the same way that FHI-aims would if no continuum embedding was used. Each FHI-aims process loads the Environ potential only from those temporary files which it needs for its part of the grid as determined using the stored grid meta-data. A double counting energy correction is integrated on-the-fly as described in § 3.6.
Multipole-conserving smoothing
While at first it may seem straightforward to evaluate eq. (4) on a regular grid and pass this data to Environ, this would lead to inconsistencies. In all-electron DFT, a substantial amount of charge is localized in a narrow cusp around the core which is smaller than the volume element corresponding to one regular grid point. Therefore, when integrating the total charge or computing the electrostatic potential, the result would depend on where exactly or whether at all a grid point happens to lie in the cusp region.
A solution to this problem becomes apparent as we realize that when combining continuum embedding with DFT, we do not actually need the full potential of the former. The DFT program can compute the nuclear and electronic potentials as usual and requires only the solvent contribution from the embedding program. For the electrostatic part of the potential, this contribution is simply defined as
where is the solution of PE (5) in vacuum and is the solution of the electrostatic problem defined by the user, e.g. eq. (7) or eqs. (8) and (9). ‘Vacuum’ in this context refers to the energy and potential without any solvent contributions but not necessarily of the vacuum ground state. The ground state electron density in solution or, in fact, any instantaneous electron density may be used in eq. (13), as long as the same density is used for both terms. The different electrostatic models can generally be described as variations of eq. (8) distinguished by the definition of on the left hand side and by the source terms in addition to on the right hand side. However, all of these models locally reduce to eq. (5) inside the cavity, leading to
In other words, the solvent potential inside does not locally depend on , and it is the harmonic continuation of the outside part of . This leads to the idea of using a smoothened charge density to compute smoothened potentials , , and ultimately in complete analogy to eq. (13). As long as and are equal to their non-smoothened counterparts outside, will be equal to both inside and outside because eq. (14) together with the value and derivatives at the cavity boundary uniquely defines the behavior inside and it does not locally depend on , , or any other quantity. The full electrostatic potential in solution can then be obtained as
where can be computed in the way that the DFT program normally would. Here and in the following, the bar indicates quantities which are computed using the smoothened charge density .
It is sufficient for to be outside and conserve the long range atomic multipole moments of the portion of that is inside. If this is the case, then reproduces outside as will be shown below, cf. eq. (18). is generally a semi-local function of and of itself, implying that it has to be found iteratively. Using as an initial guess for , this means that reproduces outside if and , both outside. This is described in more detail in section S1.1 of the supplementary information.
(SI) of the present article.
Furthermore, if is outside and smoothly increases moving inside from the cavity boundary, then will be unaltered in SCCS. In field-aware SSCS, the scaling factors depend on the electric flux through the exposed surfaces of the individual soft spheres which at the point of determining the factors are not yet scaled by these same factors. These scaling factors and, consequently, are unaltered if at the cavity surface. We reiterate that the cavity surface in Environ is a smeared out region defined by which we consider to be outside in this work.
These considerations allow us to modify the multipole components within a certain cutoff radius around the nuclei which lies safely inside, as illustrated in Figure 2. The choice of this radius is discussed in § 3.3. The modified multipole components should reproduce the long range potential of the unmodified outside . To this end, we replace the multipole components with 6th order polynomials inside
Figure 2. Water molecule in implicit solvent. Difference (left) and overlap (right) between of one hydrogen atom H and inverted cavity function of entire molecule for SCCS (top) and SSCS (bottom), cut through the molecular plane. computed from converged for SCCS. Contrast in right images chosen to capture maximum value across both images. Radius of dashed circle estimates shortest distance of H from any point outside. Inside of a sphere with half of that radius (hatched area), is replaced by a polynomial . In transition region of , original is used but integration errors in this region are still partially compensated in inner (hatched) region. For , integration errors over entire are compensated. Corresponding plots for the O atom, different cavity definitions, and ionic systems shown in section S4 in the SI.
We choose the polynomial coefficients to fulfill two types of conditions. First, the value and first and second derivatives of are continuous at and at . Continuity in the angular directions is fulfilled by construction, leaving only continuity in to be considered. This leaves us with 6 continuity conditions so far. Second, the polynomial reproduces the correct long range multipole moment of the multipole component it replaces. The electrostatic potential generated by at any is exactly equal to that generated by if
is fulfilled because the potential generated at by a multipole charge distribution confined to can be expressed exactly using a point multipole. This can be seen by inserting in eq. (6) and separating the dependent term out of the first integral
When replacing with , the first integral in the above expression is unchanged if eq. (17) is fulfilled and . In the second integral, the integrand itself is unchanged if .
This leaves us with a total of 7 conditions, hence the use of 6th order polynomials. For the low order multipoles with , some of the continuity conditions at the origin are fulfilled by construction and do not need to be enforced, as shown in § 11 in the SI. A 4th order polynomial is thus sufficient for , as is 5th order for and $l = 2. The conditions are first enforced computing the left hand side of eq. (17) analytically and the right hand side numerically on the radial grid of FHI-aims. is smoothened to produce in almost the exact same manner, effectively treating it like . The only difference is that FHI-aims uses different grids to store the free atom and multipole densities.
In a second step, defining the smoothened atomic multipole density
we check the similar condition
evaluating the left hand side on the regular grid and, again, the integral on the right hand
side on the radial grid. is the Kronecker delta and is the nuclear charge. The switching function for smoothly switches from 1 inside to 0 outside of it and is discussed in section 3.4. For , everywhere to conserve the total charge exactly. Equation (20) checks the apparent atomic multipole moments when the smoothened atomic multipole density is evaluated on the regular grid, and it compares them to the exact atomic multipole moments obtained from . The residual error in eq. (20) is computed, and the polynomial coefficients are adjusted to correct for it while still conserving continuity conditions.
The adjustment of the polynomial coefficients due to eq. (20) is made using once again analytical integrals for the polynomials, which leaves room for residual errors when evaluated on the regular grid. To reproduce the atomic multipole moments exactly, the correction scheme needs to be iterated to self-consistency. In principle, this could be done at each step of the encompassing SCF procedure. In practice, we find the following scheme which requires only one density evaluation per SCF step to be sufficient: Keep record of the residual errors in eq. (20) cumulatively over SCF steps. At each SCF step, use eq. (17) to get polynomial coefficients. Using the cumulative errors from the previous SCF steps, add a correction to the coefficients. Compute on the regular grid and pass it to Environ. On the fly, check the new residual errors in eq. (20). Add these new residual errors to the stored cumulative errors. Before the first SCF step, assume that is the electron density, get using eq. (17), set all , and compute eq. (20) to get the stored residual errors for the first SCF step. This update scheme effectively converges the residual error as the encompassing SCF procedure converges. In fact, the residual errors are typically small already in the initial SCF step and remain small throughout the procedure.
Choice of cutoff radii
We choose
where is an estimate of the shortest distance of nucleus from any point outside. In practice, is slightly adjusted to coincide with the halfway point (in parameter space, cf. ref. 9: parameter in , sec. 3.1., and parameter in eq. (18)) between two shells of the radial grid of FHI-aims. For SCCS, we choose such that
As the electron density relaxes to the molecular geometry and the solvent potential, can become at points with shorter distances from than especially for cations and atoms with positive partial charges. Nonetheless, stays contained inside by setting it to half of , as illustrated in fig. 2 as well as section S4 in the SI. For SSCS, we choose
If the solute consists of only one atom, then . Any additional atoms will push the solvent boundary away from nucleus , never towards it. Although is never analytically zero, we find that it is numerically zero inside , cf. fig. 2 as well as section S4 in the SI. Field-aware and solvent-aware modifications of as well as additional dielectric regions are not taken into account when computing . For the ‘system’ cavity eq. (12), we use eq. (22) with default SCCS parameters. Alternatively, the user may specify for each species manually regardless of cavity definition.
Switching function for integration error check
Including in eq. (20) is necessary because small errors at large (far outside ) have a strong impact on the multipole moment, whereas small corrections at small (inside ) only have a much smaller impact. This is due to the factor or , respectively, in the integrand and is accordingly more pronounced for higher . This would require large correction terms for small errors which, paradoxically, would lead exactly to those steep variations of the density in the core region which we want to avoid and, consequently, integration errors on the regular grid. Moreover, if integration errors do occur outside, then corrections inside will not fully recover the correct outside, cf. the integration boundaries in eq. (18). If a numerical error occurs in the first integral, the correct potential at can still be recovered by adjusting the integrand in the same integral. However, if an error occurs in the second integral, no single adjustment in the first integral will generally recover the correct potential for all possible . The appropriate remedy for such errors is a tighter integration grid. In this spirit, also ensures that we only attempt to correct those errors which we actually can correct. The only exception to these considerations is for which because we want the total charge of the entire system to be conserved exactly.
The reason why we do not sharply switch from 1 to 0 at is because it would lead to inconsistencies when, due to a small geometry change, this radius moves across a point on the regular grid. The density at that grid point would then sharply switch from being fully included in the left hand side integral in eq. (20) to being fully excluded. A smeared out switching function allows for smoothly varying results with small geometry changes. The switching function is defined such that it is continuous and continuously differentiable to second order.
with a shifted and scaled radius
with
where is the grid spacing along lattice vector . In the case of an orthorhombic cell and equal spacing of the regular grid along all three lattice vectors, the volume element corresponding to one grid point is a cube and is the length of its space diagonal. Assuming such cubic volume elements, we consider a case where a grid point exists such that is pointing along the space diagonal and , i.e., the sphere with radius around cuts exactly through . In such a case, will be at gridpoint , it will be at the diagonally next neighboring grid point, and it will be at the diagonally second neighbor.
Low-pass filter
In addition to the smoothing which happens before the electron density is passed to Environ as described in the previous sections, we introduce a second modification in Environ itself. This modification is a low-pass filter in the FFT based core subroutines which compute the derivatives of a function on the regular grid. While our smoothing scheme makes representable on the real space regular grid, high frequency artifacts may occur in the discrete Fourier transform. The operator transforms into a multiplication with the frequency vector in Fourier space. The imaginary unit in the prefactor corresponds to a phase shift which makes oscillations visible in which are hidden in because they pass through zero at the grid points before the phase shift. In addition, artifacts at a high frequency are amplified in the gradient by that same frequency.
For our purposes, this mainly affects the computation of the atomic forces, as well as the gradient, Laplacian, and Hessian of in SCCS. The latter terms enter the KS potential (cf. § 3.6) and are themselves obtained from the derivatives of via the chain rule. Artifacts and instabilities in the derivatives of therefore directly translate to the energy, KS potential and forces. It would, in principle, be possible to compute the derivatives of in FHI-aims using the analytical derivatives of eq. (4). To keep communication minimal, we choose to address both issues in Environ’s core FFT subroutines instead. For consistency, this affects all FFT based derivatives, not just when applied to . We replace these four
subroutines (gradient, Laplacian, Hessian, and forces) with modified versions which include a low-pass filter. space in Environ is confined to a sphere with
We choose a filter
with two tunable parameters . As illustrated in Figure 3, this effectively removes artifacts in . If inaccuracies arise due to actual data (as opposed to artifacts) being filtered, these errors can be systematically reduced by choosing a denser grid which corresponds to a higher .

Figure 3. Gradient component for the same system as in fig. 2, SCCS. Red and blue show positive and negative values, respectively, at an arbitrary scale. computed from via chain rule after SCF convergence. Titles refer to computation of . Top left: FFT with low-pass. Top right: FFT without low-pass. Bottom left: computed in FHI-aims using the analytical derivative of eq. (4). Filtered FFT version correctly reproduces this reference. Bottom right: for reference, FFT without low-pass, the DFT program being Quantum Espresso8 instead of FHI-aims. While the overall less smooth shape of the cavity in FHI-aims is a result of its atom-centered basis set and is consistently present, cf. also Figure 2, the ripples in the unfiltered FFT derivative are an artifact that is absent in the analytical derivatives and can be removed by a low-pass filter. Corresponding plots for and differences of filtered to unfiltered and direct gradients shown in figs. S49 and S50 in the SI.
Full energy, force and potential expressions
The full free energy in solution , the force acting on atom , and the effective potential which enters the KS operator are obtained by summing up the respective vacuum contributions computed by FHI-aims and the solvent contributions computed by Environ.
is formally a Gibbs free energy since simplifying the solvent degrees of freedom into a dielectric model formally amounts to an (approximate) integration over these degrees of freedom and we generally consider the pressure to be a constant property of the model solvent. We reiterate that the ‘vacuum’ contributions are calculated using the pure DFT Hamiltonian without embedding but on the ground state electron density in solution. In this context, is not the experimentally accessible free energy of solvation which would be the difference between the free energies of the respective ground state densities.
The exact definition of as a functional of depends on the specific solvent model.2
We refrain from stating all possible energy, potential, and force expressions here and refer to the respective original publications. We do not need to concern ourselves with this because Environ provides the functionality to compute for any implemented . Similarly, is computed such that the energy functional is minimized when using according to eq. (29c) in the KS operator. The forces can be decomposed in a similar manner. It is worth noting that the inclusion of in the KS operator automatically yields a corresponding contribution to the Pulay forces, i.e., the correction to the Hellmann-Feynman forces which arises from the dependence of the atom centered electronic basis functions on the nuclear positions.[9] [27]
The vacuum and solvent parts of eqs. (29b) and (29c) as well as can be computed straightforwardly without any further modification to either program beyond the already described electron density smoothing, low-pass filter in the FFT derivatives, and potential interpolation. Only requires one additional term compared to a calculation without embedding.
The first five terms are how FHI-aims normally defines the total energy. In order, these terms are the sum of KS eigenvalues weighted by occupation numbers , the removal of the interaction of the electron density with the exchange-correlation (xc) potential , the xc energy , the removal of the double-counted electron-electron interaction, and the nuclear-nuclear interaction. It is implied here that for any given , does not include the singularity of itself. The formulation with the fourth and fifth term containing the total potential instead of, respectively, the electronic and nuclear potentials is obtained by subtracting and adding half of the electron-nuclear interaction. The additional sixth term removes the interaction of the electrons with the solvent contribution to the KS potential. The actual interaction energy is contained in , similarly to how the interaction with is replaced with the actual . The integration of this additional term is performed in the same loop as the interpolation of onto the atom-centered grids. Note that the double counting correction for the electron-electron interaction (second integral above) is computed using the multipole density (cf. eq. (4)) rather than the exact electron density . This is a deliberate choice in FHI-aims and leads to a faster convergence of the total energy with multipole expansion order.[9] We find that using also in the solvent potential correction (last integral) similarly leads to faster convergence with multipole order, as shown in § 4.3 A more detailed derivation of eq. (32) is given in § 12 in the SI.
It can be shown that the exact solvent contributions in eq. (29) calculated with a smoothened electron density and smeared cores are equal to the same quantities for the original electron density and nuclear point charges. In practice, Environ can compute a numerical solution only for the smoothened density, which we can use without further modification due to this equality. The equality follows from the fact that the solvent contribution to the electrostatic potential can be represented by an additional polarization charge density which is in regions of space where the potentials of the original and smoothened explicit density differ, i.e., inside. Similarly, any terms beyond classical electrostatics can be reduced to semilocal expressions which vanish inside by construction. A detailed discussion of each of these terms is given section S1 in the SI.
Results and discussion
Computational details
All calculations were carried out with modified versions based on FHI-aims version 241018 and Environ version 3.1. except for the CO on Pt(111) system in section 4.4 and all calculations in sections 4.5 and 4.6 for which FHI-aims version 250822 and Environ version 3.1.1 were used. Unless mentioned otherwise, for FHI-aims we used the Perdew-Burke-Ernzerhof exchange correlation functional,28 tight species defaults (2020 variant),[9] no spin-polarization, atomwise scalar zeroth-order regular approximation (ZORA) for relativistic effects,[9] and a Gaussian broadening scheme with a width of 0.01 eV for the KS states.29 Unless mentioned otherwise, for Environ we used a parabolic correction for periodic boundary conditions,30,31 a value of for the bulk permittivity of water, and, respectively, the fitg03+ parameters for SCCS[6] or the UFF32 parameters for neutral molecules for SSCS with the exception of the systems containing Pt, for which we used the Bondi33 parameters to avoid the extremely small radius of Pt in the UFF parameterization.20 In any case where two parameterizations were available, one with a non-zero effective pressure and one without but otherwise equivalent, we used the former option. We used Environ’s fixed-point iterative solver for the electrostatic problem throughout, as we found the conjugate-gradient solver to yield inconsistent forces in preliminary calculations.
The water molecule, NaF dimer, anion, and cation used in figs. 2 and 3, the following sections, and various examples in section S6 in the SI were placed in unit cells. The PtCO trimer was placed in a cell. Only the Gamma point of space was sampled. The bounding boxes of the figures do not represent the unit cell.
Energy and force convergence with grid density, low-pass filter
We tested the convergence of the total energy and forces and their respective components with increasing Environ grid density for different low-pass filter parameters. The three test systems were a water molecule as a simple base example, a NaF dimer at 2 Å separation as an extreme case of a polarized system, and a linear PtCO trimer with bond lengths of 1.85 Å (Pt-C) and 1.1 Å (C-O) in anticipation of the CO on Pt(111) example discussed in § 4.4. We tested the parameterizations of SSCS and SCCS described in § 4.1. In Environ, the grid density is controlled by the parameter where higher values correspond to denser grids. We sampled in steps of 50 Ry over a range from 300 Ry to 800 Ry. For PtCO in SCCS, we started from 500 Ry instead, as some of the initial low calculations did not result in SCF convergence. For NaF in SCCS, we extended the range to 1200 Ry and for PtCO in SCCS to 1400 Ry, as results up to 800 Ry were not entirely conclusive. For the low-pass filter, we reduced the number of free parameters from 2 to 1 by fixing (implied throughout this section), which corresponds to . We tested filters with , as well as no filter. The primary results are shown in Figure 4 and Figure 5. Complete results including the forces on all atoms as well as all individual energy and force components are shown in § 15.1 to S6.4 in the SI. For better comparison, all plots throughout this and the following section are shown on the same energy or force scale, respectively, unless mentioned otherwise.

Figure 4. Convergence of total energy with Environ grid density parameter for different test systems and solvent models. Dashed lines only as visual guideline.

Figure 5. Convergence of total forces of selected atoms in different test systems and solvent models with Environ grid density parameter . Dashed lines only as visual guideline.
In SSCS, the total energies and their components did not exhibit any noticeable dependencies on for NaF and water. For PtCO, minor changes in the eigenvalues and the Hartree and solvent potentials occur which do, however, cancel in the total and kinetic energy. The forces on the Pt and Na atoms exhibit small fluctuations originating from the Pulay force term which converge around Ry, with some small but noticeable residual fluctuations meV/Å on the Pt atom. The forces on the other atoms appear to be already converged at Ry. The low-pass filters do not have any impact on the energies, as they do not enter the energy and potential in SSCS. In the forces, they do not appear to reduce fluctuations. On the contrary, the most aggressive filter () actively introduces an error for low . We conclude that converged energies and forces in SSCS can be obtained simply by choosing high enough . For all SSCS calculations in the following, we use no low-pass filter and Ry.
In SCCS, the kinetic, xc, and total energies appear to converge around Ry for NaF and significantly faster for water and PtCO. In PtCO, a systematic error cancellation between the Hartree and solvent potentials becomes apparent, with neither of the terms individually converging in the sampled range of . While residual fluctuations are observed also in the eigenvalues and, to a lesser extent, the kinetic energy of PtCO, the total energy does converge. The forces of the water and CO molecules do not exhibit any noticeable fluctuations as long as any low-pass filter is applied. The total forces appear to converge around Ry for the NaF dimer and around Ry for the Pt atom, with the residual fluctuations on the metal atoms Na and Pt significantly higher than on any of the nonmetals. Again, the individual force contributions on the Pt atom do not converge in the sampled range of . Nonetheless, total force convergence to below 10 meV/Å accuracy is possible for all tested systems with the more aggressive low-pass filters (, ).
Even the most conservative of the tested filters () significantly reduces energy and force fluctuations. Without a filter, we observe massive fluctuations in the energies and forces. In the converged range of , the grid dependent fluctuations of the energy and force components are much more pronounced than the differences between different low-pass filters as long as any filter is used. However, in the total forces on the Pt atom, a subtle systematic error originating from the Environ force contribution can be observed with the most aggressive filter () compared to the other two filters. We conclude that the use of a low-pass filter is necessary to ensure consistent results between different grid densities in SCCS. Too aggressive filters can lead to systematic errors. For more conservative filters, a safe regime exists where the exact choice of parameters has little impact when used with a sufficiently dense grid. appears to produce slightly faster and more stable convergence than . For all SCCS calculations in the following, we use and Ry as a safe choice.
Energy and force convergence with multipole order
Using the such determined grid and low-pass filter settings for Environ, we tested energy and force convergence with the multipole order in eq. (4). To ensure an appropriate representation of the higher order multipoles on the angular grids of FHI-aims, we used the really tight species defaults for this series of tests. For the tested elements, these defaults use the same electronic basis functions and radial grids as tight, but denser angular grids and a higher multipole order instead of , the latter being the tight default value. We varied in the range from 5 to 10 and used the really tight basis sets and grids otherwise unmodified. We also use this opportunity to test three possible ways of computing the solvent-electron double counting correction, i.e., the last term in eq. (32): Using and performing the integration in FHI-aims (as written in eq. (32)), using the exact instead of its multipole-decomposed counterpart and performing the integration in FHI-aims, and using the smoothened multipole density and performing the integration on Environ’s regular grid. The primary results are shown in Figure 6 and Figure 7. Complete results including the forces on all atoms as well as all individual energy and force components are shown in sections S6.5 to § 15.8 in the SI.
Figure 6. Convergence of total energy with multipole expansion order for different test systems, solvent models, and schemes for the solvent-electron double counting correction. Dashed lines only as visual guideline.
Figure 7. Convergence of total forces of selected atoms in different test systems and solvent models with multipole expansion order . Dashed lines only as visual guideline.
In SSCS, total energies and forces are converged at for all tested systems to good accuracy. Only the forces on the C atom in PtCO show small fluctuations which converge at . These fluctuations are, however, of the same order of magnitude meV/Å as the dependent fluctuations on the Pt reported in the previous section and can thus be considered converged within the overall accuracy of our method. By contrast, the individual energy and force contributions exhibit a clear dependence on . This demonstrates that Environ can be seamlessly integrated into the intrinsic correction and error cancellation schemes of FHI-aims. In the following, we use the tight species defaults for all SSCS calculations.
In SCCS, the energy of water and the forces in NaF and PtCO are not converged at . At , almost all total energies and forces are converged. At this value, only the total forces on the Na and Pt atoms still exhibit some small error, of the same order of magnitude as the residual fluctuations with increasing grid density for these atoms (< 10 meV/). Energies and forces become unstable for using the really tight angular grids, precluding any definitive statement about the convergence of the forces on these two atoms. However, increasing from 8 to 10, the residual net force on the center of mass of the total systems, which should be zero, reduced from 5.2 meV/ to 2.4 meV/ for PtCO and remained constant at 1.5 meV/ for NaF. Of course, the interpretability of these few data points is limited. It appears intuitively reasonable that SCCS, in which the cavity definition depends on the electron density, requires a more precise representation of this density compared to SSCS, which has no such dependency. In the following, we use the really tight species defaults for all SCCS calculations.
Across both solvent models it becomes apparent that of the three possible ways to compute the solvent-electron double counting correction, using and performing the integration in FHI-aims does not lead to reliable energy convergence. This is particularly pronounced for NaF. The other two options both yield fast and reliable convergence to approximately the same value, with a minor difference < 1 meV for NaF and PtCO in SSCS. We opt to use and perform the integration in FHI-aims as it allows us to use Environ’s existing functions for computing without modification.
Consistency between energies and forces, surfaces
Using the such determined settings, we confirmed the consistency between energies and forces by checking the residual force on the center of mass of each system, which should be zero. Additionally, we displaced one atom in each system by 0.005 away from the central (water, PtCO) / other (NaF) atom to compute finite difference numerical forces and compared them to the analytical forces. The results are shown in Table 1.
| system | model | residual total | atom | numerical | analytical |
| water | SSCS | 0.84 | H | 558.2 | 559.1 |
| NaF | SSCS | 1.3 | F | 1290.5 | 1290.3 |
| PtCO | SSCS | 4.3 | O | 6842.2 | 6846.1 |
| CO@Pt(111) | SSCS | 10.0 | O | 3063.6 (3072.5) | 3086.0 |
| water | SCCS | 0.80 | H | 505.1 | 504.7 |
| NaF | SCCS | 1.5 | F | 1065.4 | 1068.2 |
| PtCO | SCCS | 5.2 | O | 6853.4 | 6857.6 |
| CO@Pt(111) | SCCS | 4.8 | O | 2841.7 (2850.8) | 2864.0 |
Table 1. Forces in meV/Å for different systems in SSCS and SCCS. Center column: Residual total force (Euclidean norm) on center of mass of system (should be zero). Right columns: Forces along bond axis (unsigned) acting on specific atoms, computed numerically from total energy change on small displacement, and computed analytically (mean value between undisplaced and displaced geometry). Numerical forces in brackets are derived from the extrapolated energies at zero broadening of occupation numbers for CO@Pt(111).
We also test the applicability of our method in the context of computational surface science by including in the test systems a CO molecule (bond length 1.12 ) adsorbed at the top site of a Pt(111) surface (Pt-C distance 1.85 ). The Pt surface was represented by a slab consisting of 3 layers of Pt atoms in an orthorhombic cell with cell parameters 11.10 Å and 9.61 Å in plane, corresponding to a nearest neighbor distance of 2.77 Å. In the direction perpendicular to the surface, the cell had an extent of 27.50 Å. We used the 2 dimensional version of Environ’s parabolic periodic boundary correction. We increased the broadening width for the occupation numbers to 0.1 eV to allow for convergence of the electronic structure of the metal substrate. We used a grid of for which we found energies to be converged to 1 meV accuracy for the undisplaced geometry in both SSCS and SCCS, cf. section S5 in the SI.
We consistently find the residual force on the center of mass to be meV/Å. The same accuracy is also found in the agreement between numerical and analytical forces for the isolated systems. For CO on Pt(111), a larger disagreement is found. This is likely due to the non-zero broadening of the occupation numbers in the metal part of the system. If the derivatives of the occupation numbers are not explicitly accounted for, the analytical forces no longer correspond to the total energy.3 FHI-aims also outputs the extrapolated energy at zero broadening. Computing the numerical forces from these extrapolated energies reduces the disagreement with the analytical forces to meV/Å. Implementing explicit derivatives of the occupation numbers taking the solvent into account is beyond the scope of this article and left for future work.
Behavior in the no-smoothing limit
So far, we have only shown that for a given set of there exists a free energy and corresponding forces to which a calculation converges with sufficiently tight numerical settings.
However, we have not yet empirically shown that this is, indeed, the correct free energy of the original electron density in the chosen solvent model. The theory of the equivalence between original and smoothened quantities is discussed in section S1 in the SI, but only in terms of exact analytical solutions. It is worth verifying how accurately this equivalence holds for the practically obtainable numerical solutions.
An exact reference using the original electron density is elusive because the cusps of this density near the nuclei cannot be resolved on any regular grid with a feasible grid density due to the discontinuity of the derivatives at the cusp. Conversely, implementing Environ’s models in an overlapping atom-centered grid formalism lies beyond the scope of this article and is, in fact, exactly what we want to avoid.
However, we can make use of the fact that the original electron density is recovered in the limit of small
and equivalently for . Although this limit cannot be reached, we can get arbitrarily close to it by choosing arbitrarily dense regular grids.
To verify that the energy of in the no-smoothing limit is the same as with the choice of described in § 3.3, we systematically scale these radii by a factor
where reproduces the default eq. (21).
On this occasion, we also demonstrate how errors emerge once smoothing and solvent regions overlap. Starting at , we decreased the scaling factor in steps of 0.1 until the SCF procedure no longer converged. The same factor was applied to all atoms in a given system. We repeated this process for different , starting at the previously determined default values and increasing it in steps of 500 Ry up to 3500 Ry for water and NaF and 2000 Ry for PtCO.
The results are shown in Figure 8. Across all test systems, we consistently observe a stable regime up to around . Around , a steep deviation of the energy from this stable regime is found. This is expected as at this value, is equal to the estimated solvation radius , cf. eq. (34). For larger , the smoothing region overlaps noticeably with the outside region and the assumptions made in § 3.2 no longer hold. Remarkably, for water both in SSCS and SCCS the value at which the energy starts to deviate from the converged value is smaller for denser grids. Nonetheless, at , the error was meV for all tested grid densities.
Figure 8. Convergence of total energy with scaling factor for for different test systems, solvent models, and Environ grid densities as defined by . Markers indicate the lowest at which SCF convergence was still achieved. Dashed lines only as visual guideline.
In the direction of smaller smoothing regions, stable SCF convergence can be achieved down to between 0.3 and 0.5 with the default grid densities. Smaller down to 0.2 (except for water in SCCS, for which only 0.3 was possible with the tested grid densities) can be reached but require a steeply increasing Environ grid density. In most cases, the SCF procedure simply does not converge below a certain scaling factor. For water and NaF in SCCS, however, the lowest possible for some resulted in outliers instead. All of these outliers are associated with additional SCF steps compared to the stable region. Furthermore, in NaF it can be seen how increasing the grid density further can remedy these outliers. At , values of 1000 Ry and 1500 Ry resulted in outliers, but recovers the stable energy. Similarly, and Ry also results in an outlier which is recovered at higher . These outliers can thus be attributed to the SCF just narrowly converging to a spurious state. The outliers for the two highest and in water in SCCS are not recovered within the sampled range. However, the considerable number of additional SCF steps (45 for Ry and 22 for 3500 Ry compared to 10 for ) also suggests a spurious state which could presumably be recovered with an even denser grid.
Apart from these outliers, our results suggest that the no-smoothing limit of the total energy is already reached at for the default grid densities. We thus find eq. (21) to be a reasonable choice which avoids both spurious states for very small smoothing regions and overlap with the outside region for very large smoothing regions.
Computational overhead
The relative computational overhead of adding solvent effects via Environ into an FHI-aims calculation depends strongly on the methods used in both programs. The computational cost of different electronic structure methods famously differs by orders of magnitude. In Environ, we have shown that different models require different grid densities. Furthermore, the Poisson-Boltzmann model for electrolytes, cf. eqs. (8) and (9), requires a nested iterative solver scheme which takes more computational time than the generalized Poisson model for pure dielectrics, cf. eq. (7). It follows from these wide varieties within both parts of the simulation that either part may be the computational bottleneck, depending on the simulated system and the chosen models.
Nonetheless, a very rough estimate of the computational overhead is possible based on the dimensionality of the system. In Environ, the grid is uniform throughout the cell. Environ’s computational cost is, thus, dictated primarily by the cell size but not by the atoms inside it. By contrast, the grids in FHI-aims are attached to atoms. Therefore, its computational cost is dictated by the number (and species) of atoms but not by the cell size. This means that empty space in the cell increases the cost of Environ but not of FHI-aims. Empty space typically occurs in combination with periodic boundary corrections, as a buffer between the system and the cell boundary. Accordingly, we find the relative overhead on isolated systems where empty space is added in three directions to be significantly higher than on slab calculations where empty space is added only in one direction. Adding to this difference is the fact that for slab calculations in FHI-aims, space integration is necessary while in Environ, this is not the case because only charge densities and electrostatic potentials are considered, but no wavefunctions.
Table 2 shows the total calculation time, average time for one SCF step, and number of SCF steps for our test systems in SSCS, SCCS, and without continuum embedding. We note that some part of the overhead for SCCS is caused not by Environ itself but rather by the use of really tight instead of tight species defaults in FHI-aims. As expected from the considerations above, for each solvent model the overheads on one SCF step were all in a similar order of magnitude across all systems, 9 - 18 s for SSCS and 22 - 106 s for SCCS. This is because the simulation cells all had similar sizes, between 2933 and 8000 . By contrast,
| system | vacuum | SSCS | SCCS | |
| water | avg. step | 0.034 | 9.2 | 26 |
| water | total | 0.64 | 88 | 273 |
| water | steps | 20 | 10 | 11 |
| NaF | avg. step | 0.044 | 11 | 22 |
| NaF | total | 2.7 | 132 | 227 |
| NaF | steps | 24 | 12 | 11 |
| PtCO | avg. step | 0.056 | 18 | 57 |
| PtCO | total | 1.5 | 198 | 670 |
| PtCO | steps | 26 | 12 | 13 |
| CO@Pt(111) | avg. step | 248 | 265 | 354 |
| CO@Pt(111) | total | 12729 | 22157 | 29489 |
| CO@Pt(111) | steps | 50 | 82 | 82 |
Table 2. Wall clock time in s for average SCF step except first and last, total calculation time, and number of SCF steps for different systems and solvent models as well as without solvent. All calculations were performed on 36 Intel(R) Xeon(R) CPU E5-2695 v4 @ 2.10GHz CPU cores. Both FHI-aims and Environ were built with Intel oneAPI compilers and libraries, version 2022.0.2. For the vacuum calculation of CO@Pt(111), periodic boundary conditions in direction were removed using the dipole correction implemented in FHI-aims. The same point grid was used as in the calculations with Environ. For the isolated systems, vacuum calculations were performed without periodic boundary conditions. All vacuum calculations used tight species defaults.
FHI-aims can take full advantage of the non-periodicity of the isolated systems, resulting in one SCF step of the water molecule being almost four orders of magnitude faster than for the CO@Pt(111) slab. Additionally, with FHI-aims being an all-electron code, heavy elements like Pt are intrinsically more computationally expensive than lighter elements.
In summary, the relative overhead on a single SCF step is small to moderate for the CO@Pt(111) test system. The total calculation time is still noticeably increased because more SCF steps were necessary with continuum embedding than without. This may possibly be remedied by optimizing the mixing parameters. However, for the isolated systems, Environ is clearly the bottleneck of the calculation. The intrinsic continuum embedding models of FHI-aims which can take advantage of non-periodic systems are significantly faster for these systems, albeit more limited in scope. For example, the MPE model was shown to not be the bottleneck of the calculation even for small isolated systems,[3] but it lacks most of Environ’s features like electrolyte models.
Conclusion and outlook
We have presented an interface between the all-electron full-potential DFT program FHI-aims and the regular grid based continuum embedding package Environ. FHI-aims passes a modified electron density to Environ which returns contributions to the KS potential, energy, and forces, allowing for integration of Environ into the SCF loop of FHI-aims. To overcome the complication of representing the narrow cusps of the electron density around the nuclei on an evenly spaced grid, we have introduced a smoothing scheme which conserves the charge density and electrostatic potential outside the solvation cavity, resulting in the correct solvent potential. Furthermore, we have included a low-pass filter in the FFT based derivatives in Environ to suppress high frequency artifacts in the electron density passed from FHI-aims.
The resulting method allows for reliable convergence of energies to meV and forces to meV/ accuracy. For SSCS, the tight species defaults of FHI-aims are sufficient and no low-pass filter is necessary. For SCCS, the higher multipole order of the really tight defaults is required as well as a low-pass filter, for which we found parameters , to be a safe choice. Even higher multipole orders and accordingly denser angular grids than in the really tight defaults might possibly be necessary in some cases. The required grid density in Environ depends strongly on the system and the solvent model. For all systems which were tested in this work, a parameter of Ry appeared to be a safe choice for SSCS and 1000 Ry for SCCS. However, we stress here that the chosen applications intentionally cover challenging systems, and much smaller values may be sufficient in many cases. As in most electronic structure applications, testing convergence of energies and forces with for each specific system is recommended.
The presented work showcases a robust scheme for coupling simulation methods with very different numerical domains. Given the accuracy and transferability of the proposed methodology, we expect the proposed scheme to have a positive impact on the further development of modular libraries for electronic structure and multiscale/multiphysics calculations. Other forms of environment/electrostatic embedding, in particular density embedding, subsystem DFT, and polarizable QM/MM models, may benefit from the possibility of combining grid-based solvers with accurate full-electron calculators that rely on atom-centered numerical domains.
Acknowledgments
We thank Volker Blum for his useful suggestions on potential representation on different grids. We acknowledge funding from the NSF Cybertraining program, award #2321102 and from the NSF CAREER award #2306929.
Data availability
Data sharing is not applicable to this article as no new data were created or analyzed in this study.
References
Supplementary information: Coupling all-electron full-potential density functional theory with regular grid based continuum embeddings
Jakob Filser; Edan Bainglass; Karsten Reuter; Oliviero Andreussi
Equivalence of certain solvent terms derived from original and smoothened density
In this section, we discuss the solvent contributions to the potential and their interaction with the solute. We consider the exact solution of the electrostatic problem and non-electrostatic model for the original explicit charge density and its smoothened counterpart . Most equations are expressed in terms of and quantities derived from it since this is what we compute in practice. However, for the exact solution, the same equations hold for and its derived quantities. The numerical solution on the regular grid is a good approximation to this (unknown) exact solution for but not for . We will show that the exact solvent potential is equal for both densities, allowing us to use the numerical solution for the smoothened density and treat it as if it was the solution for the original density.
Throughout this and the following sections, the superscript ‘vac’ is used to denote any quantities resulting from the Poisson equation without any embedding. Note that such quantities are still derived from a charge density which may be the converged result of an embedded calculation rather than a vacuum calculation or, in fact, any instantaneous charge density. The superscript ‘solv’ indicates any quantities resulting from an embedded calculation. The bar is used to denote smoothened electron densities as described in the main article, smeared nuclear charge densities according to Environ’s[1] intrinsic procedures, as well as any total or other charge densities, potentials, energies, and forces derived from the former two quantities. The corresponding quantities without the bar and the term original refer to the non-smoothened electron density from FHI-aims[2] and nuclear point charges as well as any derived quantities. Unless mentioned otherwise, any equations presented here refer to the (unknown) exact solutions of the respective models rather than the numeric solutions on the regular (or any other) grid.
Electrostatic potential
Environ implements a variety of electrostatic problems, not just the generalized Poisson and Poisson-Boltzmann models.[3, 4, 5, 6] However, all of these models are defined in a way which allows to be computed as the solution of the Poisson equation with an additional polarization source term. In the original literature on Environ, the dielectric polarization and the electrolyte charge are considered separately. Such a distinction is not necessary for the derivation here. Instead, we summarize both into .
The linearity of the operator allows us to separate
Here, we have renamed the quantity which is called in the main article to to make the relation to more apparent and avoid confusion with in the following. We can use eq. (15) in the main article to obtain the non-smoothened potential in solution as long as
The iterative solver finds such that solves the specified problem for the explicit source term . All implemented electrostatic problems allow for to be computed as a semi-local function
at each iteration step , using at that step which is computed from the polarization at the previous step
For all implemented models, we can generally say that everywhere inside. This means that at any given iteration step, the polarization density for the original and smoothened explicit density are equal
under the condition that
for all outside. The equality of and is discussed in section 3.2 the main article. Inside, eq. (41) is trivially fulfilled by being . Equation (S7a) is always fulfilled outside because we defined our smoothing scheme to only manipulate the density inside. By conserving the long range multipole moments of the smoothened regions, outside. By simply choosing
as an initial guess, we find that eq. (S7b) is fulfilled outside for . This means that eq. (41) is fulfilled in this step and, according to eqs. (39) and (40), eq. (S7b) remains fulfilled in the next step etc., eventually converging to the same result eq. (38). It does not matter which initial guess for is actually used as long as the iteration converges to the same result as when starting from eq. (44).
Free energy
The exact definition of the free energy functional differs between models.1 Nonetheless, we can make some general statements about the equivalence of the solvent contribution to the free energy for the original and smoothened density.
The electrostatic interaction between the explicit charge and the solvent potential is a term that occurs as a part of in all of these models. It can equivalently expressed as the interaction between the potential of the explicit charge, i.e., the vacuum potential, and the polarization density.
As established in the previous section, everywhere inside for all models implemented in Environ and and everywhere outside. This means that the integrand in the right hand side expression of the above equation vanishes everywhere inside both for the smoothened and original potential and density, and it is equal to its nonsmoothened counterpart everywhere outside. The electrostatic solute-solvent interactions for the original and smoothened density are, thus, equal.
Beyond these electrostatic interactions, the total free energy may contain a confining potential,4 the electrostatic energy, chemical potential and entropy of an electrolyte, or a non-electrostatic contribution in the form of an effective pressure and an effective surface tension1 applied to the cavity volume and surface area. All of these terms are computed as volume integrals. In all of them, the integrand depends locally only on quantities which we have already established to be equivalent between the smoothened and non-smoothened case everywhere outside. Specifically, these are and for the confining potential, and for the electrolyte terms, for the volume, and for the surface area. Furthermore, all integrands vanish inside by construction except for the cavity volume. However, the integrand inside is simply in this case, both in the smoothened and the non-smoothened case. Therefore, .
Kohn-Sham potential
The KS potential is given by the functional derivative
where the potential energy is simply the energy without the KS kinetic energy , with being the energy expression that is minimized by using in the KS equations. In our context, this can be either in vacuum or in solution. In the former case, the potential is given by
with the functional derivative of the exchange-correlation (xc) energy . With continuum embedding, it is given by
contains . Additionally, it may contain any functional derivatives due to an electron density dependent cavity definition in SCCS2 including non-electrostatic terms as well as the confining potential if the respective methods are used.
depends only on and is computed in FHI-aims, without any smoothing. It is, therefore, fully contained in . Furthermore, is actually the functional derivative of , see also section S3.
This allows us to directly relate to
We have already established that . This is true for any electron density, not just ground- or other eigenstates. Therefore, regardless of the chosen perturbation, and consequently .
Forces
The electrostatic forces in Environ can equivalently be expressed through the solute charge density and solvent potential or vice versa
is the gradient with respect to . It can be seen in the right hand side formulation that, in analogy to eq. (45), the integrand vanishes inside and is equal to its original counterpart outside.
Additional terms may emerge due to an explicit dependency of on the nuclear coordinates. Similarly to the additional free energy contributions discussed in section S1.2, these are evaluated as volume integrals the integrands of which vanish inside and locally depend only on smoothened quantities which are equal to their original counterparts outside. Therefore, .
Continuity of multipole components and their derivatives at the origin
The smoothened multipole components follow the general form
with a polynomial
Throughout this section, we use the shorthand notation for the polynomial that is called in the main article, do not explicitly denote , and drop the subscript in the spherical coordinates , for reasons of clarity. It is implied that depends on , and , that lies inside the cutoff radius, and that the coordinate system is shifted to have atom at the origin. The gradient of eq. (53) is given by
with and the unit vector pointing in the direction of the point . We point out that the index does not denote a dependency and the unit vector is, in fact, a function only of . The Hessian is given by
with the identity matrix and . We want to be continuous and twice continuously differentiable. Because fulfills these continuities and fulfills them , their product also fulfills them as long as it fulfills them for . In other words, we want the limit of and its gradient and Hessian for to exist and be independent of :
where for we insert eqs. (S16), (S18), and (S19). We note that while and are discontinuous at , they do not depend on and can be separated out of the limit. The gradient of the spherical harmonics is given by
where and are the polar and azimuthal components of and are the corresponding unit vectors. We point out that, like , these unit vectors are functions only of but not of . Realizing that the derivative with respect to vanishes because does not depend on it, we find that the gradient can be rewritten as
with some vector valued function which does not depend on . For the same reasons of vanishing dependencies, we find the Hessian of the spherical harmonics to be
with some matrix valued function which does not depend on . We notice that the limits
exist because all dependencies on cancel. This means that the limits in eq. (57) exist as long as the -dependent terms in eqs. (53), (S18), and (S19)
do not diverge at . This is the case if . This is also sufficient for the limits of the value and gradient of to be zero at the origin, fulfilling eq. (57). If, additionally, , the Hessian is also zero and therefore continuous at the origin.
While is a sufficient condition for to be continuous and twice continuously differentiable, it may not always be a necessary one. This can be shown using a substitution
We can rewrite
with the regular solid harmonic function
where is a normalization constant. are continuous and continuously differentiable to infinite order , including . The gradient of eq. (70) is given by
The Hessian is given by
There is a difference in eqs. (53), (55), and (56) compared to eqs. (70), (72), and (73). While the limits of the terms , , and exist, they do depend on . In other words, these terms are discontinuous at . By contrast, the terms , , and are continuous at the origin, making the check. for a condition equivalent to eq. (57) trivial. We can directly see that eqs. (70), (S29), and (S30) are continuous if the terms
are continuous. There are three kinds of coefficients which never occur as coefficients of a diverging term in the above formulas. First, occurs only as a constant in and vanishes in the derivatives. Second, occurs as the coefficient of in , as a constant in , and cancels in . Finally, with occur as coefficients of with in all three terms.
Therefore, is continuous and twice continuously differentiable at if
This is, again, a sufficient but not necessary condition. For most , this is more restrictive than , as we determined using eqs. (53) and (S18) to (S20). For , however, we find additional terms which may be non-zero. By separating the low and high order terms
with
we can see that is continuous and twice continuously differentiable at the origin.
and its derivatives are trivially continuous if . In the special cases of , however, is still continuous if (and for ) is non-zero.
We have four additional conditions to enforce, namely the continuity of the value, gradient, and Hessian of at and the conservation of the long range multipole moment. Note that the continuities in angular direction are always fulfilled due to the continuity of , so only the continuity in needs to be enforced. In order to have 4 free parameters, we choose for , for and , and for .
Energy in vacuum
The total energy of a KS DFT calculation in vacuum, i.e., without continuum embedding, is given by
where is the full explicit charge density with the nuclear charge density , is the Kohn-Sham kinetic energy of the electrons, is the xc energy, and is the electrostatic potential generated by . It is implied here and in the following that the first integral and similar terms do not include the interaction of any nucleus with its own singularity. In practice, is obtained from the sum of KS eigenvalues weighted by occupation numbers
which follows from the KS equations and contains as well as the interaction of the electrons with the effective potential which enters the KS operator. Equation (S35) holds for any . To arrive at eq. (S34) in a vacuum calculation, the interaction with is replaced with , the double counting of the electron-electron interaction is removed, and the electrostatic interaction between the nuclei is added.
The first integral is more general than the more conventional formulation , and ensures that eq. (S36) yields eq. (S34) for any , not just eq. (S11). In practice, is not computed as a difference but rather by considering individually any terms that enter , except . In the case of a vacuum calculation using eq. (S11), the conventional formulation is recovered. In the case of an embedded calculation using eq. (S12), however, an additional term emerges.
FHI-aims uses the above formulation for the second and third integral which conveniently uses only the full electrostatic potential rather than considering the electronic and nuclear potentials separately. To arrive at this formulation, half of the electron-nuclear interaction is subtracted from the electron-electron double counting correction and added to the nuclear-nuclear term, effectively adding zero to the overall expression.
In practice, replacing the electron density with the multipole density in the double counting correction for the electron-electron interaction as well as the solvent potential correction leads to a faster convergence with the multipole expansion order, as discussed in ref. 2 as well as § 4.3 in the main article.
Separation of smoothing region from solvent
We tested whether our choice of safely remains inside for the standard parameterizations of SCCS[1] and SSCS[8], a reparameterization of SCCS for electrochemical applications,[9] and the field-aware modification of SSCS.[10] The test systems were a water molecule and a NaF dimer at Å separation. The field-aware SSCS was only tested for the water molecule, as no parameterization for systems containing both anions and cations was available. Additionally, we tested the anion/cation specific parameterizations of SCCS,[11] SSCS, and field-aware SSCS on a single F/Na ion, respectively. We did not test the solvent-aware modification[12] of either method as it generally only excludes points from the solvent and assigns them to the cavity but not vice versa. For these initial tests, we used values of Ry for the space cutoff, , for the low-pass filter, and the conjugate-gradient electrostatic solver throughout, with one exception described in Figure S7. As shown in section 4.2 in the main article, we later found that these settings are not sufficient to yield converged energies and forces for some of the parameterizations and systems. However, does not depend on these parameters, and will only get narrower with increased , cf. eq. (26) in the main article. Therefore, these tests are sufficient to demonstrate that remains inside.
Figure S7. Like Figure S1 for an cation. SCCS with cation specific parameters[11] (top), SSCS with cation specific parameters[8] (middle), field-aware SSCS with ‘water (+)’ parameters[10] (bottom). For SCCS, Environ’s ‘env ecut’ parameter had to be increased to 450 Ry for the SCF procedure to converge.
The results for the water H atom in SCCS and SSCS are shown in fig. 2 in the main article. The results for the O atom in the same systems, as well as for all other systems and solvent parameterizations are shown below. The only cases where the solvent region was found to penetrate into were the ion specific parameterizations of field-aware SSCS. However, these were originally parameterized using only a single OH/HO ion as a reference. Once a general parameterization of field-aware SSCS becomes available, it may be worth revisiting our choice of . At the present time, we refer the user to the option of manually choosing if any issues arise. Even with our default choice, the overlap of the smoothing region with the cavity function is rather small. For all other cases, we found to be at a safe distance from the cavity boundary.
We do, however, observe an overlap of with the solvent in some cases. This is generally not a desirable feature because, as elaborated in section 3.4 in the main article, one of the purposes of the switching function is to exclude integration errors outside which cannot be exactly compensated by corrections inside . Nonetheless, we point out that enters eq. (20) in the main article merely as a weighting function for integration errors. The errors themselves may still be systematically reduced by choosing a denser grid in Environ. In addition, this will also lead to a narrower transition region of beyond , reducing its overlap with the solvent.
Figure S2. Like Figure S1 with the switching function and radii of one H atom. Electrochemical parameterization of SCCS from ref. 9 (top) and field-aware modification of SSCS, cf. ref. 10, ‘water’ parameters in Table 1 therein (bottom).
Figure S1. Like Figure 2 in the main article but with the switching function and radii of the O atom. Contrast in left subfigures identical to Figure 2. Contrast in right subfigures set to maximum value of displayed data and indicated by colorbar (or if numerically zero as is the case here, but non-zero in some of the cases below).
Figure S3. Like fig. S2 with the switching function and radii of the O atom.
Figure S5. Like Figure S4 with the switching function and radii of the Na atom.

Figure S4. Like fig. S2 for a NaF dimer at 2 Å separation (Na: violet, F: green). SCCS (top), electrochemical reparameterization of SCCS[9] (middle), and SSCS (bottom). Switching function and radii of F atom.
Figure S6. Like Figure S1 for an F anion. SCCS with anion specific parameters[11] (top), SSCS with anion specific parameters[8] (middle), field-aware SSCS with ‘water (-)’ parameters[10] (bottom).
k grid convergence for CO on Pt(111)
Starting from the Gamma point, we increased the number of grid points on both in-plane axes simultaneously in steps of 2 up to 19. This was tested separately for SSCS and SCCS. As shown in Figure S8, total energies are converged to 1 meV accuracy with a grid.

Figure S8. Convergence of total energy with number of in-plane points for CO on Pt(111). Dashed lines at energy for grid as visual guidelines.
Additional figures
Energy convergence with grid density, low-pass filter (SSCS)

Figure S10. Like Figure S9, for a NaF dimer in SSCS.
Figure S9. Convergence with of total energy and its contributions as reported in the FHI-aims output file using different low-pass filter settings for a water molecule in SSCS. Constant ‘free atom’ contribution not shown. Dashed line shows mean value across and filters over the three highest . Note the different energy scales of the second and third row of subfigures. Shaded area indicates the energy scale covered in the other subfigures (10 meV)

Figure S11. Like fig. S9, for a PtCO trimer in SSCS.
Force convergence with grid density, low-pass filter (SSCS)
Figure S13. Like Figure S12, for the O atom.
Figure S12. Convergence with of total force (Euclidean norm) acting on one H atom (other H atom equivalent) and its contributions as reported in the FHI-aims2 output file using different low-pass filter settings for a water molecule in SSCS. Dashed line shows mean value across and filters over the three highest .

Figure S14. Like Figure S12, for the Na atom in a NaF dimer.

Figure S15. Like Figure S12, for the F atom in a NaF dimer.

Figure S16. Like fig. S12, for the Pt atom in a PtCO trimer.

Figure S17. Like fig. S12, for the C atom in a PtCO trimer.

Figure S18. Like Figure S12, for the O atom in a PtCO trimer.
Energy convergence with grid density, low-pass filter (SCCS)

Figure S20. Like Figure S19, for a NaF dimer in SCCS.

Figure S19. Convergence with of total energy and its contributions as reported in the FHI-aims output file using different low-pass filter settings for a water molecule in SCCS. Constant ‘free atom’ contribution not shown. Dashed line shows mean value across and filters over the three highest . Note the different energy scales of the second and third row of subfigures. Shaded area indicates the energy scale covered in the other subfigures (10 meV)
Figure S21. Like Figure S19, for a PtCO trimer in SCCS.
Force convergence with grid density, low-pass filter (SCCS)
Figure S23. Like fig. S22, for the O atom.

Figure S24. Like Figure S22, for the Na atom in a NaF dimer.

Figure S22. Convergence with of total force (Euclidean norm) acting on one H atom (other H atom equivalent) and its contributions as reported in the FHI-aims output file using different low-pass filter settings for a water molecule in SCCS. Dashed line shows mean value across and filters over the three highest .

Figure S25. Like Figure S22, for the F atom in a NaF dimer.

Figure S26. Like Figure S22, for the Pt atom in a PtCO trimer.

Figure S27. Like Figure S22, for the C atom in a PtCO trimer.

Figure S28. Like Figure S22, for the O atom in a PtCO trimer.
Energy convergence with multipole order (SSCS)

Figure S30. Like Figure S29, for a NaF dimer in SSCS.

Figure S29. Convergence with of total energy and its contributions as reported in the FHI-aims{sup}2` output file using different ways of computing the solvent-electron double counting correction for a water molecule in SSCS. Constant ‘free atom’ contribution not shown. Note the different energy scales of the second and third row of subfigures. Shaded area indicates the energy scale covered in the other subfigures (10 meV)

Figure S31. Like Figure S29, for a PtCO trimer in SSCS.
Force convergence with multipole order (SSCS)

Figure S33. Like Figure S32, for the O atom.

Figure S32. Convergence with of total force (Euclidean norm) acting on one H atom (other H atom equivalent) and its contributions as reported in the FHI-aims2 output file using different low-pass filter settings for a water molecule in SSCS.

Figure S34. Like Figure S32, for the Na atom in a NaF dimer.

Figure S35. Like fig. S32, for the F atom in a NaF dimer.

Figure S36. Like Figure S32, for the Pt atom in a PtCO trimer.
Figure S37. Like fig. S32, for the C atom in a PtCO trimer.
Figure S38. Like Figure S32, for the O atom in a PtCO trimer.
Energy convergence with multipole order (SCCS)
Figure S40. Like Figure S39, for a NaF dimer in SCCS.
Figure S39. Convergence with of total energy and its contributions as reported in the FHI-aims[2] output file using different ways of computing the solvent-electron double counting correction for a water molecule in SCCS. Constant ‘free atom’ contribution not shown. Note the different energy scales of the second and third row of subfigures. Shaded area indicates the energy scale covered in the other subfigures (10 meV)
Figure S41. Like fig. S39, for a PtCO trimer in SCCS.
Force convergence with multipole order (SCCS)
Figure S43. Like Figure S42, for the O atom.
Figure S42. Convergence with of total force (Euclidean norm) acting on one H atom (other H atom equivalent) and its contributions as reported in the FHI-aims output file using different low-pass filter settings for a water molecule in SCCS.
Figure S44. Like Figure S42, for the Na atom in a NaF dimer.
Figure S45. Like Figure S42, for the F atom in a NaF dimer.
Figure S46. Like Figure S42, for the Pt atom in a PtCO trimer.
Figure S47. Like Figure S42, for the C atom in a PtCO trimer.
Figure S48. Like Figure S42, for the O atom in a PtCO trimer.
Low-pass filter
Figure S49. Differences between ‘FHI-aims, FFT, low-pass’ and ‘FHI-aims, FFT’ (left) as well as ‘FHI-aims, FFT, low-pass’ and ‘FHI-aims, direct’ (right) subfigures of Figure 3 in the main article in the main article. Contrast of colormaps arbitrary but identical to Figure 3 in the main article.
Figure S50. Like Figure 3 in the main article but showing instead of . In the bottom left, was computed by FHI-aims directly and passed to Environ but was computed using unfiltered FFT, leading to artifacts.
References
References
- [1]Andreussi, O.; Dabo, I.; Marzari, N. Revised self-consistent continuum solvation in electronic-structure calculations. The Journal of Chemical Physics 2012, 136, 064102.DOI
- [2]Blum, V.; Gehrke, R.; Hanke, F.; Havu, P.; Havu, V.; Ren, X.; Reuter, K.; Scheffler, M. Ab initio molecular simulations with numeric atom-centered orbitals. Computer Physics Communications 2009, 180, 2175–2196.DOI
- [3]Dabo, I.; Cancès, E.; Li, Y. L.; Marzari, N. Towards First-principles Electrochemistry. 2010; https://arxiv.org/abs/0901.0096.
- [4]Ringe, S.; Oberhofer, H.; Hille, C.; Matera, S.; Reuter, K. Function-Space-Based Solution Scheme for the Size-Modified Poisson–Boltzmann Equation in Full-Potential DFT. Journal of Chemical Theory and Computation 2016, 12, 4052–4066.DOI
- [5]Nattino, F.; Truscott, M.; Marzari, N.; Andreussi, O. Continuum models of the electrochemical diffuse layer in electronic-structure calculations. The Journal of Chemical Physics 2018, 150, 041722.DOI
- [6]Andreussi, O.; Fisicaro, G. Continuum embeddings in condensed-matter simulations. International Journal of Quantum Chemistry 2019, 119, e25725.DOI
- [7]Nattino, F.; Dupont, C.; Marzari, N.; Andreussi, O. Functional Extrapolations to Tame Unbound Anions in Density-Functional Theory Calculations. Journal of Chemical Theory and Computation 2019, 15, 6313–6322.DOI
- [8]Fisicaro, G.; Genovese, L.; Andreussi, O.; Mandal, S.; Nair, N. N.; Marzari, N.; Goedecker, S. Soft-Sphere Continuum Solvation in Electronic-Structure Calculations. Journal of Chemical Theory and Computation 2017, 13, 3829–3845.DOI
- [9]Hörmann, N. G.; Andreussi, O.; Marzari, N. Grand canonical simulations of electro- chemical interfaces in implicit solvation models. The Journal of Chemical Physics 2019, 150, 041730.
- [10]Truscott, M.; Andreussi, O. Field-Aware Interfaces in Continuum Solvation. The Journal of Physical Chemistry B 2019, 123, 3513–3524.
- [11]Dupont, C.; Andreussi, O.; Marzari, N. Self-consistent continuum solvation (SCCS): The case of charged systems. The Journal of Chemical Physics 2013, 139, 214110.DOI
- [12]Andreussi, O.; Hörmann, N. G.; Nattino, F.; Fisicaro, G.; Goedecker, S.; Marzari, N. Solvent-Aware Interfaces in Continuum Solvation. Journal of Chemical Theory and Computation 2019, 15, 1996–2009.arxiv.org/abs/1901.08138