Molecular-sized bubbles in a liquid: free energy of formation beyond the capillarity approximation Joël Puibasset Abstract We investigate the transient bubbles that spontaneously appear in a simple liquid using molecular simulations. The objective is to deduce the free-energy of formation of the bubbles W ⁡ ( s ) W(s) from the bubble size distribution p ⁡ ( s ) p(s) through the hypothesis of a Boltzmann distribution: W ⁡ ( s ) = − k ​ T ​ ln ⁡ p ⁡ ( s ) W(s)=-kT\ln p(s) . The bubbles are detected and characterized using a method based on a grid superimposed on the liquid, efficient for bubbles larger than the grid mesh. We first investigate how the results are affected by the mesh choice, and show that using several mesh values allows to detect bubbles in a wide range of sizes with minimal computing cost. The free-energy of formation of a bubble can then be deduced for a large range of sizes, with particular emphasis in the region of vanishing bubbles scarcely investigated in previous works. We first show that the usual Boltzmann relation has to be modified when the bubble size is characterized by its volume. In particular, the bubble volume distribution diverges for a vanishing bubble, which should be taken into account before calculating its free-energy of formation from the above formula. An analytical expansion, valid for any interacting spherical molecules, confirms this observation. We then show that the capillarity approximation fails for small bubbles: an extra contribution, linear with the bubble radius, has to be added to the usual quadratic (surface) and cubic (volume) contributions to the free-energy. This extra term most probably relates to the irregular shape of the tiny bubbles. Preprint: AIP/123-QED I Introduction Among density fluctuations appearing spontaneously in a liquid, the voids or cavities (empty spaces between molecules) and bubbles (region filled with vapor) play an important role regarding its dynamic or thermodynamic properties, for instance its ability to solubilize molecules. [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 ] These fluctuations also play a crucial role in phase transitions, in particular during the liquid-to-vapor transition of a superheated or stretched liquid. [ 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 ] In this context, the popular Classical Nucleation Theory (CNT) relies on the idea that bubbles can grow from seeds formed by spontaneous cavities. [ 21 , 22 , 23 ] Quantitatively, bubbles can reach the size s with a probability p proportional to the Boltzmann factor \exp[-W(\{s\})/kT] , where W(\{s\}) is the free energy of formation of the bubble, k is Boltzmann’s constant, T is the temperature, and \{s\} is a set of variables that characterizes the bubble size and shape (volume, gyration radius, aspect ratio etc.). [ 24 , 2 , 25 ] To simplify the notations, the braces will be dropped, and an expression like “bubble size s ”, used in a general context, should be understood as including a description of the shape of the bubble. The main objective of this work is to assess the validity of such a relationship between p and W in the early stages of bubble formation. In particular, one has to determine the prefactor that fixes the origin of the free energy, and check that it is well behaved for a vanishing bubble. A priori, the bubble can adopt any shape, possibly including strong distortions. [ 26 , 27 , 28 , 29 , 30 , 31 , 32 , 33 , 34 ] However, it is generally admitted that, at least for bubbles large enough, the surface energy cost will favor spherical shapes. In CNT, the shape is assumed to be spherical for any size, which is parametrized by its radius r . In the capillarity approximation, the free energy of formation contains surface and volume contributions: W(r)=4\pi r^{2}\gamma+\frac{4}{3}\pi r^{3}\Delta, (1) where \gamma is the surface tension and \Delta is for instance a pressure difference in the case of bubble nucleation in a liquid at constant pressure and temperature. While the volume contribution \Delta changes sign when crossing the coexistence line, the surface contribution, which dominates for tiny bubbles, is always positive and generates an energetic cost. The equation then tells us that the first stage of bubble growth is always disfavored, and that tiny bubbles have similar probabilities to occur spontaneously on both sides of the equilibrium line, i.e. in the stable as well as in the metastable liquid, with a probability approaching one for vanishing cavities. [ 35 , 36 ] However, nothing can be said about the number of spontaneous bubbles of size s in the liquid, although, in many cases, one is rather interested in this quantity: for instance in CNT for the calculation of the nucleation rate, or in molecular simulations where the number of bubbles is directly measurable. In the context of condensation in a supersaturated vapor or crystallization in a supercooled liquid, the number N_{n} of nuclei of size s=n , where n is defined as its number of particles, has been shown, when clusters are rare, to verify [ 36 , 37 , 38 , 39 , 40 , 41 , 25 , 42 ] N_{n}=Ne^{-W(n)/kT} (2) where N is the total number of molecules in the system and W(n) is the free energy of formation of a nucleus of size n . Note that N_{n} is extensive, while the corresponding N_{n}/N has been referred to as an “intensive” probability. [ 38 , 39 ] In the case of bubble formation in a liquid, their size is a continuum, and one defines the density of bubbles of size s as p(s)=dN_{s}/ds where dN_{s} is the infinitesimal number of bubbles of size between s and s+ds . [ 43 ] p(s) is again extensive, and one expects that an equation similar to Eq 2 should hold for p(s) : p(s)=Qe^{-W(s)/kT}. (3) It is however unclear how to generalize the arguments developed in the context of discrete clusters (Eq 2 ) to the case of continuous ones (Eq 3 ). [ 25 , 38 ] As previously, an intensive bubble size density can be defined. For instance, several authors introduced a normalization by the volume V of the system: \rho(s)=p(s)/V . [ 27 , 43 , 44 ] To our knowledge, Q , or equivalently \rho_{0}=Q/V , has generally been taken as a constant, and adjusted so that W(0)=0 . [ 27 ] In the case of stretched water, Menzl et al. [ 27 ] found \rho_{0}=Q/V=0.022 nm -6 . It is however unclear how to define the free energy of a bubble of size exactly zero ( s=0 ), and, therefore, it is generally assumed to be the limiting value of w(s) for a vanishing bubble ( s\rightarrow 0) . This however supposes that the corresponding limit does exist. Figure 1 gives a schematic representation of p(s) as given by Eq 3 with the hypothesis that Q is constant or varies smoothly around s=0 (solid line). Figure 1: Schematic representation of p(s) , the density of bubbles of size s in a liquid, as given by Eqs 1 and 3 . If Q is constant or varies smoothly with s , p(0) is finite (solid line). However, our simulations suggest that p(s) may diverge around s=0 when the bubble size is characterized by its volume (dotted line). However, the simulation results presented in this work suggest that Q may not be constant, and may even present, in some cases, a divergence at vanishing size (see Fig. 1 , dotted line). Note however that, if the condition that bubbles do not overlap is satisfied, the total volume occupied by the bubbles \int_{0}^{\infty}vp(v)dv has to be finite ( \leq V ), which puts a limit on the degree of divergence of Q . Integrability of the distribution imposes an even stronger limit. The last point to be mentioned is that the exact expression for p(s) is expected to explicitly depend on the chosen parameter used to characterize the bubble size, even when there is a one to one correspondence between them. For example, a spherical bubble may either be characterized by its radius r or its volume v . Since the number of bubbles between s and s+ds is the same for s=r or v , one has dN_{s}=p_{r}(r)dr=p_{v}(v)dv where we have introduced an index to differentiate the two mathematical expressions for p . Therefore, p_{r}(r)=4\pi r^{2}p_{v}\left(\frac{4}{3}\pi r^{3}\right), (4) and, necessarily, in Eq 3 , Q cannot be a constant in both representations. In literature, in most cases, one uses volume distributions to calculate free energies. This is the case in the context of condensation of vapors or crystallization, [ 45 , 40 , 41 , 39 , 38 , 37 , 42 , 46 , 31 , 47 , 32 , 48 , 49 , 50 ] where the natural definition of the nucleus size is its number of atoms, but also in the context of bubble nucleation. [ 34 , 51 , 27 ] On the other hand, the radial distribution is more scarcely used. [ 9 ] Two questions then arise. Is it possible to determine Q(s) for a given choice of size parameter? And, is there a particular choice for which Q would be constant? Experiments cannot help because the tiny spontaneous bubbles in the liquid are unobservable, but molecular simulations are reliable enough at this scale to provide an efficient alternative. The principle consists in performing a Molecular Dynamics or a Monte Carlo run of a stable or metastable liquid, and following the spontaneous growth and shrink of bubbles. Defining a bubble when this one is large is not difficult. However, when its size approaches atomic scale, it is more involved. There are different methods, all relying on an estimate of the local fluid density, but using quite different approaches, and giving a priori different results for small bubbles. [ 28 , 34 , 52 , 51 ] In this paper, we focus on a popular method proposed by Wang et al., [ 52 ] denoted as the W-method in the following. The principle consists in analyzing the liquid structure based on a geometric criterion and a grid superimposed on the molecular configuration. For a large grid mesh, the method is fast, but it is unable to capture accurately the shape of the bubbles, and completely misses the smaller ones. Conversely, the smaller the grid mesh, the more precise the characterization of the bubble shape and volume. But the computational cost increases prohibitively, in particular for large systems. In practice, the mesh is generally taken slightly smaller than the molecular size. The objective of this work is to use the W-method to characterize the bubble size distribution p(s) , with a particular focus for s\rightarrow 0 . The molecular model is presented, as well as a brief reminder of the W-method. A careful analysis of the influence of the grid mesh is presented, in particular for small bubbles. It is shown that the bubble size distribution converges toward a definite distribution when the grid mesh is chosen arbitrarily small, which allows to extrapolate p(s) to vanishing bubble sizes. An unexpected divergence is observed at s=0 when the bubble size is characterized by its volume ( s=v ), which has been confirmed by an analytical calculation that fits very well with the numerical results for tiny bubbles. This divergence however disappears if the bubble size is characterized by its radius, allowing to define a free energy of formation. It is then shown that the capillarity approximation fails to reproduce the free energy of the smallest bubbles. II Numerical details II.1 Molecular model The ideas developed in this study are generic and depend essentially on the atomistic structure of the liquid and the method used to define the cavities or bubbles. We therefore focus on a system of particles interacting through the (12-6) Lennard-Jones potential, depending on the two constants \epsilon and \sigma corresponding to the depth of the potential well and the molecular kinetic diameter respectively. The potential is truncated and quadratically shifted at a distance taken equal to 3 \sigma . [ 53 , 54 , 55 ] All quantities will be expressed in reduced units, using \sigma for distances, \epsilon for energies, \epsilon/k for temperatures, and \epsilon/\sigma^{3} for pressures. This model is expected to apply to simple liquids with spherical molecules. For more complex molecules, highly anisotropic or flexible, more refined definitions of bubbles or cavities would be required, with probably different conclusions. For instance, in the case of network-forming liquids like water, the grid method has to be adapted. [ 51 ] The property we are interested in, i.e. the spontaneous formation of cavities, is mainly controlled by thermal activation. We therefore perform a Monte Carlo simulation, but molecular dynamics would give identical results. To enhance statistics and favor density fluctuations, we work at the reduced temperature kT/\epsilon=1.0 and at a pressure in the metastable region slightly below the saturating pressure. However, since the method we use to detect the cavities relies on a mapping of the liquid with a grid, because of the periodic boundary conditions, the grid mesh has to follow the fluctuations of the simulation box during an isobaric run. Since we precisely want to study the impact of a particular choice for the grid mesh, we prefer to avoid mesh fluctuations and work at constant box volume in the Grand Canonical ensemble and impose the chemical potential instead of the pressure. More specifically, we work at \ln\left(z\sigma^{3}\right)=-3.20 where z=e^{\mu/kT}/\Lambda^{3} is the activity, \mu is the chemical potential and \Lambda is the thermal de Broglie wavelength. [ 53 , 54 ] Note that the activity is the natural parameter entering the Grand Canonical Monte Carlo, while the chemical potential would depend explicitly on the mass of the molecules. In these conditions, the average reduced pressure is p\sigma^{3}/\epsilon=0.026 , a value below the reduced saturating pressure p_{\rm sat}\sigma^{3}/\epsilon=0.055 at the working temperature, which places the system in a slightly metastable state (superheated). Although the formation of tiny bubbles is slightly favored by the metastability, no liquid-to-vapor transition was observed during the simulation runs: the metastability is too weak to allow the system to overcome the energy barrier. It is also emphasized that we have not used any bias to sample the system (except to acquire information for large bubbles, see below): the observed bubbles are all spontaneous. A cubic system of edge L=18\sigma has been considered, with periodic boundary conditions, containing on average 3300 particles. II.2 Bubble identification and characterization The bubbles appearing in the liquid are identified and characterized by estimating the local fluid density. Is this work, we focus on a method which consists in working on a discrete grid, and evaluate the impact of a particular choice for the grid mesh. We anticipate that using different mesh values will produce different results for the smallest fluid structures, but the largest ones should be unchanged. In this study we have chosen a four-steps algorithm which has proven to be very efficient, developed by Wang et al. [ 52 ] and denoted as W-method. We proceed as follows: (i) The first step consists in identifying liquid-like and vapor-like molecules in the system. For each molecule, one counts the number of neighbors closer than 1.625\sigma , corresponding to the first minimum of the radial distribution function in our thermodynamic conditions (Stillinger’s criterion). [ 56 ] The corresponding distribution of the number of neighbors exhibits two well separated lobes (below 5 and above 6 neighbors, see Fig. 2 ). Figure 2: Distributions in the vapor and liquid phases of the number of neighbors within the Stillinger sphere defined by the first minimum of the radial distribution function (insert) of the liquid in our thermodynamic conditions ( kT/\epsilon=1 and \ln\left(z\sigma^{3}\right)=-3.20 ) Molecules having five or less neighbors are labeled as vapor-like, while those having six or more neighbors are labeled as liquid-like. [ 38 ] In the next steps, the vapor-like molecules are discarded, and only liquid-like ones are considered. (ii) The simulation box is then divided into cubic cells of edge l_{\rm cell} (see Fig. 3 for an illustration in two dimensions). Figure 3: Illustration of the W-method [ 52 ] in the two-dimensional case. The dark gray disks represent the liquid-like molecules (kinetic diameter \sigma ), and the light gray corona are their Stillinger [ 56 ] disks (radius R taken equal to 1.625\sigma like in the three-dimensional case). Panels (a), (b) and (c) correspond to three grids with meshes l_{\rm cell}=2\sigma , \sigma and 0.5\sigma respectively. Cells whose centers (black dots) do not fall within any Stillinger sphere are marked as vapor. Bubbles are defined as clusters of vapor cells (highlighted regions with a thick boundary). For a vanishing mesh, this definition of bubbles converges toward the white regions between Stillinger disks. In practice, l_{\rm cell} is chosen smaller that the particle size to gain insight in the fluid structure at the molecular level, but not too small to keep the procedure computationally fast. A good compromise commonly accepted is l_{\rm cell}=0.5\sigma . [ 52 ] In this work, we explicitly vary l_{\rm cell} to evaluate the influence of this parameter, starting with a significantly larger value l_{\rm cell}=2\sigma , and reducing it by factors of two down to 2^{-4}\sigma . The volume of the cell is denoted as \delta=l_{\rm cell}^{3} , ranging from 2^{-12}\sigma^{3} to 2^{3}\sigma^{3} . (iii) The grid cells in the vicinity of a liquid-like molecule (center-to-center distance <1.625\sigma ) are marked as liquid, while the others are marked as vapor (see Fig. 3 ). (iv) We then perform a cluster analysis on the vapor cells to define the bubbles: two cells are considered to belong to the same bubble if they are connected through the faces, edges or vertices, i.e. their center-to-center distance is less or equal to \sqrt{3}l_{\rm cell} (In Fig. 3 , the corresponding criterion in two dimensions is \sqrt{2}l_{\rm cell} ). The size of the bubble may either be defined as the number n of cells in the cluster or its total volume v=n\delta . Step (i) is the most important since it defines the fluid structure in terms of liquid-like and vapor-like molecules. Steps (ii) to (iv) correspond to the fast discrete numerical procedure used to characterize the bubbles. In the vanishing limit l_{\rm cell}\rightarrow 0 , the discrete procedure (ii) to (iv) gives the exact volume and shape of the bubbles defined as one-piece regions of space out of the Stillinger spheres associated to the liquid-like molecules in step (i). Note that these regions can either contain vapor-like molecules, as expected for a bubble, or be completely empty, in which case it would be more appropriate to call them cavities or voids. However, we will not do the distinction in the following. II.3 Large bubbles and umbrella sampling The bubbles forming spontaneously in a liquid are in general quite small. The probability of occurrence of larger bubbles decreasing very fast, a biased method is required to study their statistics. We have used the standard umbrella sampling scheme of Torrie and Valleau [ 57 ] to calculate the probability distribution p(r) for r\geq\sigma . This method has been a breakthrough for exploring the nucleation barrier of various systems. [ 38 , 42 , 46 , 47 , 58 , 59 , 48 , 32 , 51 , 27 , 60 , 61 ] We have also taken advantage of a recently developed method [ 62 , 63 ] that cures approximations pointed out by Goswami and coworkers. [ 50 ] Although the method applies in principle to any size, we are limited in practice by the shortest dimension of the simulation box (18 \sigma in our case) and the periodic boundary conditions: bubbles larger than r=4\sigma have a significant probability of interacting with their own images, or of transforming irreversibly into cylindrical bubbles crossing the box. Using larger boxes being out of the scope of this work, the distribution will be limited to r\leq 4\sigma . III Results III.1 Molecular configuration analysis Figures 4 and 5 show the result of the application of the W-method on two particular molecular configurations chosen to illustrate different situations. Figure 4: Schematic representation rendered with Ovito software [ 64 ] of the bubbles detected with the W-method for a particular molecular configuration. The grayed cells correspond to the vapor-like cells obtained in step (iii) of the method. Panels (a) to (f) correspond to the same molecular configuration analyzed with a grid mesh l_{\rm cell} decreasing from 2 \sigma to 2^{-4}\sigma by factors of two. In each case, the panels (a) to (f) correspond to the six grid meshes considered in this work, ranging from 2 \sigma to 2^{-4}\sigma respectively. Tables 1 and 2 gather different quantities for the six panels of each figure: the mesh size l_{\rm cell} , the number of bubbles N_{B} in the molecular configuration, and the sizes of the three largest bubbles (when they exist) given in terms of their number of cells n_{i} or their volume v_{i}=n_{i}\delta . label a b c d e f l_{\rm cell}/\sigma 2.0 1.0 0.5 0.25 0.125 0.0625 N_{B} 1 1 2 7 11 17 n_{1} 1 12 70 567 4552 36193 n_{2} - - 1 16 88 695 n_{3} - - - 3 28 189 v_{1}/\sigma^{3} 8.0 12.0 8.75 8.859 8.891 8.836 v_{2}/\sigma^{3} - - 0.125 0.25 0.172 0.170 v_{3}/\sigma^{3} - - - 0.047 0.055 0.046 Table 1: Grid mesh l_{\rm cell} , number of bubbles N_{B} , and sizes of the largest (1), second largest (2) and third largest (3) bubble, given in terms of their number of cells n_{1} , n_{2} and n_{3} respectively, or in terms of their volume v_{i}=n_{i}l_{\rm cell}^{3} , for the six grid meshes labeled (a) to (f), and for the configuration depicted in Fig. 4 . label a b c d e f l_{\rm cell}/\sigma 2.0 1.0 0.5 0.25 0.125 0.0625 N_{B} 2 6 7 16 9 16 n_{1} 2 9 39 496 4052 32332 n_{2} 1 3 24 49 390 3082 n_{3} - 1 4 31 249 2004 v_{1}/\sigma^{3} 16.0 9.0 4.875 7.75 7.91 7.89 v_{2}/\sigma^{3} 8.0 3.0 3.0 0.766 0.76 0.752 v_{3}/\sigma^{3} - 1.0 0.5 0.484 0.486 0.489 Table 2: Same as Table 1 for the configuration depicted in Fig. 5 . For the largest mesh of the first example [Fig. 4 (a)], one observes only one bubble of size one cell, corresponding to a volume v_{1}=8\sigma^{3} . Reducing l_{\rm cell} by a factor two [Fig. 4 (b)] still gives one cluster, the size being now 12 cells and the volume v_{1}=12\sigma^{3} . The shape of the bubble looks irregular and wormlike. For l_{\rm cell}=0.5\sigma [Fig. 4 (c)], two clusters are observed. The largest one, made of 70 cells, is positioned at the same place as the bubble previously detected in panels (a) and (b), and obviously corresponds to the same bubble seen with a better definition. On the other hand, the second cluster at the bottom of the simulation box contains only one cell and corresponds to a smaller bubble previously undetected in panels (a) and (b). Reducing further the grid mesh allows to detect an increasing number of bubbles in the molecular configuration: for instance, l_{\rm cell}=0.0625\sigma allows to detect 17 bubbles or cavities [Fig. 4 (f)]. Note however that the newly detected bubbles are quite small, with dimensions of the order of the mesh size that allow to detect them. It is also interesting to notice that, generally, a bubble detected for a given mesh will be detected for smaller meshes. This is in particular the case for the initially detected bubble close to the center of the simulation box [Fig. 4 (a)] which appears in all subsequent panels with a better definition. Obviously, the number of cells in this cluster increases, but the size of the bubble measured by its absolute volume v_{1} converges (see Table 1 ). This is also true for the smaller bubbles detected in Fig. 4 (c) to (f). This allows to conclude that the newly detected bubbles in that molecular configuration are 50 times smaller than the largest one. It can also be seen that the shape of the largest bubble converges when the grid mesh decreases. This is also true for the smaller bubbles. The second example given in Fig. 5 confirms the previous observations, with however some differences. Figure 5: Same as Fig. 4 for another molecular configuration. For instance, two clusters are detected for the largest mesh 2\sigma [Fig. 5 (a)]. The largest cluster made of two cells corresponds to the largest bubble detected in panel (f), with volume v_{1}=7.9\sigma^{3} , while the second cluster made of one cell in (a) corresponds to the second largest bubble in (f) with volume v_{2}=0.75\sigma^{3} . As can be seen, the large grid mesh severely misestimates the volume ratio between the two bubbles: ratio 2 in panel (a), while the ratio is more likely to be 10.5 with a better precision in panel (f) [see Table 2 , columns (a) to (f)]. Choosing the standard value l_{\rm cell}=0.5\sigma instead of 2\sigma does not cure the problem since the ratio in that case equals 1.6. Another interesting feature in this configuration is that the number N_{B} of clusters is not necessarily always increasing when the grid mesh decreases, as can be seen in Table 2 , columns (d) and (e). This is due to the merger of clusters close to each other. In particular, one can notice that the two large clusters in panel (c) actually belong to the same cavity when detected with a better accuracy in panel (f). The last point to be noticed is that the single cell cavity pointed out by the arrow in panel (b) disappears in panel (c), and reappears in subsequent panels. This reveals that cavities of a given size may be undetected when analyzed on a grid with a mesh of comparable size, depending on the position and shape of the cavity with respect to the grid. These two examples show that the number of cavities detected with the W-method strongly depends on the grid mesh. It is however noticed that the smaller the mesh, the better the accuracy. In particular, the two previous examples show that the largest bubbles are accurately described (in volume and shape) when using the smallest mesh. It looks reasonable to think that whatever the minimal bubble size we want to characterize, it is possible to chose a grid mesh small enough to detect them. In other words, reducing the mesh to zero should allow to characterize all bubbles. However, there remain two important questions. (i) From a fundamental point of view, it would be desirable that the method somehow converges, in the sense that the characterization of each configuration should reach a definite limit for a grid mesh approaching zero. In particular, the number of detected cavities should converge toward a finite value. (ii) From a practical point of view, it would be desirable that an accurate enough characterization can be reached with a “reasonable” value of the grid mesh, in particular in terms of computing resources: as a matter of fact, reducing the grid mesh is highly demanding in memory and computing time, in particular for large simulation boxes. Taking this constrain into account, is the generally admitted l_{\rm cell}=0.5\sigma the best choice? To answer these questions, the bubble size distribution is carefully analyzed as a function of the grid mesh. III.2 Bubble size distribution We first focus on the bubble size distribution with the size defined as the number n of cells in the clusters. By construction, 1\leq n\leq V/\delta where V is the volume of the simulation box and \delta=l_{\rm cell}^{3} is the cell volume. One first calculates the frequency histogram, H_{\delta}(n) , cumulated over the configurations generated by the simulation and taken with an equal weight. This is equivalent to establishing the histogram based on the ensemble of all cavities detected during the simulation. The histogram is then normalized to one to get h_{\delta}(n)=H_{\delta}(n)/\Sigma_{i}H_{\delta}(i) which can be interpreted has a probability distribution. Since distant bubbles in the simulation box are uncorrelated, this ensemble average is equivalent to considering an infinite system, except for the fact that the histogram is truncated at the upper bound V/\delta that explicitly depends on the system size. This limit can be pushed as far as allowed by computer capabilities, using large enough simulation boxes. On the other hand, the first bin h_{\delta}(0) cannot be defined and remains inaccessible to numerical calculations since the smallest bubble detected by the W-method contains at least one cell. The bubble size histogram h_{\delta} obviously depends on the grid mesh, as can be seen on Fig. 6 that gives the result for the two grid meshes l_{\rm cell}=0.5\sigma and 0.125\sigma . Figure 6: Normalized frequency histograms h_{\delta}(n) of the bubble size measured as the number n of cells in the cluster. Large gray bars: l_{\rm cell}=0.5\sigma ; thin blue bars: l_{\rm cell}=0.125\sigma . In both cases, the probability decreases monotonously when the bubble size increases. The highest probability is for the first bin (single cell cavities), reaching 38% for l_{\rm cell}=0.5\sigma and 19% for 0.125\sigma , meaning that a large portion of detected cavities have dimensions close to the grid mesh. Comparison between these normalized histograms requires to represent them as a function of the absolute bubble volume v=n\delta . The result is shown in Fig. 7 for the six grid meshes considered in this study. Figure 7: Normalized frequency histograms h_{\delta}(v) given as a function of the reduced cavity volume v/\sigma^{3} for the six grid meshes l_{\rm cell} given in the figure. Because of the large range covered by the bubble volume and probability, the histograms are given in a log-log scale. Whatever the grid mesh, all histograms exhibit a monotonously increasing probability toward smaller cavities. The smallest grid mesh [Fig. 7 (f)] suggests that the probability should follow a power law h(v)\sim v^{-\alpha} for small cavity sizes. This is a puzzling result to be discussed below. Visual inspection of the evolution of the histograms with grid mesh does not exhibit anything special with the particular value l_{\rm cell}=0.5\sigma commonly adopted in literature. [ 52 , 51 ] In particular, it is evident that a lot of information below that size is lost. We are now in a position to calculate the density p_{v}(v)=dN_{v}/dv using the finite difference approximation p_{v}(v)\simeq\Delta N_{v}/\Delta v where \Delta N_{v} is the number of bubbles with volume between v and v+\Delta v . Taking the natural choice \Delta v=\delta , \Delta N_{v} is given by H_{\delta}(n) with n=v/\delta and p_{v}(n\delta)=H_{\delta}(n)/\delta for 1\leq n\leq V/\delta . The approximation should be better for bubble sizes much larger than the grid mesh, while it is obviously not appropriate for smaller bubbles. The result, given in Fig. 8 , shows that all histograms fall on the same curve independent of \delta . Figure 8: Symbols: reduced bubble size densities \sigma^{3}p_{v}(v) in log-log scale deduced from the histograms h_{\delta}(v) shown in Fig. 7 , and given as a function of the reduced bubble volume v/\sigma^{3} . The inset shows, in linear scale, the same data where the first three bins have been removed. The color code identifying each grid mesh is the same as in Fig. 7 . The thin lines connecting the symbols are guides to the eye. The black dotted line is a fit with Eq 3 with constant Q ; the black solid line is a fit with Eq 6 and the dashed lines are fits with Eq 7 including all data (black) or only the data for l_{\rm cell}=0.5\sigma (red). It is however interesting to notice that each choice of a grid mesh gives an optimal volume interval for the calculation of p_{v}(v) , between few \delta and hundreds of \delta . Below few \delta , the grid mesh is too rough to capture the exact volume of the bubble. This can be seen in Fig. 8 where the very first bins of each histogram depart from the main curve. Above hundreds of \delta , the bins are too thin, which induces increasing fluctuations that need to be smoothed out. The inset of Fig. 8 shows the data for the three smallest grids in linear scale, beyond the third bin where data are reliable. IV Discussion IV.1 The vanishing bubble limit How does the numerical results for p_{v}(v) compare to Eq 3 ? At first glance, the noticeable point is that Eq 3 leads to a finite value for p_{v}(0) , while we observe an apparent divergence in Fig. 8 . This is highlighted in the inset where the data obtained for the three smallest grid are reported in linear scale. In order to establish the expected behavior of the bubble size density p_{v}(v) for vanishing v , an analytical calculation has been attempted. We first notice that for a vanishing grid mesh, the voids detected with the W-method converge to the regions out of the Stillinger spheres (corresponding to the white regions in Fig. 3 ). Therefore, the limit of the distribution p_{v}(n\delta)=H_{\delta}(n)/\delta for vanishing \delta can be obtained by calculating the density p_{v}(v)=dN_{v}/dv of the distribution of these empty regions (inversion of limits). As we are interested in the behavior of vanishing bubbles, we focus on the tiny empty voids that may appear between the Stillinger spheres. Figure 10 gives an example in two-dimensions where a small triangular void is delimited by the Stillinger spheres of three molecules. The Appendix gives the detailed calculation of the volume expansion around zero of p_{v}(v) , in one, two and three dimensions, and proposes a generalization in dimension d (Eq 24 ). In three dimensions, one has: p_{v}(v){\underset{\;v\to 0\;\,}{=}}\frac{A_{v}}{v^{2/3}}+\frac{B_{v}}{v^{1/3}}+C_{v}+o(1) (5) The details of the fluid-fluid interactions are absorbed into the constants A_{v} , B_{v} and C_{v} . In order to make Eqs 1 , 3 and 5 mutually compatible, Q cannot be a constant and has to vary around v=0 according to Q=A_{v}v^{-2/3} . Discarding in Eq 1 the negligible volume contribution to the free energy compared to the surface term (we are considering small bubbles), the expression for p_{v}(v) reads: p_{v}(v)=\frac{A_{v}}{v^{2/3}}e^{-(36\pi v^{2})^{1/3}\gamma/kT} (6) where we have made the hypothesis that the bubbles are spherical. A best fit with the distributions calculated from simulations gives A_{v}=2.15\sigma^{-1} , and \gamma=0.108\epsilon/\sigma^{2} (solid black line in Fig. 8 ). As can be seen, the agreement is considerably improved compared to a fit with Eq 3 where Q is supposed to be constant (dotted line). This is particularly true on the leftmost side of the figure where the slope of v^{-2/3} clearly accommodates the data. On the other hand, for v\geq 0.5\sigma^{3} , the agreement is quite poor. The surface contribution in the exponent varies too rapidly to fit the data. Introducing an asphericity of the bubble would result in an effective surface tension without changing the fit. [ 65 ] Restoring the volume contribution in the exponent would not help since the variation would be even faster. Taking into account the term B_{v}v^{-1/3} from Eq 5 into the prefactor of Eq 6 does not improve neither. The most efficient way to improve the fit is to introduce a slowly varying contribution v^{1/3} in the exponent: [ 66 , 67 , 68 ] p_{v}(v)=\frac{A_{v}}{v^{2/3}}e^{-[(36\pi v^{2})^{1/3}\gamma+\kappa_{v}v^{1/3}]/kT} (7) A best fit of simulation data with Eq 7 gives A_{v}=5.8\sigma^{-1} , \gamma=5\times 10^{-3}\epsilon/\sigma^{2} and \kappa_{v}=2.2\epsilon/\sigma (black dashed line in Fig. 8 ). Note that the obtained value for the surface tension is quite small and the corresponding term plays actually a minor role. Omitting this surface tension term gives essentially the same result with indistinguishable fits in Fig 8 : A_{v}=6.0\sigma^{-1} and \kappa_{v}=2.3\epsilon/\sigma . As a matter of fact, the new term \kappa_{v}v^{1/3} largely dominates for small bubbles with v\leq 50\sigma^{3} . A physical interpretation of this term will be given below when larger bubbles will be considered. The last point to be mentioned is that performing the same fit with only the data for l_{\rm cell}=0.5\sigma gives indistinguishable results (red dashed line in Fig 8 ). The reason is that the information gained with smaller meshes is entirely contained in the v^{-2/3} dependence for vanishing bubbles. This is an important observation regarding the practical use of the W-method: combined with Eq 7 , l_{\rm cell}=0.5\sigma is a good compromise between precision and computational cost. IV.2 Volume versus radius densities and free energy profile In most cases, when the capillarity approximation is invoked and the bubble is supposed to be spherical, its size is characterized by its radius instead of its volume. From Eqs 4 and 7 it is seen that the prefactor in this radial representation is now expected to be a constant, and the new term \kappa_{v}v^{1/3} is now linear with r . In the general case where bubbles are not spherical, one can introduce an effective radius r_{e}=(3v/4\pi)^{1/3} . The corresponding expression for the radius density reads: p_{r}(r_{e})=A_{r}e^{-[\kappa_{r}r_{e}+W(r_{e})]/kT} (8) where A_{r}=(36\pi)^{1/3}A_{v} , \kappa_{r}=(4\pi/3)^{1/3}\kappa_{v} , and W(r_{e}) is the capillarity approximation given by Eq 1 where r is taken equal to r_{e} . This equation allows to define an effective free energy W_{\rm eff}(r_{e})=-kT\ln p_{r}(r_{e}) (9) cleared from the spurious divergence for vanishing bubbles. This can be seen in the inset of Fig. 9 giving W_{\rm eff}/kT calculated from the simulation data. Figure 9: Effective free energy profiles W_{\rm eff}(r_{e})/kT given by Eq 9 , as a function of the bubble effective radius r_{e}/\sigma=(3v/4\pi)^{1/3}\sigma^{-1} . The data (colored symbols) are deduced from Fig. 8 and Eq 4 . The color code identifying each grid mesh is the same as in Fig. 8 . The first three bins of each histogram have been omitted. In the inset, all data for r_{e}\leq 2\sigma are shown, while in the main panel, data for l_{\rm cell}>0.5\sigma are omitted for clarity. The results from biased umbrella sampling for r_{e}\geq\sigma are shown as squares in the main panel. The lines are best fits with Eq 8 (solid line), or without W(r_{e}) (dashed line), or with \kappa_{r}=0 (dotted line). Typical bubbles are shown for r_{e}/\sigma=1.3 , 2.5 and 4.0. As previously, the first bins of the histograms are omitted since the corresponding densities deduced from finite difference are erroneous, see Fig. 8 . As can be seen, all histograms fall on the same curve. But now, the noticeable point is that the plotted quantity clearly reaches a finite value at vanishing bubble size. It is possible to define and calculate the limit W_{\rm eff}(r_{e}\rightarrow 0) (=- 3.3kT in our case) which corresponds to -kT\ln A_{r} . This allows to unambiguously define a free energy difference W_{\rm eff}(r_{e})-W_{\rm eff}(0) that can be interpreted as the free energy of formation of the bubble (that correctly reaches zero for a vanishing bubble). It is emphasized that this is not possible if one uses p_{v} instead of p_{r} in Eq 9 . IV.3 Free energy of formation of a bubble beyond the capillarity approximation How does the previous definition of the free energy of formation of a bubble W_{\rm eff}(r_{e})-W_{\rm eff}(0) compare with the capillarity approximation? We have already seen that an extra term \kappa_{r}r_{e} has to be introduced to fit the data for small bubbles. What happens for larger bubbles? We have used the umbrella sampling method to calculate the probability distribution up to r_{e}=4\sigma . [ 57 ] The results are given in Fig. 9 (squares), as well as the previous data for l_{\rm cell}\leq 0.5\sigma . The previous fit with Eq 7 and \gamma=0 (dashed line in Fig 8 ) is also reported in Fig 9 (dashed line, corresponding to Eq 8 with W(r_{e}) set to zero). As can be seen, the simulation data for large bubbles ( r_{e}\geq 2\sigma ) now depart from the dashed straight line corresponding to the previous fit without the surface and volume contributions. Re-introducing the surface tension allows to fit nicely the data over the whole available range (solid line in Fig 9 , with \gamma=0.02\epsilon/\sigma^{2} ; the volume term was unnecessary, but would undoubtedly contribute for larger bubbles). For comparison, a best fit with Eq 8 with \kappa_{r}=0 (dotted line) has also been attempted. This would correspond to considering only the usual capillarity approximation. As can be seen, the agreement is quite poor. What is the significance of the introduction of the linear term \kappa_{r}r_{e} ? The first point to be mentioned is that the cavity distribution may be method-dependent, in particular for small bubbles. This could influence the magnitude of the linear term: further work is required to evaluate this point. However, in the case of the W-method, a linear term is required to fit the data down to the smallest bubbles. It might be tempting to interpret this term as a consequence of the dependence of the surface tension on the bubble curvature -2/r , according to \gamma(r)=\gamma_{\infty}/(1-2\tau/r) , where \tau\simeq-0.1\sigma is Tolman’s length. [ 69 , 70 , 13 , 71 , 72 , 17 ] In this context, if one identifies the linear term \kappa_{r}r with 8\pi\tau\gamma_{\infty}r appearing in the expansion for large bubbles of the surface energy 4\pi r^{2}\gamma(r) , one gets \tau=\kappa_{r}/(8\pi\gamma_{\infty})=1.2\sigma . This is at odds both in sign and magnitude with the expected value. As a matter of fact, this is not contradictory since Tolman’s expansion is for large bubbles while \kappa_{r}r is introduced for very small ones. From a physical point of view, \kappa_{r}r is more likely interpreted as an effective term to take into account the fact that small bubbles are not of spherical shape (see snapshots in Fig 9 ). \kappa_{r} would correspond to an additional linear energetic contribution associated with surface corrugation. What is the consequence of neglecting the linear term \kappa_{r} in the context of phase transitions, in particular for the calculation of nucleation barriers? By definition, the barrier is the free energy of formation of the critical nucleus, i.e. W(r_{c})-W(0) where r_{c} is the critical radius. If the linear contribution is omitted in Eq 8 ( \kappa_{r}=0 ), i.e. W_{\rm eff} is replaced by the capillarity approximation Eq 1 , a best fit can be performed on the largest bubbles where this approximation is expected to be better ( r_{e}\geq 3\sigma in our case). The result is given in Fig 9 (dotted line). As can be seen, this results in a significant difference for W(0) , 5.5 kT in our case, that reports directly on the nucleation barrier. For comparison, the CNT predicts a reduced barrier around 20 kT for kT/\epsilon=1 and \Delta P\sigma^{3}/\epsilon=-0.03 corresponding to our thermodynamic conditions: the error then reaches 25%. For larger barriers, more likely to appear in realistic experimental situations, the relative error would be smaller, but not necessarily negligible. V Conclusion Spontaneous tiny bubbles are ubiquitous in liquids, in the stable as well as in the metastable state. They are particularly important in the context of the liquid-to-vapor phase transition as they play a fundamental role in the process of nucleation. In particular, the probability of finding bubbles of the critical size appears in the classical nucleation theory. More generally, the bubble size distribution is generally translated into a free energy profile through Eq 3 , with an associated free energy of formation that can be written in terms of surface and volume contributions in the capillarity approximation (Eq 1 ) valid for large bubbles. In this work we have focused on small bubbles or cavities, typically of the order of the molecular size. We have shown that: (i) The W-method [ 52 ] is efficient to detect tiny bubbles if the mesh l_{\rm cell} is chosen small enough. In practice, it is enough to take l_{\rm cell}=0.5\sigma : large bubbles are well characterized, while the size distribution of small bubbles is well accounted for thanks to the following points (ii) and (iv). (ii) The bubble volume distribution p_{v} follows a v^{-2/3} law in the vanishing limit, while the distribution p_{r} calculated for the equivalent radius r_{e}=(3v/4\pi)^{1/3} converges toward a constant in virtue of Eq 4 . (iii) One can define an effective free energy according to Eq 9 . Thanks to point (ii), W_{\rm eff}(0) exists, and it is possible to define the free energy of formation of the bubble as W_{\rm eff}(r_{e})-W_{\rm eff}(0) , which correctly reaches zero for a vanishing bubble. Despite the fact that, in most cases, Eq 9 seems to be correctly used in literature, it has never been clearly stated, and implications of Eq 4 have never been discussed. It is however emphasized that using p_{v} instead of p_{r} in Eq 9 does not allow to define properly a free energy of formation of the bubble. (iv) Comparison of W_{\rm eff} with the capillarity approximation Eq 1 shows that it is necessary to introduce a linear term \kappa_{r}r_{e} , that can be interpreted as an effective correction to the fact that bubbles significantly depart from the spherical shape. As a conclusion, gathering these recommendations in the context of nucleation should allow to improve the calculation of free energy barriers, in particular when the critical bubble is small and the corresponding barrier is low. Acknowledgements. The author acknowledges fruitful discussions with E. Rolley and P. Porion, and is grateful to the CNRS interdisciplinary “Défi Needs” through its “MiPor” program (Project DARIUS) and the financial support of Agence Nationale de la Recherche through the project ANR-23-CE30-0028-03 (NanoCav). Author Declarations Conflict of interest The author has no conflicts to disclose. Author contributions Joël Puibasset: Conceptualization ; Data curation ; Writing – original draft ; Writing – review & editing. Data Availability Statement The data that support the findings of this study are available from the corresponding author upon reasonable request. VI Appendix This section is devoted to the calculation of the bubble size distribution in the vanishing limit. It is shown that a general relation can be obtained with minimal hypotheses. For clarity, the argument is first presented in details in dimensions 1 and 2. In dimension 3 we give only the important steps, leading to a generalization to dimension d . VI.1 Definitions The first step of the W-method consists in identifying the liquid-like atoms with the Stillinger’s criterion, [ 56 ] which compares the number of neighboring molecules with a given threshold. The liquid-like atoms are then replaced by a sphere of radius corresponding to the first minimum of the radial distribution function (Stillinger’s sphere). These criteria obviously depend on the space dimension d : the radius of the Stillinger d -dimensional sphere will be denoted as R_{d} , where R_{3}=1.625\sigma in our case of a Lennard-Jones fluid at kT/\epsilon=1 . The positions of the Stillinger spheres are denoted as {\bf r}_{i} , and the distance between spheres i and j is denoted as r_{ij} . Let us now focus on the conditions to have a vanishing bubble, corresponding to the smallest voids that can be built between the Stillinger spheres. In one dimension, these voids consists in linear intervals between two adjacent and non-overlapping 1D-spheres. In two dimensions, they consist in curvilinear triangles formed by three disks which overlap in pairs, but not all three together. In three dimensions, four spheres are required, which overlap three by three, but not all four together. Let us denote V_{d}({\bf r}_{i_{0}},...,{\bf r}_{i_{d}}) the volume of the void between the (d+1) d -dimensional spheres i_{0},...,i_{d} verifying the above mentioned conditions. The probability to have a void of volume equal to a given infinitesimal d -volume v_{d} is proportional to the average number of such voids: \displaystyle\begin{split}&p_{v}(v_{d})\propto\\ &\int e^{-H({\bf r}_{1},...,{\bf r}_{N})/kT}\sum_{i_{0},...,i_{d}}\delta(V_{d}({\bf r}_{i_{0}},...,{\bf r}_{i_{d}})-v_{d})d{\bf r}_{1}...d{\bf r}_{N}\end{split} (10) where the sum runs over all ( d +1)-uplet (i_{0},...,i_{d}) of spheres and \delta is the Dirac distribution that selects those satisfying the condition to form a small void with the given volume v_{d} . The exponential is the Boltzmann weight associated with the statistical ensemble under consideration, chosen to be canonical in this example for simplicity. However, the argument can be generalized to any statistical ensemble. The integration runs over the coordinates of the N spheres in the system. The vanishing voids between Stillinger spheres are rare enough to be considered as spatially independent. Therefore, their number distribution follows a Poisson law, and the average number of voids of a given size in proportional to the probability to have exactly one void of the given size. By symmetry, all the ( d +1)-uplets of the sum contribute equally. Therefore, the calculation can be done only for the particular choice of spheres 1 to ( d +1): \displaystyle\begin{split}&p_{v}(v_{d})\propto\\ &\int e^{-H^{\prime}({\bf r}_{1},...,{\bf r}_{d+1})/kT}\delta(V_{d}({\bf r}_{1},...,{\bf r}_{d+1})-v_{d})d{\bf r}_{1}...d{\bf r}_{d+1}\end{split} (11) where the integration now runs only on the ( d +1) positions of the Stillinger spheres that form the void. This is possible through a redefinition of the Boltzmann weight by integration on the remaining spheres: e^{-H^{\prime}({\bf r}_{1},...,{\bf r}_{d+1})/kT}=\int e^{-H({\bf r}_{1},...,{\bf r}_{N})/kT}d{\bf r}_{d+2}...d{\bf r}_{N} (12) VI.2 In dimensions one and two In one-dimensional space, the volume of the void between the two 1D-spheres is V_{1}({\bf r}_{1},{\bf r}_{2})=V_{1}(r_{12})=r_{12}-2R_{1} if the mutual distance r_{12}\geq 2R_{1} and is zero otherwise. By translation invariance, H^{\prime}({\bf r}_{1},{\bf r}_{2})=H^{\prime}(r_{12}) , and can be expanded around 2R_{1} : H^{\prime}({\bf r}_{1},{\bf r}_{2})=H^{\prime}(2R_{1})+\alpha V_{1}+o(V_{1}) . Equation 11 then gives p_{v}(v_{1})\propto Ve^{H^{\prime}(2R_{1})}(1+\alpha v_{1}+o(v_{1})) , where the total volume V comes from the global translation invariance. The probability is then finished around v_{1}=0 . In two-dimensional space, the expression for V_{2}({\bf r}_{1},{\bf r}_{2},{\bf r}_{3}) is more involved, but depends only on the mutual distances: V_{2}(r_{12},r_{13},r_{23}) . The first condition, that the 2D-spheres overlap by pairs, is r_{ij}\leq 2R_{2} . Such a situation is depicted in Fig. 10 , where the three molecules at {\bf r}_{1},{\bf r}_{2},{\bf r}_{3} (materialized by the points M_{1} , M_{2} and M_{3} ) are represented by solid circles of diameter \sigma , and their corresponding Stillinger 2D-spheres are represented by the dotted circles. Figure 10: Schematic representation in the two-dimensional case of three atoms (solid circles of diameter \sigma ) at {\bf r}_{1} , {\bf r}_{2} and {\bf r}_{3} materialized by the points M_{1} , M_{2} and M_{3} , and their corresponding Stillinger 2D-spheres represented by the dotted circles. A small void (central curvilinear triangle ABC in black) may exist between these spheres if they overlap by pairs, but do not overlap all three together. The hatched areas resulting from the intersection between disks i and j and the main triangle M_{1}M_{2}M_{3} are denoted as A^{h}_{ij} . The second condition, that the three spheres do not overlap together, is equivalent to the existence of the 3-branch star delimited by the points M_{1}AM_{2}BM_{3}C , where A , B and C are at the intersection between the three Stillinger disks that fall inside the triangle M_{1}M_{2}M_{3} (see Fig. 10 ). The area of this star is given by the area A_{123} of the main triangle M_{1}M_{2}M_{3} , minus the sum of the areas of the three minor triangles M_{1}AM_{2} , M_{2}BM_{3} and M_{1}CM_{3} in gray in Fig. 10 . Using Heron’s formula, A_{123}=0.25\sqrt{(r_{12}^{2}+r_{13}^{2}+r_{23}^{2})^{2}-2(r_{12}^{4}+r_{13}^{4}+r_{23}^{4})} and the sum of the area of the minor triangles is given by \sum_{ij}0.25r_{ij}\sqrt{4R_{2}^{2}-r_{ij}^{2}} for ij=12 , 23 and 13 . When these conditions are fulfilled, the void ABC (in black in Fig. 10 ) exists and its area is calculated as follows. Starting from the area of the full triangle M_{1}M_{2}M_{3} , one first removes the area of the three circular sectors defined by the intersection of the disks 1, 2 and 3 with the triangle M_{1}M_{2}M_{3} . This area equals 0.5(\theta_{1}+\theta_{2}+\theta_{3})R_{2}^{2}=0.5\pi R_{2}^{2} (see Fig. 10 ). However, each hatched area A^{h}_{ij} in Fig. 10 delimited by the intersection between the two disks i and j and the main triangle M_{1}M_{2}M_{3} is removed twice, and has to be compensated. Using A^{h}_{ij}=R_{2}^{2}\arccos(0.5r_{ij}/R_{2})-0.25r_{ij}\sqrt{4R_{2}^{2}-r_{ij}^{2}} , the final result reads: V_{2}({\bf r}_{1},{\bf r}_{2},{\bf r}_{3})=A_{123}-0.5\pi R_{2}^{2}+A^{h}_{12}+A^{h}_{23}+A^{h}_{13}. (13) This formula can be used to calculate numerically the exact volume of voids during the simulation of a 2D-fluid without resorting to a grid method. The analytical calculation of p_{v}(v_{2}) using Eqs 11 and 13 can be done by noticing that V_{2} is invariant by translation and rotation of the tree atoms as a whole. One then introduces the relative positions {\bf r^{\prime}}_{i}={\bf r}_{i}-{\bf r}_{1} for i = 2 and 3. The integration over d{\bf r^{\prime}}_{2} is donne in polar coordinates with trivial integration on the angular coordinate: \int d{\bf r^{\prime}}_{2} is replaced by 2\pi\int r_{12}dr_{12} . The remaining integration on d{\bf r^{\prime}}_{3} is done as follows. When r_{12} is chosen, the point A in Fig. 10 is determined. We introduce polar coordinates centered on A, the angles being measured with reference to the perpendicular bisector of points M_{1} and M_{2} , denoted as \Delta in Fig. 11 . Figure 11: Same atomic configuration as in Fig. 10 . \Delta is the perpendicular bisector of points M_{1} and M_{2} . l_{3} and \omega are the polar coordinates of M_{3} with respect to point A and axis \Delta . The solid circular arc is the locus of M_{3} giving a vanishing void V_{2} , while the dashed-dotted curve is the locus of M_{3} giving the finite void volume V_{2} corresponding to the depicted atomic configuration. The polar coordinates of the third atom M_{3} are denoted as l_{3}=|AM_{3}| and \omega (see Fig. 11 ). The void V_{2} exists only if l_{3}\geq R_{2} . Let us denote \xi=l_{3}-R_{2}\geq 0 . One has: V_{2}({\bf r}_{1},{\bf r}_{2},{\bf r}_{3})=V_{2}(r_{12},\xi,\omega) . For a vanishing void, \xi\rightarrow 0 , and the loci of the points M_{3} compatible with this condition fall on the circular arc of radius R_{2} , centered on A , and limited by the two straight lines M_{1}A and M_{2}A extended on the side of M_{3} , corresponding to the constraint that the Stillinger disk of the third atom has to cut the two other ones (see the solid circular arc in Fig. 11 ). For a finite V_{2}=v_{2} , the loci of M_{3} points can be determined numerically by calculating \xi^{*}(v_{2},r_{12},\omega) such that V_{2}(r_{12},\xi^{*},\omega)=v_{2} (see for example the dash-dotted line in Fig. 11 that gives the loci of points M_{3} giving the void volume corresponding to the depicted atomic configuration). Gathering everything: \displaystyle\begin{split}&p_{v}(v_{2})\propto\\ &\int e^{-H^{\prime}(r_{12},\xi,\omega)/kT}\delta(V_{2}(r_{12},\xi,\omega)-v_{2})(\xi+R_{2})r_{12}dr_{12}d\omega d\xi\end{split} (14) where the integral runs from 0 to 2 R_{2} for r_{12} , from 0 to R_{2} for \xi and from \theta-\pi/2 to \pi/2-\theta for \omega . The calculation can be done numerically for any void v_{2} , but an analytical expansion can be found in the vanishing limit v_{2}\rightarrow 0 . Expanding Eq 13 , it can easily be shown that V_{2}(r_{12},\xi,\omega)=0.5\xi^{2}\{\tan(\theta+\omega)+\tan(\theta-\omega)\}+o(\xi^{2}) (15) where \theta is defined in Fig. 11 . Integration of the delta function with respect to \xi gives a factor (dV_{2}/d\xi)^{-1}=0.5\xi^{*}(v_{2},r_{12},\omega)/v_{2} where \xi^{*} as been previously defined. One gets: p_{v}(v_{2})\propto\int e^{-H^{\prime}(r_{12},\xi^{*},\omega)/kT}\{0.5\xi^{*}(\xi^{*}+R_{2})/v_{2}\}r_{12}dr_{12}d\omega (16) Noticing that, from Eq 15 , \xi^{*}(v_{2},r_{12},\omega)=f(r_{12},\omega)\sqrt{v_{2}}+o(\sqrt{v_{2}}) , and expanding H^{\prime}(r_{12},\xi^{*},\omega)=H^{\prime}(r_{12},0,\omega)+\alpha(r_{12},\omega)\xi^{*}+o(\xi^{*}) , the probability can be written as: p_{v}(v_{2})\propto\frac{A_{2}}{\sqrt{v_{2}}}+B_{2}+o(1) (17) where A_{2}=0.5\int e^{-H^{\prime}(r_{12},0,\omega)/kT}f(r_{12},\omega)R_{2}r_{12}dr_{12}d\omega (18) and B_{2}= 0.5\int e^{-H^{\prime}(r_{12},0,\omega)/kT}f(r_{12},\omega)^{2}(1+\alpha(r_{12},\omega)R_{2})r_{12}dr_{12}d\omega (19) Figure 12 shows the results of a two-dimensional simulation of disks in a plane. Figure 12: Symbols: cavity size density p_{v} in log-log scale for random disks in a two-dimensional box (green triangles) or spheres in a three-dimensional box (black circles). The green and black lines correspond to the main term in Eqs 17 and 23 for the 2D and 3D cases respectively. We have chosen to ignore the interactions (random disks). This is possible since their influence is limited to the constants A_{2} , B_{2} , etc. appearing in the expansion. The main behavior \sim 1/\sqrt{v_{2}} is thus independent of the interactions. As can be seen in Fig. 12 the agreement is excellent in the vanishing limit (straight line in log-log scale). VI.3 In dimensions three and higher In three dimensions, the expression of V_{3} is even more involved, and an exact expression has not be found. However, as previously, invariance by translation and rotation can be used, as well as an expansion of the void volume in the vanishing limit. The calculation in dimension three essentially proceeds in a way similar to the 2D case, with the following differences: (i) The conditions to have a closed void between the four Stillinger spheres require that they overlap three by three. In the previous 2D case, we encountered the opposite condition that three disks do not overlap, requiring that the area of the main triangle M_{1}M_{2}M_{3} in Fig. 10 be larger than the sum of the areas of the three minor triangles M_{1}AM_{2} , M_{2}BM_{3} and M_{1}CM_{3} in gray in Fig. 10 . This can easily be translated into a condition of overlapping of three spheres by considering their 2D intersection with the plane defined by their centers. Similarly, the condition of non-overlapping of the four spheres imposes a condition on their relative distances that will define the integration limits (next points). (ii) As previously the integration is done using radial and angular coordinates. The previous integration on r_{12} in 2D polar coordinates is replaced by a 3D spherical integration with the measure r_{12}^{2}dr_{12} . (iii) The position of the third atom is measured with respect to the first two ones, in cylindrical coordinates ( r_{3} , \phi_{3} , z_{3} ) around the z axis defined by the two first atoms. r_{3} is the distance of atom 3 with respect to this axis. The corresponding integration measure is r_{3}dr_{3}d\phi_{3}dz_{3} . By rotation invariance, integration over \phi_{3} is trivial. (iv) The position of the fourth atom is measured in spherical coordinates with the origin at the intersection of the first three spheres. As in the 2D case, a void between the four spheres exists only if the radial coordinate r_{4} is larger than R_{3} , the Stillinger radius in dimension three. We thus introduce \xi=r_{4}-R_{3}\geq 0 . The orientation is measured with two angles denoted \omega_{4} and \phi_{4} , and the integration measure is (\xi+R_{3})^{2}d\xi\sin{\omega_{4}}d\omega_{4}d\phi_{4} . The probability can therefore be written as follows: p_{v}(v_{3})=\int e^{-H^{\prime}(\xi,\Omega)/kT}\delta(V_{3}(\xi,\Omega)-v_{3})(\xi+R_{3})^{2}d\xi d\Omega (20) where \Omega is a shortcut for (r_{12},r_{3},z_{3},\omega_{4},\phi_{4}) and d\Omega=\sin{\omega_{4}}dr_{12}dr_{3}dz_{3}d\omega_{4}d\phi_{4} . Simple geometric considerations give the expansion of V_{3} in the vanishing limit: V_{3}(\xi,\Omega)=\xi^{3}g(\Omega) (21) We introduce \xi^{*}(v_{3},\Omega) such that V_{3}(\xi^{*},\Omega)=v_{3} . The delta function introduces the factor (dV_{3}/d\xi)^{-1}=(1/3)\xi^{*}/v_{3} , and one finally gets: p_{v}(v_{3})\propto\int e^{-H^{\prime}(\xi^{*},\Omega)/kT}\{(1/3)\xi^{*}(\xi^{*}+R_{3})^{2}/v_{3}\}d\Omega (22) As previously, expanding H^{\prime}(\xi,\Omega) around \xi=0 , one finally gets p_{v}(v_{3})\propto\frac{A_{3}}{v_{3}^{2/3}}+\frac{B_{3}}{v_{3}^{1/3}}+C_{3}+o(1) (23) where A_{3} , B_{3} and C_{3} follow from equations similar to Eqs 18 and 19 . Figure 12 shows the result of a three-dimensional simulation of spheres in space. As previously, the interactions are ignored since their influence is limited to the constants A_{3} , B_{3} , etc. As can be seen, the distribution in the vanishing limit follows the v_{3}^{-2/3} law (straight line in log-log scale). The previous argument suggests a generalization to dimension d . In particular, we use the symmetries as well as the radial and angular coordinates. Dimensional argument is used to obtain the cavity expansion in the vanishing limit resulting in an equation similar to Eq 21 . After integration, one gets: p_{v}(v_{d})\propto\frac{A_{d}}{v_{d}^{1-1/d}}+\frac{B_{d}}{v_{d}^{1-2/d}}+\frac{C_{d}}{v_{d}^{1-3/d}}+... (24) where the details of the interatomic forces are absorbed into the constants A_{d} , B_{d} , etc. As can be seen, except in one-dimension, the probability diverges for vanishing voids. In the context of the classical nucleation theory, the bubbles are supposed to be spherical, and the probability distribution of bubble sizes is generally given as a function of the sphere radius r . In this case, the bubble size density should verify p_{r}(r)dr=p_{v}(v_{d})dv_{d} (= the number of bubbles between r and r+dr ). Since v_{d}\propto r^{d} , one has: p_{r}(r)=d\frac{v_{d}}{r}p_{v}(v_{d})\propto A_{d}^{\prime}+B_{d}^{\prime}r+C_{d}^{\prime}r^{2}+... (25) In this radial representation, the bubble size density is expected to be finite for vanishing bubbles. This is an important point that allows to define the free energy of formation of a bubble (see main text). *