Module dcg_sci_tool.reaction.find_nearest_hollow_site
Functions
def find_nearest_hollow_site(data: ovito.data.DataCollection,
type_names_order: list,
oc_index1: int,
oc_index2: int,
bonded_mode=True) ‑> pyparsing.core.Dict-
找到距离1号OC原子和2号OC原子中点最近的hollow位点 若bonded_mode为True,则只考虑与oc_index1/2成键的金属原子,否则考虑邻近所有金属原子
Args
data:DataCollection- 结构的ovito数据集合
type_names_order:list- 原子类型名称列表,索引对应原子类型编号
oc_index1:int- 目标1号OC原子索引
oc_index2:int- 目标2号OC原子索引
bonded_mode:bool- 是否只考虑与oc_index1/2原子成键的金属原子,默认True
Returns
tuple: nearest_hollow_indexes (list): 最近的Hollow位点对应的金属原子序号列表(长度为3)
nearby_hollow_sites_count (int): 1号OC原子和2号OC原子中点附近合理的Hollow位点数量