pyiron - PyIron+Sphinx 中的自旋约束
问题描述
我想限制大块原子的自旋,同时让我的超级单元的自由表面原子放松它们的磁矩。PyIron+SPhinx 是否可以限制超级胞中原子子集(不是全部)的自旋?
解决方案
是的,原则上可以:
from pyiron import Project
import numpy as np
spx = pr.create.job.Sphinx('spx')
spx.structure = pr.create.structure.bulk('Fe', a=2.83, cubic=True)
spx.structure.set_initial_magnetic_moments([2, 2])
spx.fix_spin_constraint = True
spx.structure.spin_constraint = np.array([True, False])
spx.calc_static()
spx.run()
简短说明:spx.fix_spin_constraint = True
初始化属性spx.structure.spin_constraint
,该属性仅包含True
开头的所有原子。对于不应被约束的原子,您可以设置False
.
推荐阅读
- css - 为什么填充有效地创建最小宽度和最小高度,即使将 box-sizing 设置为border-box,以及如何处理它?
- vhdl - 使用通用选择包/记录
- ios - 如何为 Mapbox 注释创建自定义标注?
- video - ffmpeg 在子剪辑上运行时出现转换失败
- json - 动态 JSON 结构,API 结果 golang
- android - 如何通过 Android 设备上的 MAC 地址断开蓝牙连接?
- azure - 配置 ARM 模板以使用 Power BI 作为输出部署 Azure Steam Analytics
- python - 列出所有 Pipenv 环境
- python - ImportError:GAE Flexible 中没有名为 main 的模块
- mysql - 使用相对日期创建 MYSQL 查询