Simulations of Crystal Nucleation from Solution at Constant Chemical Potential
Tarak Karmakar, Pablo M. Piaggi, Michele Parrinello

TL;DR
This paper introduces a molecular dynamics simulation method that maintains constant chemical potential to accurately study crystal nucleation from solutions, avoiding artifacts caused by solution depletion in traditional methods.
Contribution
The authors adapt the constant chemical potential molecular dynamics approach to simulate nucleation, enabling precise determination of nucleus size and nucleation rates at fixed supersaturation.
Findings
Successfully applied to sodium chloride nucleation from aqueous solution.
Able to determine nucleation rates at constant supersaturation.
Avoids artifacts from solution depletion in canonical ensemble simulations.
Abstract
A widely spread method of crystal preparation is to precipitate it from a supersaturated solution. In such a process, control of solution concentration is of paramount importance. Nucleation process, polymorph selection, and crystal habits depend crucially on this thermodynamic parameter. When performing simulations in the canonical ensemble as the crystalline phase is deposited the solution is depleted of solutes. This unavoidable modification of the thermodynamic conditions leads to significant artifact. Here we adopt the idea of the constant chemical potential molecular dynamics approach of Perego et al. [J. Chem. Phys. 2015, 142, 144113] to the study of nucleation. Our method allows determining the crystal nucleus size and nucleation rates at constant supersaturation. As an example we study the homogeneous nucleation of sodium chloride from its supersaturated aqueous solution.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCrystallization and Solubility Studies · nanoparticles nucleation surface interactions · Spectroscopy and Quantum Chemical Studies
Simulations of Crystal Nucleation from Solution at Constant Chemical Potential
Tarak Karmakar*†,‡*
Pablo M. Piaggi*†,‡* and Michele Parrinello*†,‡*
†Department of Chemistry and Applied Biosciences, ETH Zürich, c/o USI Campus, Via Giuseppe Buffi 13, CH-6900, Lugano, Ticino, Switzerland
‡Facoltà di Informatica, Istituto di Scienze Computationali, Università della Svizzera Italiana (USI), Via Giuseppe Buffi 13, CH-6900, Lugano, Ticino, Switzerland.
Abstract
A widely spread method of crystal preparation is to precipitate it from a supersaturated solution. In such a process, control of solution concentration is of paramount importance. Nucleation process, polymorph selection, and crystal habits depend crucially on this thermodynamic parameter. When performing simulations in the canonical ensemble as the crystalline phase is deposited the solution is depleted of solutes. This unavoidable modification of the thermodynamic conditions leads to significant artifact. Here we adopt the idea of the constant chemical potential molecular dynamics approach of Perego et al. [J. Chem. Phys. 2015, 142, 144113] to the study of nucleation. Our method allows determining the crystal nucleus size and nucleation rates at constant supersaturation. As an example we study the homogeneous nucleation of sodium chloride from its supersaturated aqueous solution.
**1. INTRODUCTION
**
Crystal nucleation and growth from solution have great impact in chemical, material, biological, and environmental sciences. In solution, crystallization occurs by the aggregation of molecules or in general particles to form nuclei followed by their growth into macroscopic crystals. The early stage of this process contains valuable information on the microscopic pathways that lead to the formation of the crystal. However, unveiling such details of this deceivingly simple process is a challenging task. Experiments have great difficulty in resolving the length and time scale of this process, and simulations have been proven to be of great help in this respect. 1, 2, 3, 4, 5, 6, 7, 8
In crystallization from solution, supersaturation plays a crucial role in determining nucleation mechanisms 9, 10, 11, 12, 13 and modulating polymorph selection 14, 15, 16. Thus it is important to study nucleation at constant solution supersaturation condition. However, modeling such a process on the computer is a non-trivial exercise. Computer simulations of nucleation from solution suffer from several limitations. One such limitation is the finite-size effect that arises while simulating nucleation in a small system with a fixed number of particles (typically a few thousands). During nucleation and growth, solute molecules are continuously drawn from the solution, and contrary to experiments, the finite-sized model system fails to retain a steady solution concentration in front of the growing nucleus. This solution depletion drastically affects further growth. Many remedies have been proposed to address this issue. Among them, the simplest one is to add an analytical correction term to the free energy profile. 17, 18 The other option is to simulate a considerably large system in which the finite-size effect is negligible. 19 However, simulating a large system is often cumbersome. Alternatively, one could simulate an open system that can exchange particles with a fictitious external reservoir. 20 However, in many cases especially dense fluids, these methods encounter limitations due to low acceptance probabilities of particle insertion and deletion steps. Liu et al. proposed a string method in the osmotic ensemble to carry out constant supersaturation simulations. 21
A more direct approach, called constant chemical potential molecular dynamics (CMD) has been recently introduced by Perego et al. in which the solution concentration in contact with a growing crystal slab is maintained at constant supersaturation leading to steady crystal growth. 22 The CMD method 22 and its cannibalistic variant 23 were used to investigate crystal growth and dissolution of organic molecules and active pharmaceuticals from solution at different supersaturations 24 and various solvents 25.
In the CMD approach, a slab geometry was adopted which was suitable for studying growth. 22 However to study a nucleation process an isotropic model is more appropriate. Here, we present such a variant designed to carry out simulations of crystal nucleation from solution at constant supersaturation. In our method, a nucleus is grown inside a sphere, and the solution concentration inside a shell surrounding the sphere is maintained at a target concentration. We have applied our method to study the homogeneous nucleation of sodium chloride (NaCl) from aqueous solution at constant supersaturation. The reasons for the choice of this system are two-fold; first, it is a challenging multi-component system, and secondly, the availability of a substantial amount of simulation results 26, 27, 28, 29, 30, 31, 32, 33 makes it an excellent system to test new methods.
**2. COMPUTATIONAL METHODS
**
**Constant Chemical Potential Simulation
**In our CMD scheme, a sphere and a set of concentric shells are defined as shown schematically in Fig. 1. A spherical region of a fixed radius is selected from the simulation box center. This region is called the growth region (GR). The nucleus is grown in this region. The GR is chosen large enough to accommodate a nucleus larger than the critical nucleus size. A thin transition region (TR) shell is defined outside of the GR. A shell outside of the TR is defined by choosing inner and outer boundaries, and , respectively (Fig. 1). This shell is called the control region (CR). The solution concentration in this shell is maintained at a target concentration by an applied external force to be discussed later. The force-region (FR, yellow shell in Fig. 1) can be thought of as a membrane that allows solutes to enter/leave the CR depending on the concentration drop/increase in the CR. The region outside the FR serves as a molecular reservoir (buffer region) that, whenever needed, supplies solute atoms to the CR and thereby to the GR. The reservoir and the nested shells are periodically replicated, and periodic boundary conditions are imposed.
The solute concentration () in the CR is calculated as,
[TABLE]
where is the CR volume and the distance of a j-th particle from the box center. The is a continuous and differentiable switching function that counts atoms belonging the CR. In our case, this function is a defined as a product of two Fermi switching functions, (inward) and (outward),
[TABLE]
where, and are the inner and outer CR boundaries (Fig. 1), respectively, and is a parameter that controls the switching functions steepness. The function has a value of 1 when a solute is inside the CR and continuously approaches zero when outside. From now onward, we drop the atomic index for simplicity.
The force that restraints the instantaneous solution concentration ( in Eq. 1) at a target value () has the following expression,
[TABLE]
where is the force constant. The in Eq. (3) is a bell-shaped function that localizes the at . This function is defined as,
[TABLE]
where is a broadening parameter. Details of the CMD protocol and parameters used in our simulations are provided in Section 1 the SI.
**Collective variables (CVs)
**Crystal nucleation is a rare event that occurs on the time scale difficult to reach by regular atomistic simulations. Thanks to enhanced sampling simulation methods, we can circumvent the time scale limitation and study many long time-scale chemical and biophysical processes in short simulations at an affordable computational cost. One such enhanced sampling technique that has been used in many fields and demonstrated to be rigorous is metadynamics, 34, 35, 36 especially in its well-tempered (WTMetaD) version. 37, 38 In this method, a history-dependent external bias is constructed as a function of a set of CVs that are a function of the atomic coordinates. Application of such a bias potential allows the system to transform from one state to another, which in the context of nucleation, are the solution without and with a crystal nucleus. In the following section, we provide details of the collective variables that we have used in the WTMetaD simulations. We introduce two CVs, one related to the local crystalline order and the other to the ionic solvation.
*Local Order ()
*The first CV is based on the local ordering of neighbors () of a central atom in a crystal environment, . The local density of the central atom is written as a sum of Gaussian functions,
[TABLE]
where ’s are the coordinates of the neighbors relative to the central atom. is the variance of the Gaussian functions. We now define a reference crystal environment () and choose nearest neighbors positions of the central atom in the crystal lattice. The difference between the two environments and is then calculated by a kernel function as done in ref. 39, 40, 41,
[TABLE]
where is the local density of the atom in the reference crystal environment (). In ref 40, the reference environment is not fixed in space but rotated so as to obtain a rotationally invariant CV. Here we break the symmetry. In doing so, the CV acquires a simple analytical expression. 41
[TABLE]
One shortcoming of this CV is that it can change its value by an overall rotation of the crystal. Since this is artificial, we add a restraint in order to avoid this unwanted effect (details can be found in SI).
The kernel function in Eq. (7) is then normalized such that similarities between the identical environments e.g., and are equal to one.
[TABLE]
Now let us consider a system containing solute particles. For each solute ( = 1,..,) we calculate the kernel function using Eq. (8). The solutes having , where =0.5, are counted using a continuous and differentiable switching function () as follows,
[TABLE]
The variable has values in the range from 1 to 0; for crystalline atoms in a perfect environment, 1 while those in solution, 0. The can be referred to as an atomic crystalline CV. Here the superscript O refers to the local order. The parameters p and q control the steepness and the range of the switching function.
The compound NaCl has a rock-salt crystal structure and the ions Na+ and Cl- form two interpenetrating FCC lattices. Each ion is surrounded by six of the oppositely charged ion arranged in an octahedral symmetry. We use one of these local environments as a reference structure. Here we have used as reference Na+ and its Cl- neighbors. However we could as well have used Cl- as the central atom. A lattice parameter of 0.282 nm with = 0.08 nm was used for the kernel defined in Eq. (8).
Furthermore, since we were interested in biasing only the Na+ ions inside the GR (Fig. 1), we used another switching function, acting on the distance () between the (Eq. 9) CVs position and the reference simulation box center, and to measure whether the s are inside the sphere or not. Finally, we define our first CV () as the sum over the crystalline Na+ ions that are present inside the sphere,
[TABLE]
The switching function () decays smoothly from 1 at a radius 1 nm to 0 beyond 1.5 nm from the box center.
*Ion hydration ()
*Solvent plays a pivotal role in the nucleation of ionic salts. During nucleation, increase in solute density is accompanied by ion dehydration; the latter is often found to be rate determining step. 26, 42, 43, 44, 45 In aqueous solution, Na+ and Cl- ions are solvated with an average coordination number 6 and 8, respectively. In order to accelerate ions dehydration, we introduced another CV () which is based on water coordination number of each Na+ ion ( = 1,..,) within a given cut-off radius (),
[TABLE]
where, is the water coordination number of -th Na+ ion, and and are the Na+-O() distances and the distance cut-off, respectively. We have chosen =0.4 nm in our case. is the total number of water molecules in the system. The parameters p and q control the steepness of the switching function.
Finally, the second CV () is a weighted-average water-coordination number of Na+ ions inside the sphere and defined as,
[TABLE]
In this case also, a cubic switching function () is used. We drive explicitly Na+ solvation. Adding the Cl- solvation led to an increase in computational cost without much new insight.
It must be noted that by changing the geometry in Fig. 1 we cannot form infinitely repeated periodic crystals. For this reason we limit the size of the crystal that can be formed by imposing a restraint. We also found useful to put a limit to the number of waters that can solvate ions in order to avoid sampling configurations that are not relevant for the process under study.
**System setup and simulation method
**We considered a simulation box of dimension 6x6x6 nm3. The box size was sufficient to accommodate the critical nucleus and a crystal in the growth region. The system contains 1000 ion-pairs (1000 Na+ and 1000 Cl-) and 6000 water molecules. The solution concentration is 10 (mole of solutes per kg of solvent). A similar concentration has been considered in previous studies to simulate NaCl nucleation from aqueous solution. 27, 31 The Juang-Cheatam force-field 46 was used to model the ions while water molecules were described with the SPC/E potential. 47 A time-step of 2 fs was employed. A cut-off of 0.9 nm was used for both van der Waals and short-range Coulomb interactions. The long-range electrostatic interactions were treated by the Particle Mesh Ewald method. 48 The enhanced sampling runs were started after equilibration run of 5 ns. During this initial phase the pressure was set at 1 bar using the Parrinello-Rahman barostat 49, while the temperature was kept at 350 K using the stochastic velocity rescaling thermostat. 50 In the enhanced sampling runs that followed, we continued controlling the temperature with the same thermostat while the volume was kept constant thus switching to an (N,V,T) ensemble.
We have used the well-tempered metadynamics (WTMetaD) method to carry out nucleation simulations. In the WTMetaD simulations, an initial hill height of 30 kJ/mol and widths of 0.5 and 0.1 for and , respectively were used. Hills were deposited every 500 steps. A bias factor of 100 and 50 were used.
All simulations were carried out using the GROMACS-2018.3 software patched with the PLUMED2 code. The CMD method and CV related codes are included in a private version of the PLUMED2 plugin. A representative PLUMED input file containing the CVs’ information and the metadynamics protocol is provided in Section 2 (Fig. S1-4) of the SI. The visual Molecular Dynamics (VMD) software 51 was used to visualize the trajectories and produce some of the figures.
**3. RESULTS AND DISCUSSION
**
After equilibration, we carried out three independent simulations (A, B, and C). In A, a standard NVT ensemble was used, and the initial value of the solution concentration was = 4.2 nm*-3*. In B, the same concentration was imposed during the entire simulation run using the CMD method. In C, the concentration was kept at the higher value of = 5.0 nm*-3* using again the CMD approach. Contrasting A and B allows us studying the effect of keeping constant, while from the difference between B and C the effect of increasing can be investigated.
Let us start by discussing the results obtained from simulation A. When studying A even if not necessary, we use the CVs, and whose action is localized in a sphere of size 1.5 nm. This will allow a fairer comparison with a parallel CMD calculation. In order to understand the effect of nucleus growth on the solution concentration, we calculated its value in a shell 1.7 nm away from the box center and with a thickness of 0.8 nm. This region is the same as the one that is used in CMD simulations to monitor the solution concentration. During the metadynamics runs the concentration decreases as the size of the crystalline nucleus increases (see Fig. S6 of the SI). In contrast, in B and C, the instantaneous solution concentration fluctuates around the desired values () (Fig. S7). This accurate control of solution concentration demonstrates the effectiveness of our method.
Now that the solution concentration is well-controlled in all cases, we shift our attention toward the nucleation events. Metadynamics is able to induce multiple transitions to and from a NaCl microcrystal (Fig. 2(a) and Fig. S5). This enables us to collect enough statistics and calculate the free energy surfaces (FES). We followed a reweighting procedure discussed in ref. 52 to calculate the FESs as a function of and CVs. Here, is defined as the number of Na+ ions having less than 3 water molecules within radius 0.4 nm (see section 6 of the SI for details of the reweighting protocol). While the reveals local ordering of the ions, unveils the solvation effect. In Fig. 3(a) and 3(b), we can clearly see the effect of controlling . In 3(a), the absence of a crystal minimum is to be noted. In contrast in 3(b), the crystal state appears as a local minimum. Increasing the solution concentration stabilizes the crystal phase (Fig. 3(c)). Furthermore, an almost straight diagonal path for the phase transition indicates that there is a single path for the transformation from the solution to the crystal state demonstrating that during nucleation ions crystallization and desolvation are correlated.
Additionally, we calculated one dimensional free energy profiles from the cluster size (n) distributions as described in ref. 53, 54 and 55. The average free energy profiles and the errors were calculated using the block averaging analysis. The free energy profile obtained from simulation A (Fig. 4(a)) increases monotonously as the nucleus size increases. This could be due to the varying thermodynamical driving force induced by the solution depletion. In the B simulation, the free energy shows a barrier of 17628 kJ/mol, and after the critical nucleus, it decreases as the nucleus size increases. The lowering of the nucleation barrier in B simulation could be attributed to the controlled supersaturation condition. The critical nucleus () has been found to be comprised of approximately 27 ion-pairs. Furthermore, in the C simulation, with its increase in solution concentration, the free energy barrier decreases to 10110 kJ/mol. In this case, a smaller critical nucleus of size 16 ion-pairs is obtained. The shape of these free energy curves (Fig 4(b) and (c)) spurred us to check if they fit to the classical nucleation theory (CNT) curve, and in fact, not surprisingly, a good fitting is obtained. The fitting of the free energy curve to the CNT-equation provided the chemical potential difference = 13.0 kJ/mol for B and 13.8 kJ/mol for C simulation.
In the next step, following a protocol described in refs. 56, 57, 58, 59, 60, 61, 62, 63 we calculate the nucleation rate (J)
[TABLE]
where is the number density, the Zeldovich factor, the attachment frequency, the nucleation barrier, the Boltzmann constant, and T the temperature. The is calculated using and values. The attachment frequency () was obtained from the average slope of the vs. time curves obtained from a few short unbiased simulations initiated from configurations containing a critical nucleus (Fig. S11). All values related to the rate calculation are provided in Table S1 of the SI. Finally, we inserted all these values to the rate equation (Eq. 13) and obtain nucleation rates of 2.5103 cm*-3s-1* and 6.21014 cm*-3s-1* at solution concentration = 4.2 nm*-3* and = 5.0 nm*-3*, respectively, and at temperature 350 K. The unavailability of NaCl nucleation rate at high temperatures does not allow a direct comparison of our results with experiments. However, the obtained nucleation rates are close to the values (101 - 1025 cm*-3s-1*) at ambient conditions. 64, 65, 31, 29
Although not the primary focus of our work, here we provide a summary of observations related to the nucleation mechanism gathered from the simulation trajectories. A visual inspection of the simulation trajectories reveals single-step nucleation mechanism. Moreover, the CNT-like free energy profile obtained from the CMD simulations depicted in Fig. 4(b) and (c) is an indicator of a likely one-step nucleation mechanism. Our observations are in line with the previous reports. 31, 32 Furthermore, in our simulations, we do not observe the Wurtzite structure reported in a few studies. 66, 27 This could be due to the choice of our CV which only describes the rock-salt structure. A movie demonstrating a representative nucleation event extracted from the C simulation is provided as a web-enhanced SI.
**4. CONCLUSION
**
In summary, we have developed a CMD simulation method to carry out simulation of nucleation from solution at constant chemical potential. The presented method has been demonstrated to be effective in controlling the solution concentration near the growing nucleus. Active control of the solution supersaturation surrounding the growing embryo leads to steady nucleation. Although in this particular case, the solution depletion is not severe (7-10 %), it could be more significant when a large crystal is grown from solution in a closed finite-size system.
An effective chemical potential control together with metadynamics simulations helped us in calculating NaCl nucleation free energy surfaces at a given solution concentration. The local order-based collective variable () employed in our metadynamics simulations has been found to be delicate in growing a target crystal structure. A single pathway for the transformation from the solution to the crystal has been realized. The CNT-like free energy curve further confirms that NaCl follows a single-step nucleation in supersaturated aqueous solution.
The CMD method introduced here opens up many possible applications. An immediate application would be to carry out seeded nucleation at constant solution concentration. Alternatively one can interface our method with several enhanced sampling methods 67, 68 focusing nucleation e.g., forward-flux sampling 69, persistent-embryo approach 70, and string method 71, 72, 21 to carry out controlled nucleation at constant solution concentration. Furthermore, multi-resolution scheme such as adaptive resolution 73, 74, 75, 76, 77, 78, 79, 80 can also be combined with the presented CMD technique to carry out concentration-controlled nucleation simulations of a system with a relatively large reservoir containing low-resolution coarse-grain solute and solvents.
The method is no way limited to the study of nucleation but could be useful in simulating controlled self-assembly of small organic and biomolecules such as peptides. We believe the realistic nature of our method in mimicking bulk-like environment to the growing nucleus or cluster will help in obtaining true kinetics.
**5. ASSOCIATED CONTENT
**
**Supporting Information
**The supporting information contains CMD protocol, sample PLUMED input files, details of the restraints used in metadynamics simulations, time series of and CVs for A, B, and C simulations, a correlation plot of solution concentration and CV from A simulation, solution concentration profiles obtained from simulations B and C, time evolution of mean square change in the cluster size, a table containing values related to rate calculations.
A movie demonstrating a nucleation event can be found here ( )
The codes used in this work are included in the private development version of PLUMED2 plugin and will be openly available in the future. Until the official release, the codes will be available upon request to the corresponding authors.
**6. AUTHOR INFORMATION
**
*Corresponding Author
**E-mail: [email protected]
**ORCID:
**Tarak Karmakar: 0000-0002-8721-6247
Michele Parrinello: 0000-0001-6550-3272
**Present Address
†**Department of Chemistry and Applied Biosciences, ETH Zurich, c/o USI Campus, Via Giuseppe Buffi 13, CH-6900, Lugano, Ticino, Switzerland
‡Facoltà di Informatica, Istituto di Scienze Computationali, Università della Svizzera Italiana (USI), Via Giuseppe Buffi 13, CH-6900, Lugano, Ticino, Switzerland.
**Notes:
**The authors declare no competing financial interest.
**7. ACKNOWLEDGEMENTS
**
The authors would like to thank Luigi Bonati, Michele Invernizzi, Dr. Haiyang Niu, and Jayashrita Debnath for providing useful suggestions. We thank CSCS, Swiss National Supercomputing Centre for providing the computational resources. The research was supported by the European Union Grant No. ERC-2014-AdG-670227/VARMET. We also acknowledge the NCCR MARVEL, funded by the Swiss National Science Foundation.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Ohtaki and Fukushima 1991 Ohtaki, H.; Fukushima, N. Nucleation processes of Na Cl and Cs F crystals from aqueous solutions studied by molecular dynamics simulations. Pure and applied chemistry 1991 , 63 , 1743–1748
- 2Anwar and Boateng 1998 Anwar, J.; Boateng, P. K. Computer simulation of crystallization from solution. Journal of the American Chemical Society 1998 , 120 , 9600–9604
- 3Shore et al. 2000 Shore, J. D.; Perchak, D.; Shnidman, Y. Simulations of the nucleation of Ag Br from solution. The Journal of Chemical Physics 2000 , 113 , 6276–6284
- 4Sarupria and Debenedetti 2012 Sarupria, S.; Debenedetti, P. G. Homogeneous nucleation of methane hydrate in microsecond molecular dynamics simulations. The journal of physical chemistry letters 2012 , 3 , 2942–2947
- 5Salvalaglio et al. 2015 Salvalaglio, M.; Perego, C.; Giberti, F.; Mazzotti, M.; Parrinello, M. Molecular-dynamics simulations of urea nucleation from aqueous solution. Proceedings of the National Academy of Sciences 2015 , 112 , E 6–E 14
- 6Sosso et al. 2016 Sosso, G. C.; Chen, J.; Cox, S. J.; Fitzner, M.; Pedevilla, P.; Zen, A.; Michaelides, A. Crystal nucleation in liquids: Open questions and future challenges in molecular dynamics simulations. Chemical reviews 2016 , 116 , 7078–7116
- 7Fitzner et al. 2017 Fitzner, M.; Sosso, G. C.; Pietrucci, F.; Pipolo, S.; Michaelides, A. Pre-critical fluctuations and what they disclose about heterogeneous crystal nucleation. Nature communications 2017 , 8 , 2257
- 8Sosso et al. 2018 Sosso, G. C.; Whale, T. F.; Holden, M. A.; Pedevilla, P.; Murray, B. J.; Michaelides, A. Unravelling the origins of ice nucleation on organic crystals. Chemical science 2018 , 9 , 8077–8088
