Skip to content

Database used for retraining the ReaxFF force field for the inorganic compound LiF.

License

Notifications You must be signed in to change notification settings

paolodeangelis/Enhancing_ReaxFF_DFT_database

Repository files navigation

Enhancing the ReaxFF DFT database

Data FAIR Made with Python OS - Linux Contributions - welcome Code style - black

pre-commit.ci status Codacy Badge License - CC BY 4.0 DOI

This repository contains the database used to re-parametrize the ReaxFF force field for LiF, an inorganic compound. The purpose of the database is to improve the accuracy and reliability of ReaxFF calculations for LiF. The results and method used were published in the article Enhancing ReaxFF for Molecular Dynamics Simulations of Lithium-Ion Batteries: An interactive reparameterization protocol.

This database was made using the simulation obtained using the protocol published in Enhancing ReaxFF repository.

Table of Contents

Installation

To use the database and interact with it, ensure that you have the following Python requirements installed:

Minimum Requirements:

  • Python 3.9 or above
  • Atomic Simulation Environment (ASE) library
  • Jupyter Lab

Requirements for Re-running or Performing New Simulations:

  • SCM (Software for Chemistry & Materials) Amsterdam Modeling Suite
  • PLAMS (Python Library for Automating Molecular Simulation) library

You can install the required Python packages using pip:

pip install -r requirements.txt

Warning

Make sure to have the appropriate licenses and installations of SCM Amsterdam Modeling Suite and any other necessary software for running simulations.

Folder Structure

The repository has the following folder structure:

.
├── CONTRIBUTING.md
├── CREDITS.md
├── LICENSE
├── README.md
├── requirements.txt
├── assets
├── data
│   ├── LiF.db
│   ├── LiF.json
│   └── LiF.yaml
├── notebooks
│   ├── browsing_db.ipynb
│   └── running_simulation.ipynb
└── tools
    ├── db
    ├── plams_experimental
    └── scripts
  • CONTRIBUTING.md: This file provides guidelines and instructions for contributing to the repository. It outlines the contribution process, coding conventions, and other relevant information for potential contributors.
  • CREDITS.md: This file acknowledges and credits the individuals or organizations that have contributed to the repository.
  • LICENSE: This file contains the license information for the repository (CC BY 4.0). It specifies the terms and conditions under which the repository's contents are distributed and used.
  • README.md: This file.
  • requirements.txt: This file lists the required Python packages and their versions. (see installation section)
  • assets: This folder contains any additional assets, such as images or documentation, related to the repository.
  • data: This folder contains the data files used in the repository.
    • LiF.db: This file is the SQLite database file that includes the DFT data used for the ReaxFF force field. Specifically, it contains data related to the inorganic compound LiF.
    • LiF.json: This file provides the database metadata in a human-readable format using JSON.
    • LiF.yaml: This file also contains the database metadata in a more human-readable format, still using YAML.
  • notebooks: This folder contains Jupyter notebooks that provide demonstrations and examples of how to use and analyze the database.
    • browsing_db.ipynb: This notebook demonstrates how to handle, select, read, and understand the data points in the LiF.db database using the ASE database Python interface. It serves as a guide for exploring and navigating the database effectively.
    • running_simulation.ipynb: In this notebook, you will find an example of how to get a data point from the LiF.db database and use it to perform a new simulation. The notebook showcases how to utilize either the PLAMS library or the AMSCalculator and ASE Python library to conduct simulations based on the retrieved data and then store it as a new data point in the LiF.db database. It provides step-by-step instructions and code snippets for a seamless simulation workflow.
  • tools: This directory contains a collection of Python modules and scripts that are useful for reading, analyzing, and re-running simulations stored in the database. These tools are indispensable for ensuring that this repository adheres to the principles of Interoperability and Reusability, as outlined by the FAIR principles.
    • db: This Python module provides functionalities for handling, reading, and storing data in the database.
    • plasm_experimental: This Python module includes the necessary components for using the AMSCalculator with PLASM and the SCM software package, utilizing the ASE API. It facilitates running simulations, and performing calculations.
    • scripts: This directory contains additional scripts for advanced usage scenarios of this repository.

Interacting with the Database

There are three ways to interact with the database: using the ASE db command line, the web interface, and the ASE Python interface.

ASE db Command-line

To interact with the database using the ASE db terminal command, follow these steps:

  1. Open a terminal and navigate to the directory containing the LiF.db file.

  2. Run the following command to start the ASE db terminal:

    ase db LiF.db
  3. You can now use the available commands in the terminal to query and manipulate the database. More information can be found in the ASE database documentation.

Web Interface

To interact with the database using the web interface, follow these steps:

  1. Open a terminal and navigate to the directory containing the LiF.db file.

  2. Run the following command to start the ASE db terminal:

    ase db -w LiF.db
  3. Open your web browser and connect to the local server at http://127.0.0.1:5000.

Example of Web Interface

Warning

To visualize the 3D structure of the system, you need to install the JMOL extension. You can use the script tools/scripts/install_jmol.py to automatically download and install it:

cd tools/scripts/
python install_jmol.py

ASE Python Interface

To interact with the database using the ASE Python interface, you can use the following example code:

from ase.db import connect

# Connect to the database
db = connect("LiF.db")

# Query the database
results = db.select("success=True")

# Iterate over the results
for row in results:
    print(f"ID: {row.id}, Energy: {row.energy}")

For a more detailed example, refer to the notebook notebooks/browsing_db.ipynb. To learn how to perform a simulation, check the notebook notebooks/running_simulation.ipynb.

Contributing

If you would like to contribute to the Enhancing ReaxFF DFT Database by performing new simulations and expanding the database, please follow the guidelines outlined in the Contribution Guidelines. You are welcome to submit pull requests or open issues in the repository. Your contributions are greatly appreciated!

How to Cite

If you use the database or the tools provided in this repository for your work, please cite it using the following BibTeX entries:

@article{deangelis2023enhancing,
  title={Enhancing ReaxFF for molecular dynamics simulations of lithium-ion batteries: an interactive reparameterization protocol},
  author={De Angelis, Paolo and
          Cappabianca, Roberta and
          Fasano, Matteo and
          Asinari, Pietro and
          Chiavazzo, Eliodoro},
  journal={Scientific Reports},
  volume={14},
  number={1},
  pages={978},
  year={2024},
  publisher={Nature Publishing Group UK London}
}
@dataset{EnhReaxFFdatabase,
  author       = {De Angelis, Paolo and
                  Cappabianca, Roberta and
                  Fasano, Matteo and
                  Asinari, Pietro and
                  Chiavazzo, Eliodoro},
  title        = {{Enhancing the ReaxFF DFT database}},
  month        = may,
  year         = 2023,
  publisher    = {Zenodo},
  version      = {1.0.0-beta},
  doi          = {10.5072/zenodo.1204707},
  url          = {https://doi.org/10.5281/zenodo.7959121}
}

License

The contents of this repository are licensed under the Creative Commons Attribution 4.0 International License.

Acknowledgments

This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 957189. The project is part of BATTERY 2030+, the large-scale European research initiative for inventing the sustainable batteries of the future.

The authors also acknowledge that the simulation results of this database have been achieved using the DECI resource ARCHER2 based in UK at EPCC with support from the PRACE aisbl.


Creative Commons Licence   BIG MAP site   SMALL site   POLITO site