个人记录贴,持续更新中
Atomic Simulation Environment (ASE) 是一组用于设置、操纵、运行、可视化和分析原子模拟的工具和 Python 模块。该代码在GNU LGPL许可证下免费提供。

目前我主要使用还是其构建结构的功能。

安装

1
pip install ase

read and write

1
2
3
4
5
from ase.io import read, write
from ase import Atoms

atoms = read('POSCAR', format='vasp')
write('POSCAR', atoms, format='vasp', direct=True) # direct=True 表示输出分数坐标 默认是笛卡尔坐标