Skip to main content

Phase diagram & chemical potential heatmap generator — binary/ternary composition diagrams, chempot diagrams, and fixed chemical potential heatmaps from Materials Project API or local VASP data

Project description

chemphase

相图与化学势热图统一生成器 v5.0

Python License

一键从 Materials Project API 或本地 VASP 计算结果生成高质量相图。

功能

  • API 模式:从 Materials Project 数据库下载热力学数据
  • 本地模式:读取本地 VASP 计算目录 (POSCAR + vasprun.xml/OUTCAR)
  • 混合模式:本地数据 + API 补充
  • 二元成分相图:ΔE vs 成分,含 Hull 连线、自动标签避让
  • 三元成分相图:Gibbs 三角图 (Plotly 交互式),含 Hull 三角剖分
  • 结构对比:检测本地计算与 MP 数据库的晶体结构差异

安装

pip install chemphase

快速开始

API 模式(默认)

# 使用默认元素 Cu-Ag-O-Se
chemphase

# 指定元素
chemphase --elements Li O Co

本地 VASP 数据模式

chemphase --local /path/to/vasp/calculations --elements Cu Ag O Se

结构对比

chemphase --local /path/to/vasp/calculations --elements Cu Ag O Se --compare-structure

依赖

API 密钥

API 模式需要 Materials Project API 密钥。设置环境变量:

export MATERIALS_PROJECT_API_KEY=你的密钥

获取密钥:https://materialsproject.org/api

命令行参数

参数 说明 默认值
--elements 元素列表 Cu Ag O Se
--local 本地VASP目录
--output 输出目录 phase_diagrams_output
--eah E above hull 阈值 0.05 eV/atom
--compare-structure 启用结构对比 False
--debug 调试模式 False

许可证

MIT License — 详见 LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chemphase-1.0.0.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chemphase-1.0.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file chemphase-1.0.0.tar.gz.

File metadata

  • Download URL: chemphase-1.0.0.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for chemphase-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a4092ce0375414d900ea203aa465f365244bea242b721c9e9a3b113e14669bf7
MD5 f5e4e32ff3456bd979f86fcb4e4897a3
BLAKE2b-256 89e5343d90dba64a91b1a674f626efe99eefec33c355cc040f69ff39b0242e46

See more details on using hashes here.

File details

Details for the file chemphase-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: chemphase-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for chemphase-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78f156cc14fbec0077a468e5f2239746e98d7df14df8a56a904ddaac21dd08c5
MD5 af1cc86b301250740aa70ead862ab9ae
BLAKE2b-256 bf00645d503e8357991c56bb8a349d20173165b060183532507793c41e367a69

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page