Giter Club home page Giter Club logo

rdf's Introduction

RDF

A code to compute the radial distribution function. This branch is initally planned for the undergraduate student's project on machine learning materials properties.

One could load the crystal from

  • POSCAR
  • CIF file

To perform RDF calculation, one needs to provide the following info

  • crystal structure
  • R_max (default 12 \AA)
  • step length (defult: 0.08 \AA)
  • sigma width for Gaussian smearing (default: 0.10 \AA)

Requirement

This code need the installation of Python3, scipy, numpy, pymatgen. The easiest way is to install them via anaconda or miniconda.

$ wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
$ bash Miniconda3-latest-Linux-x86_64.sh
$ conda install -c matsci pymatgen

Usage

$ pythonw RDF.py -h
Usage: RDF.py [options]

Options:
  -h, --help            show this help message and exit
  -c STRUCTURE, --crystal=STRUCTURE
                        crystal from file, cif or poscar, REQUIRED
  -r Rmax, --Rmax=Rmax  Rmax, default: 12 A
  -s SIGMA, --sigma=SIGMA
                        sigma width for Gaussian smearing, default: 0.20
  -d DELTA, --delta=DELTA
                        step length, default: 0.08
  -o MSTYLE, --output=MSTYLE
                        matplotlib style, fivethirtyeight, bmh, grayscale,
                        dark_background, ggplot
  -p PLOT, --plot=PLOT  generate the plot to file, default: None

Execution

one just needs to run the followings,

$ python RDF.py -c POSCAR-Ar

It will generate a png file with RDF plot as follows FCC-Ar

rdf's People

Contributors

qzhu2017 avatar yanxon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rdf's Issues

database

to create a python file to
1, extract the data (geometry, properties) from Aflowlib or materials project,
2, compute RDF based on the geometry, which is X.
3, the target properties would be Y
4, ML on f(x) = Y

Create the test case

to add a file called test.py
test if the RDF code is correctly done for different crystal systems.

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.