# GPUMDkit
**Repository Path**: pfsuo/GPUMDkit
## Basic Information
- **Project Name**: GPUMDkit
- **Description**: GPUMDkit from github
- **Primary Language**: Unknown
- **License**: GPL-3.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2026-05-06
- **Last Updated**: 2026-06-04
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
English
·
简体中文
·
Website ·
Documentation
·
Gallery
GPUMDkit 是面向 GPUMD(Graphics Processing Units Molecular Dynamics)和 NEP(neuroevolution potential)程序的工具包。它提供用户友好的命令行界面,简化常见脚本和工作流程,涵盖脚本调用、格式转换、结构采样、NEP 构建流程及各类分析,旨在提升用户工作效率。
## 功能特点
- **简化脚本调用**:轻松运行 GPUMD 和 NEP 相关脚本。
- **工作流自动化**:自动化常见任务,节省时间,减少人工干预。
- **用户友好界面**:直观的 shell 命令,提升使用体验。
## 安装
按以下步骤安装 `GPUMDkit`:
1. 克隆仓库或下载整个项目。
```
git clone https://github.com/zhyan0603/GPUMDkit.git
```
如需下载指定分支,可使用 `-b` 参数,例如:
```
git clone -b dev https://github.com/zhyan0603/GPUMDkit.git
```
2. 执行以下命令:
```
cd GPUMDkit; source ./install.sh
```
## 依赖项
`GPUMDkit` 的部分高级功能需要以下 Python 包:
```bash
# 创建干净的 conda 环境
conda create -n gpumdkit python=3.12
conda activate gpumdkit
# 安装所需包
pip install neptrain ase pymatgen dpdata
```
提示:使用 `GPUMDkit` 功能前,请确保已激活 `gpumdkit` 环境。
## 更新
如果设备可以访问 `github`,直接运行:
```
gpumdkit.sh -update
```
否则需要手动下载新版本:
```
wget https://github.com/zhyan0603/GPUMDkit/archive/refs/heads/main.zip
```
## 使用方法
提供两种模式:*交互模式* 和 *命令行模式*
#### 交互模式
---
1. 打开终端。
2. 执行 `gpumdkit.sh`:
```
gpumdkit.sh
```
3. 根据屏幕提示交互式选择并运行所需功能。
```
____ ____ _ _ __ __ ____ _ _ _
/ ___| _ \| | | | \/ | _ \| | _(_) |_
| | _| |_) | | | | |\/| | | | | |/ / | __|
| |_| | __/| |_| | | | | |_| | <| | |_
\____|_| \___/|_| |_|____/|_|\_\_|\__|
GPUMDkit Version 1.5.5 (dev) (2026-05-10)
Core Developer: Zihan YAN (yanzihan@westlake.edu.cn)
Main Contributors: Denan LI, Xin WU, Zhoulin LIU & Chen HUA
---------------------- GPUMD ------------------------
1) Format Conversion 2) Sample Structures
3) Workflow 4) Calculators
5) Analyzer 6) Visualization
7) Utilities 8) Developing...
0) Exit
------------>>
Input the function number:
```
#### 命令行模式
----
对于熟悉 `GPUMDkit` 的用户,命令行模式可直接向 `gpumdkit.sh` 传递参数,执行更快捷。以下是一些示例:
##### 示例 1:查看帮助信息
```
gpumdkit.sh -h
```
帮助信息如下:
```
+-------------------------------------------------------------------------------------------------------+
| GPUMDkit 1.5.5 (dev) (2026-05-10) Command Help |
+-------------------------------------------------------------------------------------------------------+
| MAIN FUNCTIONS |
+-------------------------------------------------------------------------------------------------------+
| -h Show this help table | -plt Plot and visualization tools |
| -calc Calculator tools | -time Time-consuming analyzer |
| -update Update GPUMDkit | -clean Clean extra files in current dir |
+-------------------------------------------------------------------------------------------------------+
| FORMAT CONVERSION |
+-------------------------------------------------------------------------------------------------------+
| -out2xyz OUTCAR -> extxyz (shell) | -out2exyz OUTCAR -> extxyz (python) |
| -cp2k2xyz CP2K log -> xyz | -xdat2exyz XDATCAR -> extxyz |
| -cif2pos cif -> POSCAR | -cif2exyz cif -> extxyz |
| -pos2exyz POSCAR -> extxyz | -exyz2pos extxyz -> POSCAR |
| -pos2lmp POSCAR -> LAMMPS data | -lmp2exyz LAMMPS dump -> extxyz |
| -traj2exyz ASE traj -> extxyz | -replicate Replicate structure |
| -addgroup Add group labels | -addweight Add structure weight in extxyz |
| -clean_xyz Clean extra info in extxyz | -get_frame Extract specific frame |
| -frame_range Extract frames by range | |
+-------------------------------------------------------------------------------------------------------+
| ANALYSIS |
+-------------------------------------------------------------------------------------------------------+
| -range Energy/force/virial statistics | -analyze_comp Analyze composition |
| -chem_species Analyze chemical species | -cbc Charge balance check |
| -min_dist Min distance (no PBC) | -min_dist_pbc Min distance with PBC |
| -filter_dist Filter by min_dist (no PBC) | -filter_dist_pbc Filter by min_dist (PBC) |
| -pda Probability density analysis | -hbond Hydrogen-bond analysis |
| -pynep FPS sampling by PyNEP | |
+-------------------------------------------------------------------------------------------------------+
| Detailed usage: gpumdkit.sh -