This Python library is designed to calculate contact angles for a given trajectory file, written as part of my MPhil thesis. The algorithm is broadly based off https://pubs.acs.org/doi/abs/10.1021/la990171l.
- Aggregates selected simulation frames
- Evaluates the number density for each cell
- For each row of cells, the following
$\tanh$ function is fitted to the number density profile as a function of radial distance from the centre of mass:
of which
Easiest method is to clone the repository and install the package via pip. Ensure the correct Python environment has been selected before installing the package. Since the library is still under active development, we recommend creating a new virtual environment for this package.
git clone https://github.com/andrew-liang-2001/contact_angle.git
pip install /path/to/repository
A few helper scripts are included. For example, one script automatically obtains the equilibrium frame after supplying a CP2K energy file. Other scripts exist for handling IO functions.
This project is licensed under the MIT License - see the LICENSE file for details.