Abstract
The solvation free energy (SFE) of molecules and ions is a fundamental property governing their solvation behavior and solubility. Molecular simulations offer a route to compute SFEs using alchemical free energy methods such as thermodynamic integration or free energy perturbation. However, these methods suffer from the infamous end-point singularity, which leads to numerical instability when atoms approach closely, a challenge that becomes particularly acute in ab initio and machine-learning molecular dynamics simulations. Here, we introduce the bubble method to calculate the SFEs of molecules and ions from first-principles. Our approach avoids the end-state problem in both ab initio and machine-learning molecular dynamics simulations and is applicable to molecules and ions of arbitrary shape. When calculating the SFEs of ions using periodic density functional theory, we incorporate corrections for the neutralizing background charge, spurious interactions between periodic images, and the vacuum-water interface potential. To validate our method, we successfully computed the SFEs of methane, methanol, water, piperazine, and sodium and potassium ions using classical, ab initio, and machine-learning molecular dynamics simulations. Importantly, our method requires no experimental input or empirical data. This makes it particularly well-suited for studying systems under extreme conditions, such as high-pressure–temperature environments or under nanoconfinement, situations where experimental investigations are challenging and classical force fields, typically parametrized under ambient conditions, may be unreliable.


Introduction
The maximum amount of a solute that can dissolve in a given solvent, defined as solubility, is a fundamental property driving processes in drug bioavailability, industrial extraction and purification, and geochemical systems. At the molecular level, this macroscopic phenomenon is governed by the solvation free energy (SFE), which quantifies the free energy change during the transfer of a solute from a vacuum into a solvent. In aqueous systems, this critical parameter is specifically termed the hydration free energy. − Experimental measurements of SFEs are often challenging due to methodological uncertainties, particularly under elevated pressure (P) and temperature (T) conditions. Thus, accurate molecular-level calculations offer a very valuable alternative for determining these properties.
Implicit solvation models are widely used to compute solvation free energy (SFE) due to their efficiency. − SFE is split into polar and nonpolar parts, typically modeled using the generalized Born (GB) approximation and solvent-accessible surface area, respectively. These methods may also integrate with electronic structure calculations like density functional theory (DFT). , However, they rely on empirical parameters and ignore molecular solvent structure, limiting their accuracy under nonambient conditions such as extreme pressures, temperatures, or nanoconfinement.
With growing computational resources, explicit solvent models using molecular dynamics (MD) or Monte Carlo (MC) simulations are now widely used to compute solvation free energies (SFEs) via alchemical free energy methods, e.g., thermodynamic integration or free energy perturbation. − Databases such as FreeSolv provide reference SFEs for neutral molecules from classical force fields and experiments. A key challenge for those methods is the end-point singularity: at full decoupling, Coulomb and van der Waals interactions diverge when atoms approach closely. This is addressed in classical force fields by soft-core potentials, which smooth interactions via an intermediate parameter, − the dynamics in an unphysical “fourth dimension”, or serial atomic insertion. The soft-core potentials methods have been implemented in popular codes like GROMACS and LAMMPS. ,
In first-principles DFT or machine-learning calculations, however, the implementation of analogous soft interactions remains an outstanding methodological challenge. In DFT calculations, electronic energies often fail to converge in self-consistent field methods when atoms are too close. Machine-learning potentials generally lack explicit physical forms for Coulomb and van der Waals interactions. Furthermore, their training data, derived from DFT or other high-level methods, rarely include configurations with extremely close atoms. As a result, machine learning potentials give unphysical energies when applied to such out-of-distribution geometries and thus need additional adjustments. − An alternative method to solve the end-state problem is to construct a fictitious cavity around the solute molecule, thereby decomposing the alchemical free energy calculation into a series of subprocesses. − This cavity method has been applied to compute SFEs of monatomic ions using first-principles MD simulations. However, for solute molecules or ions lacking spherical symmetry, this approach may exhibit numerical instability when employed in first-principles MD frameworks.
Here, we introduce the bubble method (Figure ) to calculate the SFEs of molecules and ions from first-principles. Our method can avoid the end-point singularity in the alchemical free energy methods and is applicable to a wide range of molecular and ionic shapes and can be directly implemented in both ab initio and machine learning MD simulations. For calculating the SFEs of ions within periodic DFT, we incorporate corrections for the neutralizing background charge, spurious interactions between periodic images, and the vacuum-water interface potential. Importantly, our method does not rely on any experimental inputs or empirical data. This makes it particularly well-suited for studying systems under extreme conditions, such as high-pressure–temperature environments or under nanoconfinement, where experimental investigations are challenging and classical force fields, typically parametrized under ambient conditions, may be unreliable.
1.

Schematic illustration of the bubble method scheme. (a) In the absence of solute–solvent interactions, a spherical bubble forms and expands around each atom in the solute molecule. (b) The bubbles reach their predefined maximum radius. (c) The bubbles begin to shrink, and the solute–solvent interactions are gradually switched on. (d) The bubbles have fully collapsed, and the system has returned to its fully interacting state.
Results and Discussion
Bubble Method
Here we apply the thermodynamic integration (TI) method to calculate the SFE (Figures and ), which creates a fictitious Hamiltonian H(λ) as a function of the coupling parameter λ. For the end state at λ = 0, the Hamiltonian H(0) = H m + H w represents the system where the solute molecule and solvent are noninteracting, while at λ = 1, the Hamiltonian H(1) = H mw describes the fully solvated state, where the solute is fully dissolved and interacting with the solvent. Here we use the subscripts m, w and mw to denote the solute molecule, the solvent (e.g., water), and the solution system, respectively. The parameter λ, which runs from 0 to 1, represents a thermodynamic coupling process in which the interactions between the solute molecule and the solvent are gradually switched on. The free energy change for this process can be computed using the thermodynamic integration formula:
| 1 |
where the angle brackets ⟨⟩ denote an ensemble average, typically sampled via molecular dynamics or Monte Carlo simulations.
2.
Integrands used in the thermodynamic integration to calculate the solvation free energy in the bubble method. (a) Expanding process of CH4(aq); (b) Switching process of CH4(aq); (c) Expanding process of H2O(aq); (b) Switching process of H2O(aq).
3.
Integrands used in the thermodynamic integration and corrections to calculate the intrinsic solvation free energy of Na+(aq) in the bubble method: (a) expanding process, (b) switching process, (c) background correction, (d) ion–ion correction.
A common and straightforward choice for the Hamiltonian is the linear coupling form:
| 2 |
Substituting this into the integral yields
| 3 |
where E x represents the energy corresponding to the Hamiltonian H x .
However, this approach suffers from an end-state problem at λ = 0. In certain configurations, particularly when atoms of the solute and solvent closely approach or overlap, the energy difference E mw – E m – E w can diverge. This singularity makes the integral in eq challenging to evaluate numerically.
To solve this issue, we introduce an artificial repulsive two-body bubble potential, defined as U b (r, λ e ) = u(r)e λ e . This potential acts on every atom pair between the solute molecule and the solvent. Its purpose is to create a “bubble expanding” effect that pushes solvent molecules away from the solute. The intermediate Hamiltonian for this process is then given by
| 4 |
where the parameter λ e varies from –∞ to a finite value λ E . The free energy change of this expanding process is
| 5 |
where we have used the fact that the derivative of U b with respect to λ e is U b itself. The two integral end points, –∞ and λ E , correspond to 0 and 1, respectively, in eq . At this stage, there is no interaction between solute and solvent molecules. In numerical calculations, we can begin with a highly negative value of λ e , making the sum of U b negligibly small. Then, we select a series of equally spaced λ e values for separate simulations. This approach avoids the potential divergence of H mw .
Once the bubbles reach an appropriate size, we proceed to the next “switching” step. In this stage, we gradually turn on the interaction between the solute and solvent while simultaneously turning off all bubble potentials. We choose the simple linear form
| 6 |
where H b is the sum of fully expanded bubble potentials in the last step of expanding:
| 7 |
Note that λ E is fixed when varying λ s in eq . The free energy change becomes
| 8 |
If the bubbles expand sufficiently, the end-state problem at λ s = 0 is avoided. It is suggested to choose a proper λ E value so that the distance between solute and solvent molecules is similar to the average distance when the solute and solvent molecules interact physically. In numerical calculations, λ E cannot be too large or too small: a value that is too large makes the numerical integral in the expansion process hard to converge, while a value that is too small leads to instability in the switching process (see the Supporting Information).
Alternatively, the switching step can be split into two separate steps: first, turning on the solute–solvent interaction, and then turning off the bubble potentials. The total free energy change from these two steps should be consistent with ΔG s , as free energy is a state function and independent of the path taken. However, this approach may introduce additional statistical uncertainties and increase computational cost.
The SFE can be calculated by the sum of the two steps,
| 9 |
The remaining question lies on the form of u(r), which, in principle, does not affect the final result of SFE. An important requirement is that u(r) must be finite when r is small; otherwise the end-point singularity persists. In this study we mainly used the form u(r) = e–r/r 0 , where r 0 = 0.2 Å–1. This is similar to the Buckingham potential, where the r –6 term is set to 0. We also tested other parameter values and potential forms, such as the Gaussian form u(r) = e–Br 2 , the exponential cubic form u(r) = e–Br 3 and the Fermi–Dirac potential u(r) = 1/(e B(r–r 0) + 1), in classical force field simulations. The details of these tests are shown in the Supporting Information. Our results show that the choice of parameters and potential forms does not significantly affect the final SFE. In the previous cavity method, the spherical cavity centered at the molecule was required to enclose the entire molecule. , This poses challenges for numerical stability and statistical sampling when the molecule is nonspherical and the simulation box is small, as is often the case in AIMD simulations.
Solvation Free Energies of Neutral Molecules
We selected three neutral molecules, methane, methanol, and water, to test our bubble method (Figure ). While methane does not dissolve in water under ambient conditions, the other two do. Table shows the calculated results by the classical OPLS-AA force field, and PBE-D3 and revPBE-D3 exchange-correlation functionals, in comparison with experimental values at T = 300 K and P = 105 Pa.
1. Solvation Free Energies of Neutral Molecules and Na+ Obtained by the Classical OPLS-AA Force Field, and PBE-D3 and revPBE-D3 Exchange Correlation Functionals .
| molecule | OPLS-AA | PBE-D3 | revPBE-D3 | expt |
|---|---|---|---|---|
| CH4 | 2.28(0.08) | 0.69(0.21) | 1.92(0.13) | 2.0 |
| CH4 (sc) | 12.45(0.08) | 10.63(0.23) | –11.10(0.28) | |
| CH3OH | –4.29(0.15) | –10.51(0.31) | –6.33(0.28) | –5.1 |
| H2O | –5.82(0.07) | –8.61(0.53) | –7.05(0.34) | –6.3 |
| (CH2CH2NH)2 | –6.95(0.12) | –13.64(0.53) | –10.17(0.54) | –7.4 |
| Na+ | –91.21(1.06) | –88.10(0.85) | –103.2∼−87.2 | |
| K+ | –69.35(1.08) | –86.0∼−74.3 |
Experimental values of the neutral molecules, except piperazine ((CH2CH2NH)2), are from ref and piperazine from ref . The experimental value ranges of Na+ and K+ are from refs and , respectively. Simulation uncertainties were estimated by using the blocking method and error propagation rules (unit: kcal/mol).
We found that the OPLS-AA force field yields the highest SFE, followed by revPBE-D3 and PBE-D3. Among these, OPLS-AA and revPBE-D3 show closer agreement with the experimental values. The nonpolar methane molecule has a positive SFE, meaning that it is more energetically favorable for methane to remain in the dilute gas phase than to dissolve in water. The polar water and methanol molecules containing an −OH group have negative SFEs and are easier to be dissolved into water. For the methane molecule, we also calculated its SFE at a supercritical condition (sc) at T = 1000 K and P = 1 GPa. Results of three methods are around 12 kcal/mol, which are 10 kcal/mol higher than those under ambient conditions.This indicates that it is less favorable for methane to move from the dilute gas phase into water at this high temperature than under ambient conditions. This does not mean, however, that methane is less soluble at this supercritical condition than at ambient conditions.
We further compared our method with the cavity method on piperazine ((CH2CH2NH)2), a six-membered heterocyclic organic compound. It is less spherical than the other tested molecules. The SFE obtained using our bubble method is −6.95 ± 0.12 kcal/mol, which agrees well with the experimental value of −7.4 kcal/mol. In contrast, the cavity method using the same artificial two-body potential, u(r)e λ e , failed to yield a converged result when using 512 water molecules in a simulation box. When we turned on the real physical interactions between the solvent and solute, we need a large enough cavity, i.e. a large λ E , to maintain proper distances between solvent and solute molecules to avoid the dramatic change of the integral in the thermodynamic integration. However, a large λ E causes the integrand to vary too much during the cavity expanding process, which again leads to numerical convergence problems. As a comparison, our method works with λ E = 9.90, while the cavity method cannot obtain an integrable curve even with λ E = 20.72 (see Figure S3(c) in the Supporting Information). This test shows that our method is more numerically stable than the previous cavity method. The likely reason is that the atom pair interactions in the bubble method can delicately control the atomic distances between solute and solvent without seriously disrupting the solvation structure.
H2O with the Neural Network Potential
Machine-learning techniques are now widely applied to construct potential energy surfaces using training data from first-principles calculations. , This involves mapping atomic configurations into symmetry-invariant descriptors that are then used to predict the corresponding DFT-level energies and forces. This machine-learning approach achieves an accuracy comparable to first-principles methods while offering a significant improvement in computational efficiency. For example, Schran et al. trained a committee neural network potential (CNNP) model for water using the DFT data obtained from the revPBE0-D3 functional, which is one of the most accurate functionals for water systems.
Here we demonstrate that our bubble method can be seamlessly integrated with a machine learning potential. As an example, we applied the pretrained Generation-1 CNNP model, which treats nuclei classically, to calculate the SFE of a water molecule. While the CNNP model accurately describes bulk water, it performs poorly for a single water molecule (see the Supporting Information). This is because the model was primarily trained and optimized on bulk water properties. Specifically, the average standard deviation across the 8 committee models for a single water molecule is as high as 5 kcal/mol, which could significantly impact the accuracy of the SFE calculation, so we directly calculated E m using DFT with the revPBE0-D3 functional, and used the CNNP model to obtain E w and E mw . The expanding and switching free energies were calculated as 4.588 ± 0.159 kcal/mol and −9.705 ± 0.357 kcal/mol, respectively, resulting in the SFE of −5.118 ± 0.391 kcal/mol. This value is slightly less negative than the experimental one (−6.3 kcal/mol).
If the neural network potential was trained including the monomer water data, then we do not need to calculate E m using DFT. However, training such a neural network potential would be more difficult because potential descriptors are usually based on the local intermolecular environment of water molecules, which an isolated molecule lacks. A purely neural-network approach is not necessary. The main advantage of neural network potentials is that they can handle much larger systems accurately and efficiently, whereas calculating isolated molecules using DFT is computationally inexpensive.
Solvation Free Energy of Charged Ions
The calculation of SFEs for ions presents greater challenges than those for neutral molecules, both experimentally and computationally. By definition, the absolute SFE of an ion corresponds to the free-energy change associated with transferring the ion from the gas phase into an infinitely dilute solution. However, neither reference state is experimentally accessible as an equilibrium system: isolated ions in the gas phase tend to associate with counterions, whereas ions in solution inevitably exist at finite concentrations near charged interfaces. Consequently, absolute ionic SFEs cannot be measured directly but must instead be inferred through combinations of equilibrium measurements, spectroscopic data, and thermodynamic cycles.
In periodic DFT simulations, additional complications arise. The presence of a net charge necessitates corrections for both the neutralizing background charge and spurious interactions between periodic images. Moreover, because the electrostatic potential differs between vacuum and bulk water, a charged ion crossing the vacuum–water interface experiences a potential step, contributing to the overall solvation free energy. As a result, the experimental SFE of an ion is typically decomposed into two components: a bulk contribution arising from ion–water interactions in the interior (the intrinsic SFE), and a surface contribution originating from the vacuum–water interfacial potential. A range of methodological approaches have been developed to compute ionic SFEs, spanning classical force fields to DFT-based methods, and from continuum solvation models to fully atomistic explicit solvent representations. These studies have incorporated various correction schemes to address the aforementioned challenges. ,,,− It is more challenging to apply the corrections in periodic DFT calculations than in classical force fields. ,− Unlike in many classical force field simulations, where a charged ion is treated as a point charge with a fixed value, DFT calculations cannot ignore charge transfer between ion and water. The charge on the ion is strongly influenced by the configuration of its surrounding water molecules and the polarizability of the ion itself.
When calculating the SFE of a charged ion using our method, we cannot directly evaluate the energy difference as in eq , because the charged and neutral systems have different energy references in DFT calculations with periodic boundary conditions. This issue is analogous to the treatment of charged defect formation energies in solids. To address this, we introduce two correction terms:
| 10 |
where E corr corrects for the fictitious interaction between the ionic charge and the neutralizing background charge, and E corr accounts for the electrostatic interaction between the ion and its periodic images.
Periodic DFT calculations introduce a uniform background charge to neutralize the net charge in the unit cell, which leads to the fictitious interaction between the net charge and the background charge in the electrostatic energy (referred as the Hartree energy here). The solvation Hartree energy difference in eq is calculated as
| 11 |
where E iw is the total electrostatic energy of the ion in water (iw), E i is the ion energy (i), and E w is for pure water (w). Considering the background neutralizing charge, we can decompose those Hartree energies as
| 12 |
| 13 |
| 14 |
where the subscript b refers to the background charge. In periodic DFT, each Hartree term can be calculated as the electrostatic energy between the charge density ρ x and potential V y generated by the charge density ρ y
| 15 |
where the integral is calculated in one unit cell with the volume of Ω, and ρ̃(G) is the Fourier transform of ρ(r) in reciprocal space. Note that the charge density ρ(r) contains both electronic and nuclear charges. It is obvious that E x–y = E y–x . It is worth noting that although E iw and E i are finite, each single term on the right-hand side of eqs and diverges due to the nonzero net charge (ρ̃ x (G = 0) ≠ 0 for x ∈ {iw, i, b}).
After substituting eqs , , and into eq , we obtain
| 16 |
where the first term is the true electrostatic energy difference during solvation, and the second term accounts for the fictitious interactions with the background charge. Thus, the correction term E corr in eq is
| 17 |
where the background charge , and q is the net charge of the ion in water. The potentials V̅ iw and V̅ i are the spatially averaged local potential in the ion–water and isolated ion systems, respectively, both of which are readily available in DFT calculations.
The other correction term E corr comes from the electrostatic interaction between the ion and its periodic images. Experimental measurements are typically performed at low ion concentrations and subsequently extrapolated to the infinite dilution limit. In periodic DFT calculations, a low ion concentration requires a large unit cell, which is computationally expensive. The first term in eq is
| 18 |
We consider the true electrostatic energy difference during solvation without ion–ion interactions as
| 19 |
which represents the interaction energy between the charge density difference induced by solvation and the electrostatic potential of bulk water. Thus, the correction
| 20 |
where δV(r) = V iw (r) – V w (r).
The expanding, switching free energy values with the two corrections in eq are listed in Table . Because there is only one ion in the unit cell, the bubble does not need to expand significantly, resulting in a small expansion free energy (ΔG e ), as shown in Figure . Additionally, the background charge correction (E corr ) is also small, suggesting that the spatially averaged local potentials differ little between the isolated and dissolved ions. The switching contribution, accounting for ∼160 kcal/mol to the SFE, is the dominating part. The ion–ion correction term, E corr , further reduces the SFE by about 20 kcal/mol.
2. Contributions to the Solvation Free Energy of Na+ .
| ion | functional | ΔG e | ΔG s | E corr | E corr | V s(V) | ΔG solv |
|---|---|---|---|---|---|---|---|
| Na+ | PBE+D3 | 1.22(0.09) | –162.35(0.53) | 0.35(0.07) | –21.82(0.98) | 3.963 | –91.21(1.06) |
| Na+ | revPBE+D3 | 0.82(0.05) | –160.667(0.40) | –0.11(0.01) | –14.88(0.91) | 3.761 | –88.10(0.85) |
| K+ | PBE+D3 | 1.18(0.09) | –142.52(0.51) | 0.24(0.07) | –19.64(0.95) | 3.963 | –69.35(1.08) |
All values are in kcal/mol, except for the surface potential (V).
Surface Potential of Vacuum–Water Interface
In the experimental measurement of the ion SFE, the solvation process involves crossing the vacuum-water interface, and there is a potential jump at the water surface. This is also referred to as the mean inner potential of water in certain contexts. − Thus, the experimental ion SFE contains the bulk and the surface contributions:
| 21 |
The surface contribution (ΔG surf) is proportional to the potential jump (V s) at the water surface, ΔG surf = qV s. To calculate V s from MD simulations, we built a water slab perpendicular to the z direction. We define an average electrostatic potential ϕ(z) along z-axis as
| 22 |
where A xy is the area of the xy-plane, the double integral represents the spatial average over the xy-plane, ⟨·⟩ denotes the ensemble average. The electrostatic potential in the real space, V(x, y, z) can be obtained by the total charge density using Poisson’s equation or Green’s function
| 23 |
| 24 |
We modifed the CP2K source code to calculate the spatial average ∬dxdy/A xy on the fly during MD simulations.
The ϕ(z) of the water slab obtained using PBE-D3 and revPBE-D3 are shown in Figure . Given the symmetry of the curves about z = 25 Å, all data points are mapped to the left side for least-squares fitting. We used a logistic sigmoid (or hyperbolic tangent) function, as employed by Kathmann, to perform the fitting.
| 25 |
where V 0 is the reference potential, z 0 denotes the position of the symmetry axis for ϕ(z), and β controls the steepness of ϕ(z) variation at the water surface. The fitted surface potentials V s = 3.963 V (PBE-D3) and 3.761 V (revPBE-D3) align with previous computational and experimental values: 3.8 V (PBE), 3.63 V (PBE), 3.5 V (indirect calculation), and 3.5 V (electron holography). ,
4.
z-Dependence of the average electrostatic potential ϕ(z) for water slabs, derived from AIMD simulations and subsequent model fitting. The system consists of 128 water molecules in a unit cell with dimensions 12.41 Å × 12.41 Å × 50 Å. The water molecules aggregate in the center of the cell, forming two distinct vacuum–water interfaces. Two exchange-correlation functionals are compared: (a) PBE-D3 and (b) revPBE-D3.
After considering the potential jump at the water surface, we obtained the SFE of −91.21 ± 1.06 kcal/mol for Na+ with the PBE-D3 functional and −88.10 ± 0.85 kcal/mol with revPBE-D3. These values are within the experimental range shown in Table . Recently, Lin et al. applied the cavity method to obtain the SFE of Na+ as 91.64 kcal/mol using the PBE functional and vdW corrections, which is very close to our value obtained by PBE-D3. In addtion, we tested our method on a second ion K+. Our SFE result is −69.35 ± 1.08 kcal/mol, which is again similar to the value (−65.81 kcal/mol) obtained by the cavity method in Lin et al’s study.
Conclusions
We introduce a numerically stable method for computing SFEs of neutral molecules and ions that can be readily integrated into both ab initio and machine learning MD simulations. This method avoids the end-point singularity in thermodynamic integration and works for any molecular or ionic shape. For ions treated within periodic density functional theory, we explicitly account for three key electrostatic corrections: the neutralizing background charge, finite-size artifacts arising from periodic image interactions, and the vacuum–liquid interface potential. We validated our method by calculating the SFEs of methane, methanol, water, piperazine, Na+, and K+ using classical, ab initio, and machine learning MD simulations. The accuracy of the resulting solvation free energies is determined only by the quality of the underlying potential energy surface (force field parameters or exchange–correlation functional), provided that MD simulations are well converged. Owing to its robustness and minimal reliance on system-specific empirical parameters, this method is especially advantageous for studying solvation under extreme thermodynamic conditions (e.g., high pressure and temperature) or in highly confined environments (e.g., nanopores, interfacial systems), situations where experimental data are scarce and conventionally parametrized classical force fields often become unreliable.
Methods
Classical Molecular Dynamics
We performed classical molecular dynamics simulations using the LAMMPS package. We used the OPLS-AA force field and the TIP3P water model. We used the shake algorithm to constrain their the bonds and angles of water molecules. Our unit cell contains one solute and 512 water molecules with periodic boundary conditions. In MD simulations we equilibrated each system in isobaric–isothermal (NPT) ensemble for 100 ps, followed by another ∼100 ps NPT production run. The time step is 2 fs, the temperature was controlled at 298 K using the Nose-Hoover thermostat, , and pressure was set at 105Pa with the Nose-Hoover barostat.
Ab Initio Molecular Dynamics
We performed ab intio molecular dynamics (AIMD) simulations using the CP2K Quickstep package. , We used the Goedecker–Teter–Hutter (GTH) norm-conserving pseudopotentials to describe core electrons , and a triple-ζ doubly polarized (TZV2P) basis sets to expand the Kohn–Sham orbitals of valence electrons. The electron density cutoff is 340 Ry. We used deuterium instead of hydrogen to make use of a larger time step of 0.5 fs. There are one solute and 64 water molecules in a cubic unit cell with periodic boundary conditions. We applied the PBE and revPBE exchange-correlation functionals with the D3 van der Waals (vdW) correction. We began each AIMD trajectory with an initial NPT simulation of 10 ps. Temperature was regulated using the Bussi-Donadio-Parrinello thermostat (τ = 100 fs), and pressure was controlled via modified Hoover’s equations. We calculated the average cell lengths from the final 5 ps of this trajectory and then performed an NVT simulation for 20 ps using the resulting unit cell dimensions and the same thermostat to compute ensemble averages.
Committee Neural Network Potential
For the water SFE calculations with the committee neural network potential (CNNP) model, we conducted the revPBE0-D3 calculations on both isolated molecules and bulk water (sampled every 100 MD steps) to compare energy differences between the hybrid functional and neural network potential, as shown in Table S5 in the Supporting Information. The bulk water has 64 molecules in the supercell with periodic boudary conditions. Our simulation parameters are the same as in the original CNNP paper: 400 Ry plane-wave cutoff, cpFIT3 auxiliary basis set for ADMM, and 6 Å Coulomb truncation for the Hartree–Fock exchange.
Supplementary Material
Acknowledgments
This work was supported by the Hong Kong Research Grants Council (RGC) (Projects GRF-16301723, GRF-16306621, GRF-16302423, and GRF-16310225) and National Natural Science Foundation of China/RGC Joint Research Scheme (N_HKUST664/24). Part of this work was carried out using computational resources from the National Supercomputer Center in Guangzhou, China, and the X-GPU cluster supported by the RGC Collaborative Research Fund C6021-19EF.
Input files and scripts are provided in the repository: https://github.com/JuntingYu1996/FPSFE.
The Supporting Information is available free of charge at https://pubs.acs.org/doi/10.1021/acs.jctc.6c00692.
Solvation free energy (SFE) of methane in different forms of bubble potential using classical force field methods; Validation of the neural network potential energy for water; Numerical stability in thermodynamic integration (PDF)
The authors declare no competing financial interest.
Published as part of Journal of Chemical Theory and Computation special issue “Developments of Theoretical and Computational Chemistry Methods in Asia”.
References
- Leung K., Rempe S. B., von Lilienfeld O. A.. Ab initio molecular dynamics calculations of ion hydration free energies. J. Chem. Phys. 2009;130:204507. doi: 10.1063/1.3137054. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Luukkonen S., Levesque M., Belloni L., Borgis D.. Hydration free energies and solvation structures with molecular density functional theory in the hypernetted chain approximation. J. Chem. Phys. 2020;152:064110. doi: 10.1063/1.5142651. [DOI] [PubMed] [Google Scholar]
- Duarte Ramos Matos G.. et al. Approaches for calculating solvation free energies and enthalpies demonstrated with an update of the freesolv database. Journal of Chemical & Engineering Data. 2017;62:1559–1569. doi: 10.1021/acs.jced.7b00104. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Shi Y., Beck T. L.. Absolute ion hydration free energy scale and the surface potential of water via quantum simulation. Proc. Natl. Acad. Sci. U. S. A. 2020;117:30151–30158. doi: 10.1073/pnas.2017214117. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Onufriev A.. Implicit solvent models in molecular dynamics simulations: A brief overview. Annual Reports in Computational Chemistry. 2008;4:125–137. doi: 10.1016/S1574-1400(08)00007-8. [DOI] [Google Scholar]
- Decherchi S., Masetti M., Vyalov I., Rocchia W.. Implicit solvent methods for free energy estimation. European journal of medicinal chemistry. 2015;91:27–42. doi: 10.1016/j.ejmech.2014.08.064. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Roux B., Simonson T.. Implicit solvent models. Biophys. Chem. 1999;78:1–20. doi: 10.1016/S0301-4622(98)00226-9. [DOI] [PubMed] [Google Scholar]
- Bashford D., Case D. A.. Generalized born models of macromolecular solvation effects. Annu. Rev. Phys. Chem. 2000;51:129–152. doi: 10.1146/annurev.physchem.51.1.129. [DOI] [PubMed] [Google Scholar]
- Mathew K., Sundararaman R., Letchworth-Weaver K., Arias T., Hennig R. G.. Implicit solvation model for density-functional study of nanocrystal surfaces and reaction pathways. J. Chem. Phys. 2014;140:084106. doi: 10.1063/1.4865107. [DOI] [PubMed] [Google Scholar]
- Sinstein M.. et al. Efficient implicit solvation method for full potential dft. J. Chem. Theory Comput. 2017;13:5582–5603. doi: 10.1021/acs.jctc.7b00297. [DOI] [PubMed] [Google Scholar]
- Lu N., Kofke D. A.. Accuracy of free-energy perturbation calculations in molecular simulation. I. Modeling. J. Chem. Phys. 2001;114:7303–7311. doi: 10.1063/1.1359181. [DOI] [Google Scholar]
- Shivakumar D.. et al. Prediction of absolute solvation free energies using molecular dynamics free energy perturbation and the OPLS force field. J. Chem. Theory Comput. 2010;6:1509–1519. doi: 10.1021/ct900587b. [DOI] [PubMed] [Google Scholar]
- Mezei M.. The finite difference thermodynamic integration, tested on calculating the hydration free energy difference between acetone and dimethylamine in water. J. Chem. Phys. 1987;86:7084–7088. doi: 10.1063/1.452357. [DOI] [Google Scholar]
- Khanna V., Monroe J. I., Doherty M. F., Peters B.. Performing solvation free energy calculations in LAMMPS using the decoupling approach. Journal of Computer-Aided Molecular Design. 2020;34:641–646. doi: 10.1007/s10822-020-00303-3. [DOI] [PubMed] [Google Scholar]
- Wang F., Cheng J.. Automated workflow for computation of redox potentials, acidity constants, and solvation free energies accelerated by machine learning. J. Chem. Phys. 2022;157:024103. doi: 10.1063/5.0098330. [DOI] [PubMed] [Google Scholar]
- Karwounopoulos J., Kaupang A., Wieder M., Boresch S.. Calculations of Absolute Solvation Free Energies with Transformato-Application to the FreeSolv Database Using the CGenFF Force Field. J. Chem. Theory Comput. 2023;19:5988–5998. doi: 10.1021/acs.jctc.3c00691. [DOI] [PMC free article] [PubMed] [Google Scholar]
- He X., Man V. H., Yang W., Lee T.-S., Wang J.. ABCG2: A Milestone Charge Model for Accurate Solvation Free Energy Calculation. J. Chem. Theory Comput. 2025;21:3032–3043. doi: 10.1021/acs.jctc.5c00038. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Chakravorty A., Hussain A., Cervantes L. F., Lai T. T., Brooks C. L. I.. Exploring the Limits of the Generalized CHARMM and AMBER Force Fields through Predictions of Hydration Free Energy of Small Molecules. J. Chem. Inf. Model. 2024;64:4089–4101. doi: 10.1021/acs.jcim.4c00126. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Beutler T. C., Mark A. E., van Schaik R. C., Gerber P. R., Van Gunsteren W. F.. Avoiding singularities and numerical instabilities in free energy calculations based on molecular simulations. Chemical physics letters. 1994;222:529–539. doi: 10.1016/0009-2614(94)00397-1. [DOI] [Google Scholar]
- Zacharias M., Straatsma T. P., McCammon J. A.. Separation-shifted scaling, a new scaling method for Lennard-Jones interactions in thermodynamic integration. J. Chem. Phys. 1994;100:9025–9031. doi: 10.1063/1.466707. [DOI] [Google Scholar]
- Steinbrecher T., Joung I., Case D. A.. Soft-core potentials in thermodynamic integration: Comparing one-and two-step transformations. Journal of computational chemistry. 2011;32:3253–3263. doi: 10.1002/jcc.21909. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Pomès R., Eisenmesser E., Post C. B., Roux B.. Calculating excess chemical potentials using dynamic simulations in the fourth dimension. J. Chem. Phys. 1999;111:3387–3395. doi: 10.1063/1.479622. [DOI] [Google Scholar]
- Boresch S., Bruckner S.. Avoiding the van der waals endpoint problem using serial atomic insertion. J. Comput. Chem. 2011;32:2449–2458. doi: 10.1002/jcc.21829. [DOI] [PubMed] [Google Scholar]
- Berendsen H. J., van der Spoel D., van Drunen R.. Gromacs: A message-passing parallel molecular dynamics implementation. Computer physics communications. 1995;91:43–56. doi: 10.1016/0010-4655(95)00042-E. [DOI] [Google Scholar]
- Thompson A. P.. et al. LAMMPS-a flexible simulation tool for particle-based materials modeling at the atomic, meso, and continuum scales. Comput. Phys. Commun. 2022;271:108171. doi: 10.1016/j.cpc.2021.108171. [DOI] [Google Scholar]
- Picha A. K., Tkaczyk S., Langer T., Wieder M., Boresch S.. Architecture-Independent Absolute Solvation Free Energy Calculations with Neural Network Potentials. J. Phys. Chem. Lett. 2025;16:12080–12086. doi: 10.1021/acs.jpclett.5c02980. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Xie X.. et al. Accurate Hydration Free Energy Calculations for Diverse Organic Molecules With a Machine Learning Force Field. J. Chem. Theory Comput. 2026;22:3197–3207. doi: 10.1021/acs.jctc.5c02019. [DOI] [PubMed] [Google Scholar]
- Harry Moore J., Cole D. J., Csányi G.. Computing Solvation Free Energies of Small Molecules with Experimental Accuracy. J. Am. Chem. Soc. 2026;148:4928–4937. doi: 10.1021/jacs.5c10940. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Li L., Totton T., Frenkel D.. Computational methodology for solubility prediction: Application to the sparingly soluble solutes. J. Chem. Phys. 2017;146:214110. doi: 10.1063/1.4983754. [DOI] [PubMed] [Google Scholar]
- Li L., Totton T., Frenkel D.. Computational methodology for solubility prediction: Application to sparingly soluble organic/inorganic materials. J. Chem. Phys. 2018;149:054102. doi: 10.1063/1.5040366. [DOI] [PubMed] [Google Scholar]
- Li Y., Nam K.. Repulsive soft-core potentials for efficient alchemical free energy calculations. J. Chem. Theory Comput. 2020;16:4776–4789. doi: 10.1021/acs.jctc.0c00163. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Lin C., He X., Xi C., Zhang Q., Wang L.-W.. Ion solvation free energy calculations based on first-principles molecular dynamics thermodynamic integration. J. Chem. Phys. 2024;160:184115. doi: 10.1063/5.0191068. [DOI] [PubMed] [Google Scholar]
- Simonson T.. Free energy of particle insertion: An exact analysis of the origin singularity for simple liquids. Mol. Phys. 1993;80:441–447. doi: 10.1080/00268979300102371. [DOI] [Google Scholar]
- Jorgensen W. L., Maxwell D. S., Tirado-Rives J.. Development and testing of the OPLS all-atom force field on conformational energetics and properties of organic liquids. J. Am. Chem. Soc. 1996;118:11225–11236. doi: 10.1021/ja9621760. [DOI] [Google Scholar]
- Perdew J. P., Burke K., Ernzerhof M.. Generalized gradient approximation made simple. Phys. Rev. Lett. 1996;77:3865. doi: 10.1103/PhysRevLett.77.3865. [DOI] [PubMed] [Google Scholar]
- Zhang Y., Yang W.. Comment on “generalized gradient approximation made simpler”. Phys. Rev. Lett. 1998;80:890. doi: 10.1103/PhysRevLett.80.890. [DOI] [Google Scholar]
- Ben-Naim A., Marcus Y.. Solvation thermodynamics of nonionic solutes. J. Chem. Phys. 1984;81:2016–2027. doi: 10.1063/1.447824. [DOI] [Google Scholar]
- Gallicchio E., Zhang L. Y., Levy R. M.. The SGB/NP hydration free energy model based on the surface generalized born solvent reaction field and novel nonpolar hydration free energy estimators. J. Comput. Chem. 2002;23:517–529. doi: 10.1002/jcc.10045. [DOI] [PubMed] [Google Scholar]
- Setiadi J., Kuyucak S.. A simple, parameter-free method for computing solvation free energies of ions. J. Chem. Phys. 2019;150:na. doi: 10.1063/1.5082975. [DOI] [PubMed] [Google Scholar]
- Flyvbjerg H., Petersen H. G.. Error estimates on averages of correlated data. J. Chem. Phys. 1989;91:461–466. doi: 10.1063/1.457480. [DOI] [Google Scholar]
- Behler J., Parrinello M.. Generalized neural-network representation of high-dimensional potential-energy surfaces. Physical review letters. 2007;98:146401. doi: 10.1103/PhysRevLett.98.146401. [DOI] [PubMed] [Google Scholar]
- Wang H., Zhang L., Han J., Weinan E.. DeePMD-kit: A deep learning package for many-body potential energy representation and molecular dynamics. Comput. Phys. Commun. 2018;228:178–184. doi: 10.1016/j.cpc.2018.03.016. [DOI] [Google Scholar]
- Wang R., Meraz V. J., Tiwary P.. Machine Learning Driven Advances in Molecular Dynamics of Bulk and Interfacial Aqueous Systems. Chem. Rev. 2026;126:3730. doi: 10.1021/acs.chemrev.5c00708. [DOI] [PubMed] [Google Scholar]
- Schran C., Brezina K., Marsalek O.. Committee neural network potentials control generalization errors and enable active learning. J. Chem. Phys. 2020;153:104105. doi: 10.1063/5.0016004. [DOI] [PubMed] [Google Scholar]
- Kapil V.. et al. The first-principles phase diagram of monolayer nanoconfined water. Nature. 2022;609:512–516. doi: 10.1038/s41586-022-05036-x. [DOI] [PubMed] [Google Scholar]
- Hünenberger, P. ; Reif, M. . Single-Ion Solvation: Experimental and Theoretical Approaches to Elusive Thermodynamic Quantities; Royal Society of Chemistry, 2011; Vol. 3. [Google Scholar]
- Kathmann S. M., Kuo I.-F. W., Mundy C. J., Schenter G. K.. Understanding the surface potential of water. J. Phys. Chem. B. 2011;115:4369–4377. doi: 10.1021/jp1116036. [DOI] [PubMed] [Google Scholar]
- Smith E., Bryk T., Haymet A. D.. Free energy of solvation of simple ions: Molecular-dynamics study of solvation of Cl– and Na+ in the ice/water interface. J. Chem. Phys. 2005;123:034706. doi: 10.1063/1.1953578. [DOI] [PubMed] [Google Scholar]
- Kelly C. P., Cramer C. J., Truhlar D. G.. Aqueous solvation free energies of ions and ion- water clusters based on an accurate value for the absolute aqueous solvation free energy of the proton. J. Phys. Chem. B. 2006;110:16066–16081. doi: 10.1021/jp063552y. [DOI] [PubMed] [Google Scholar]
- Tomaník L., Muchová E., Slavíček P.. Solvation energies of ions with ensemble cluster-continuum approach. Phys. Chem. Chem. Phys. 2020;22:22357–22368. doi: 10.1039/D0CP02768E. [DOI] [PubMed] [Google Scholar]
- Duignan T. T., Baer M. D., Schenter G. K., Mundy C. J.. Real single ion solvation free energies with quantum mechanical simulation. Chemical science. 2017;8:6131–6140. doi: 10.1039/C7SC02138K. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Duignan T. T., Baer M. D., Schenter G. K., Mundy C. J.. Electrostatic solvation free energies of charged hard spheres using molecular dynamics with density functional theory interactions. J. Chem. Phys. 2017;147:161716. doi: 10.1063/1.4994912. [DOI] [PubMed] [Google Scholar]
- Hünenberger P. H., McCammon J. A.. Ewald artifacts in computer simulations of ionic solvation and ion–ion interaction: A continuum electrostatics study. J. Chem. Phys. 1999;110:1856–1872. doi: 10.1063/1.477873. [DOI] [Google Scholar]
- Reif M. M., Oostenbrink C.. Net charge changes in the calculation of relative ligand-binding free energies via classical atomistic molecular dynamics simulation. J. Comput. Chem. 2014;35:227–243. doi: 10.1002/jcc.23490. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Lin Y.-L., Aleksandrov A., Simonson T., Roux B.. An overview of electrostatic free energy computations for solutions and proteins. J. Chem. Theory Comput. 2014;10:2690–2709. doi: 10.1021/ct500195p. [DOI] [PubMed] [Google Scholar]
- Petrov D., Perthold J. W., Oostenbrink C., de Groot B. L., Gapsys V.. Guidelines for Free-Energy Calculations Involving Charge Changes. J. Chem. Theory Comput. 2024;20:914–925. doi: 10.1021/acs.jctc.3c00757. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Yongquan Z.. et al. Reconsideration on Hydration of Sodium Ion: From Micro-Hydration to Bulk Hydration. Russian Journal of Physical Chemistry A. 2017;91:2539–2547. doi: 10.1134/S0036024417130313. [DOI] [Google Scholar]
- Freysoldt C., Neugebauer J., Van de Walle C. G.. Fully ab initio finite-size corrections for charged-defect supercell calculations. Physics Review Letters. 2009;102:016402. doi: 10.1103/PhysRevLett.102.016402. [DOI] [PubMed] [Google Scholar]
- Harscher, A. ; Lichte, H. . Inelastic mean free path and mean inner potential of carbon foil and vitrified ice measured with electron holography. ICEM14, Cancun, Mexico, 1998; Vol. 31, pp 553–554. [Google Scholar]
- Sellner B., Kathmann S. M.. A matter of quantum voltages. J. Chem. Phys. 2014;141:18C534. doi: 10.1063/1.4898797. [DOI] [PubMed] [Google Scholar]
- Yesibolati M. N.. et al. Mean inner potential of liquid water. Phys. Rev. Lett. 2020;124:065502. doi: 10.1103/PhysRevLett.124.065502. [DOI] [PubMed] [Google Scholar]
- In the CP2K code, the electrostatic potential V(x, y, z) is stored on a 3D uniform real-space grid, with columns along the z-direction distributed across different MPI processes. While V(x, y, z) could in principle be written to a single file (e.g., a Gaussian cube file) for postprocessing, this approach would require prohibitively large disk space. In our implementation, each process computes partial sums for its local z-columns, which are then sent to the master process for final summation and analysis.
- Leung K.. Surface potential at the air- water interface computed using density functional theory. J. Phys. Chem. Lett. 2010;1:496–499. doi: 10.1021/jz900268s. [DOI] [Google Scholar]
- Cheng J., Sulpizi M., Sprik M.. Redox potentials and p k a for benzoquinone from density functional theory based molecular dynamics. J. Chem. Phys. 2009;131:154504. doi: 10.1063/1.3250438. [DOI] [PubMed] [Google Scholar]
- Prozorov T., Almeida T. P., Kovács A., Dunin-Borkowski R. E.. Off-axis electron holography of bacterial cells and magnetic nanoparticles in liquid. J. R. Soc., Interface. 2017;14:20170464. doi: 10.1098/rsif.2017.0464. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Price D. J., Brooks C. L. III. A modified TIP3P water potential for simulation with Ewald summation. J. Chem. Phys. 2004;121:10096–10103. doi: 10.1063/1.1808117. [DOI] [PubMed] [Google Scholar]
- Ryckaert J.-P., Ciccotti G., Berendsen H. J.. Numerical integration of the cartesian equations of motion of a system with constraints: molecular dynamics of n-alkanes. J. Comput. Phys. 1977;23:327–341. doi: 10.1016/0021-9991(77)90098-5. [DOI] [Google Scholar]
- Evans D. J., Holian B. L.. The Nose–Hoover thermostat. J. Chem. Phys. 1985;83:4069–4074. doi: 10.1063/1.449071. [DOI] [Google Scholar]
- Hoover W. G.. Canonical dynamics: Equilibrium phase-space distributions. Phys. Rev. A. 1985;31:1695–1697. doi: 10.1103/PhysRevA.31.1695. [DOI] [PubMed] [Google Scholar]
- Tuckerman M. E., Alejandre J., López-Rendón R., Jochim A. L., Martyna G. J.. A liouville-operator derived measure-preserving integrator for molecular dynamics simulations in the isothermal–isobaric ensemble. Journal of Physics A: Mathematical and General. 2006;39:5629. doi: 10.1088/0305-4470/39/19/S18. [DOI] [Google Scholar]
- Kühne T. D.. et al. CP2K: An electronic structure and molecular dynamics software package-quickstep: Efficient and accurate electronic structure calculations. J. Chem. Phys. 2020;152:194103. doi: 10.1063/5.0007045. [DOI] [PubMed] [Google Scholar]
- VandeVondele J.. et al. Quickstep: Fast and accurate density functional calculations using a mixed gaussian and plane waves approach. Comput. Phys. Commun. 2005;167:103–128. doi: 10.1016/j.cpc.2004.12.014. [DOI] [Google Scholar]
- Goedecker S., Teter M., Hutter J.. Separable dual-space gaussian pseudopotentials. Phys. Rev. B. 1996;54:1703. doi: 10.1103/PhysRevB.54.1703. [DOI] [PubMed] [Google Scholar]
- Hartwigsen C., Gœdecker S., Hutter J.. Relativistic separable dual-space gaussian pseudopotentials from H to Rn. Phys. Rev. B. 1998;58:3641. doi: 10.1103/PhysRevB.58.3641. [DOI] [PubMed] [Google Scholar]
- Grimme S., Antony J., Ehrlich S., Krieg H.. A consistent and accurate ab initio parametrization of density functional dispersion correction (DFT-D) for the 94 elements H-Pu. J. Chem. Phys. 2010;132:154104. doi: 10.1063/1.3382344. [DOI] [PubMed] [Google Scholar]
- Bussi G., Donadio D., Parrinello M.. Canonical sampling through velocity rescaling. J. Chem. Phys. 2007;126:014101. doi: 10.1063/1.2408420. [DOI] [PubMed] [Google Scholar]
- Martyna G. J., Tobias D. J., Klein M. L.. Constant pressure molecular dynamics algorithms. J. Chem. Phys. 1994;101:4177–4189. doi: 10.1063/1.467468. [DOI] [Google Scholar]
- Guidon M., Hutter J., VandeVondele J.. Auxiliary density matrix methods for Hartree-Fock exchange calculations. J. Chem. Theory Comput. 2010;6:2348–2364. doi: 10.1021/ct1002225. [DOI] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
Input files and scripts are provided in the repository: https://github.com/JuntingYu1996/FPSFE.



