This is a grand canonical Monte Carlo program to simulate truncated Lennard-Jones fluids and a monatomic water model wither in bulk, in contact with a solute or confined to an infinite slit. This program was written as part of my PhD and is made available under the MIT license in the hope that it will be useful for other students in the future.
Details of exactly how the program works and the theory behind it can be found in Section 4.2 of my thesis, available here. It currently supports (click the links for details)Fluids: Truncated Lennard-Jones fluid and monatomic water.
Geometries: Bulk fluid, small solutes and an infinite slit.
External Potentials: Solutes and the walls of infinite slits are impenetrable to fluid particles. There is an option for these to interact with fluid particles via an attractive Lennard-Jones tail.
Sampling: Insertion and deletion moves, multicanonical biasing, either with preset weights or with weights determined through the course of the simulation using the transition matrix method.
Measures: Density of particles within system, density profiles (radial distribution function for bulk fluids, distribution between slit walls or distribution around solute), local compressibility and thermal susceptibility profiles (see tutorial 4, section 4.2.10 of my thesis or this paper).
This program has been used for:
M. K. Coe, R. Evans and N. B. Wilding, The coexistence curve and surface tension of a monatomic water model. (Submitted to J. Chem. Phys.)
The Monte Carlo program is written in C++ for efficiency. This is compiled via a Makefile, so you shouldn't have to interact with the C++ code much (the exception to this is adding a random number generator, see tutorial 1 for details). In addition to the Monte Carlo code, there is also a folder called tools, which contains several Python modules. These modules contain functions to set up Input files, organise and run simulations in parallel, and process, analyse and visualise results. It is recommended that you use these functions, and write any scripts to run the Monte Carlo in Python. The source code for the Monte Carlo, the associated Makefile and a selection of the Python tools are already available within the repository. In addition, there will be several tutorials to help you understand what the program can be used for an how. These areTutorial 1 - Getting Started: (available now) This tutorial teaches you how to add a random number generator and test the program is working.
Tutorial 2 - Bulk Fluids:(available soon) This tutorial will teach you how to use the program to study bulk fluids, particularly at the critical point and at liquid-vapour coexistence. It will also introduce biased sampling techniques.
Tutorial 3 - Introducing Solute and Surfaces: (tbc) This tutorial will teach you how to add a solute or a slit to the system and measure density profiles.
Tutorial 4 - Measures: (tbc) This tutorial will explain some of the other measures available within the program and toolkit, and how to implement them.
Current known issues are:- At the end of the simulation, the program calculates the average move acceptance ratio incorrectly.