RDF
A code to compute the radial distribution function
Install / Use
/learn @qzhu2017/RDFREADME
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

Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
