Copyright (C) 2022 Juan Manuel Henning (See GPLv3 License)
The main idea of the project is to investigate the liquid-gas transition of a fore-shifted Lenard-Jones particle system via Gibbs ensemble Monte Carlo simulations. In particular, we wish to determine the system's liquid-gas binodal in the temperature-density plane and the phase diagram in the pressure-temperature plane. We will compare the obtained binodal with results from the literature, and we will discuss the behavior around the critical point in light of the van der Waals equation of state.
The full report can be found in the repository as a PDF file. The plots can be found in the 'GEMCS plots.ipynb' jupyter-notebook (new path names are needed in order to load the data).
Main GEMCS file. The following simulation parameters can be changed here: totV, V_BoxA, V_boxB, Ntot, N_BoxA, N_BoxB, temperature, dmax, Vmax, eqsweeps (number of sweeps for thermalization), sweeps (GEMCS sweeps).
Global random functions.
Progress Bar animation for the terminal output.
Particle and Box properties.
Functions for computing the total potential energy, as well as rescaled potential energy.
Monte Carlo Moves. MC move probabilities can be changed Pn, Pd, Pv.
Static correlation function g(r) (radial distribution function).
Verlet list definition for faster GEMC simulations, as opposed to updating pair interactions every round. (Uses celllist.h)
Celllist for faster GEMC simulations (used by verletlist3D.h)
The folder '100K' contains the results of the GEMCS for different temperatures, 'gr' contains the results of the radial distribution function for different temperatures, and 'thermal_eq' contains the thermal equilibrium data.
Binodal data GEMCS numerical results.
rho_l - rho_g data points for fit via the scaling law.
Data points of the binodals in Verlet's paper, as mentioned in the report (experimental/numerical binodals).
Pressure numerical data for the gas and liquid phase.
Pressure data of the GEMCS for different temperatures, taking the average of liquid-gas pressure numerical results from pressure.dat.
data points for the liquid-gas average density for fit with the coexistence width line.
Data points of the binodal in Vrabec's paper.
Data on the Gaussian fit's standard deviation for the points on the T-rho phase diagram.
Data on the total time of the simulation for every temperature, and data on the equilibrium point for every temperature.