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.2.tar.gz (18.4 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.2-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chemphase-0.1.2.tar.gz
  • Upload date:
  • Size: 18.4 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.2.tar.gz
Algorithm Hash digest
SHA256 e7c1d28e18e1e168805d72da9681d6f49911589f95bdcb60606c404652f566ab
MD5 9544383dca323ec7954fbe5ff8d3b24e
BLAKE2b-256 26ca2bb133978a9b7b31716b6a087435196c1e91f362caa979dd93d5a29cba17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chemphase-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b9b02eae376a3971e60912b814af6c42ae7ea6668ee2716c344d371fd82a64f9
MD5 8d19425952797ac1c3caa05142c23fb8
BLAKE2b-256 8a826c66b296a5277eabaff4d65a1eb7ef6be8fe126e29dab6a3ea5f3ced6295

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