Skip to main content

相图与化学势热图统一生成器 — 一键生成二元/三元成分相图、化学势热图,支持 Materials Project API 和本地 VASP 数据

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.0.tar.gz (15.8 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.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for chemphase-0.1.0.tar.gz
Algorithm Hash digest
SHA256 11293ae50ff409131738941a90fda5faf372bdc848ba48b8530ff00a32be4ebc
MD5 d35cca5e00ca67a8776aa40dba53d6a4
BLAKE2b-256 eac812cf95faa079bc8892fde0218ad7cae2b18dae69344f41b37175d185685c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for chemphase-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46088d5e9888d7ee6d3f7181c7a90e3b805794c7aaf0438d47c54dbf0959cf11
MD5 e4384775b8553d6040f9e4b524e14c4a
BLAKE2b-256 7fbe881b96b0af60f7e84690f88663ddcf70106e2e68d7ff556ac674dec87cd6

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