Giter Club home page Giter Club logo

flare's Introduction

Build Status documentation pypi activity codecov

FLARE: Fast Learning of Atomistic Rare Events

FLARE is an open-source Python package for creating fast and accurate interatomic potentials. Documentation of the code can be accessed here: https://flare.readthedocs.io/

We have an introductory tutorial in Google Colab available here.

Major Features

  • Gaussian Process Force Fields

    • 2- and 3-body multi-element kernels
    • Maximum likelihood hyperparameter optimization
  • On-the-Fly Training

    • Coupling to Quantum Espresso, CP2K, and VASP DFT engines
  • Mapped Gaussian Processes

    • Mapping to efficient cubic spline models
  • ASE Interface

    • ASE calculator for GP models
    • On-the-fly training with ASE MD engines
  • Module for training GPs from AIMD trajectories

Many-body extension

If you want to train a more accurate many-body potential on the fly, check out our many-body extension flare++, with an introductory tutorial available here.

Prerequisites

  1. To train a potential on the fly, you need a working installation of a DFT code compatible with ASE (e.g. Quantum ESPRESSO, CP2K, or VASP).
  2. FLARE requires Python 3 with the packages specified in requirements.txt. This is taken care of by pip.

Installation

FLARE can be installed in two different ways.

  1. Download and install automatically:
    pip install mir-flare
    
  2. Download this repository and install (required for unit tests):
    git clone https://github.com/mir-group/flare
    cd flare
    pip install .
    

Tests

We recommend running unit tests to confirm that FLARE is running properly on your machine. We have implemented our tests using the pytest suite. You can call pytest from the command line in the tests directory to validate that Quantum ESPRESSO or CP2K are working correctly with FLARE.

Instructions (either DFT package will suffice):

pip install pytest
cd tests
PWSCF_COMMAND=/path/to/pw.x CP2K_COMMAND=/path/to/cp2k pytest

References

  • If you use FLARE in your research, or any part of this repo (such as the GP implementation), please cite the following paper:

    [1] Vandermause, J., Torrisi, S. B., Batzner, S., Xie, Y., Sun, L., Kolpak, A. M. & Kozinsky, B. On-the-fly active learning of interpretable Bayesian force fields for atomistic rare events. npj Comput Mater 6, 20 (2020). https://doi.org/10.1038/s41524-020-0283-z

  • If you use MGP or LAMMPS pair style, please cite the following paper:

    [2] Xie, Y., Vandermause, J., Sun, L. et al. Bayesian force fields from active learning for simulation of inter-dimensional transformation of stanene. npj Comput Mater 7, 40 (2021). https://doi.org/10.1038/s41524-021-00510-y

flare's People

Contributors

jonpvandermause avatar yuuuxie avatar nw13slx avatar stevetorr avatar simonbatzner avatar anjohan avatar claudiozeni avatar aldogl avatar kylebystrom avatar spahng avatar dmclark17 avatar aaronchen0316 avatar smheidrich avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.