Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在 VASP POSCAR 中找到所有 A 型原子,然后使用 pymatgen 在以 A 型原子的每个位置为中心的半径(“r”)球体中随机添加“n”个 B 型原子,并每次返回新POSCAR。
这目前不是 pymatgen 中的预构建转换。您可以自己编写脚本,方法是创建一个新的PeriodicSite,使用 numpy 将其位置更改为随机向量,然后将其附加到Structure.
PeriodicSite
Structure