Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 1.44 KB

README.md

File metadata and controls

25 lines (15 loc) · 1.44 KB

DOI

Neural density functional theory of liquid-gas phase coexistence

This repository contains code, datasets and models corresponding to the following publication:

Neural density functional theory of liquid-gas phase coexistence
Florian Sammüller, Matthias Schmidt, and Robert Evans, Phys. Rev. X 15, 011013 (2025); arXiv:2408.15835.

Setup

Working in a virtual environment is recommended. Set one up with python -m venv .venv, activate it with source .venv/bin/activate and install the required packages with pip install -r requirements.txt. To use a GPU with Tensorflow/Keras, refer to the corresponding section in the installation guide at https://www.tensorflow.org/install/pip.

Instructions

Simulation data can be found in data and trained models are located in models. A sample script for thermal training of a neural functional from scratch is given in learn.py. Utilities for making predictions with trained neural functionals are given in utils.py, see also predict.py for how to calculate self-consistent density profiles.

Further information

The reference data has been generated with grand canonical Monte Carlo simulations using MBD.