From Chemical Potential to Phase Diagram

Introduction

For phase transitions, the chemical potential measures the free energy for exchanging molecules between different phases. For a configuration of a system, the Widom insertion method yields the excess chemical potential, which is the chemical potential without the ideal part. However, brute-force insertion is computationally expensive. We have developed FMAP-enabled insertion with acceleration from fast Fourier transform. Both insertion methods require a set of configurations, which can be obtained through Monte Carlo (MC) simulation. The values of excess chemical potential for different densities and temperatures through MC and insertions are accessible from MC for LJ particles with brute-force insertion and MC for LJ particles with` FMAP-enabled insertion.

The density dependence of excess chemical potential

Input the number density and excess chemical potential data in pairs into the following box. The excess chemical potential should be in units of kT. The following example is from simulation with LJ shifted potetail at a cutoff of 3.0 σ and T=0.65 with FMAP-enabled insertion.

Number Density and Excess Chemical Potential Data Entry Area: Select: Ctrl+A | Copy: Ctrl+C | Paste: Ctrl+V

Polynomial fitting

We fit the density dependence of the excess chemical potential data to a polynomial without the constant term. While a high order allows the polynomial to match the data better, it may also overfit. We conclude that the fifth order is optimal. The details of polynomial regression are explained by P. Lutus (link provided in the Acknowledgement section).

Degree: 99

Results Area: Select: Ctrl+A | Copy: Ctrl+C | Paste: Ctrl+V

Equation for excess chemical potential

Coexistence line

Equation for chemical potential with ideal gas part added

With the above expression for the chemical potential, we use the Newton-Raphson method to find the intersections with a horizontal line and match the enclosed areas on the two sides. The equality in area ensures the equality in pressure between the dilute phase and dense phase, similar to a construction proposed by Maxwell.

Initial chemical potentail: ±

Condition of coexistence


The numerical results can be verified by Wolfram|Alpha

  • The x values of the intersections (red points) between the blue curve and black line are the roots of the polynomial at the desired chemical potential, check the roots
  • The left and right areas should be very close in absolute value but opposite in sign, check the values of the left area and the right area
  • The spinodal densities (blue points) are the roots of the derivative of the polynomial, check the roots of the derivative
Phase Diagram

The phase diagram collects binodal and spinodal densities at different temperatures.The preset data for brute-force and FMAP insertions are from calcualtion at L = 8.

Data Entry for brute-force

Data Entry for FMAP binodal

Data Entry for FMAP spinodal

  Show spinodal   Show brute-force
Note

The codes for this and other methods for calculating the binodals of phase-separated condensates are available on github

Acknowledgement

The polynomial fitting is modeled after polysolve by P. Lutus

References

S. Qin and H.-X. Zhou (2016). Fast method for computing chemical potentials and liquid-liquid phase equilibria of macromolecular solutions. J. Phys. Chem. B. 120, 8164-8174.

K. Mazarakos, S. Qin, and H.-X. Zhou (2023). Calculating binodals and interfacial tension of phase-separated condensates from molecular simulations, with finite-size corrections. Methods Mol. Biol. 2563, 1-35.