Skip to content

sfalmo/neural-attraction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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; 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.