Skip to content

yongwangxx/PyNEP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyNEP - Python tools for NEP

Features

  • ase calculator of NEP
  • latent descriptor of atoms
  • structures select
    • Farthest Point Sampling

Installation

Requirements

Package version
Python >= 3.8
NumPy < 1.22.0
SciPy >= 1.1
ase >= 3.18.0

By pip

$ pip install git+https://github.com/bigd4/PyNEP.git

By setup.py

$ git clone --recursive https://github.com/bigd4/PyNEP.git
$ cd pynep
$ python setup.py install

From Source

$ git clone --recursive https://github.com/bigd4/PyNEP.git
$ cd pynep/nep_cpu
$ mkdir build
$ cd build
$ cmake .. && make
$ cp nep.so ../../pynep

Add pynep to your PYTHONPATH environment variable in your ~/.bashrc file.

$ export PYTHONPATH=<path-to-pynep-package>:$PYTHONPATH

Usage

from pynep.calculate import NEP
import numpy as np
from ase.build import bulk

a = bulk('TePb', 'rocksalt', 6.6)
calc = NEP({'Te': 0, 'Pb': 1}, "nep.txt")
a.set_calculator(calc)
e = a.get_potential_energy()
f = a.get_forces()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 86.2%
  • Python 13.3%
  • Other 0.5%