Skip to main content

Phase diagram & chemical potential heatmap generator — one-click binary/ternary phase diagrams 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-0.1.1.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-0.1.1-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chemphase-0.1.1.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-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e3198c5e903110e1d42785c31fdcdc02e0a9bcc98cfec26eb4af6082182dfdc7
MD5 27a4b05eaa10e00b16c21dc5b97fc7be
BLAKE2b-256 78c8086d9f28b98d85b5043e90da615704920462260ed6a04407d734c4ebb858

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for chemphase-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d2ead954c7adad1d0fcdeff124afc3bfc913ecd9d9b8fac287595c448d90fa11
MD5 8c17b74af1c300b0f31ff96e2b771729
BLAKE2b-256 9594747970670f38df8e53bcd9a0fecd8c7b71053b251e78d818d9d9e1c226c3

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