Module dcg_sci_tool.structures_modifying.get_traj_focusing_local2atoms

Functions

def get_traj_focusing_local2atoms(traj_file, atom1_index, atom2_index, cutoff=8.0, target_vector=None, new_cell=None)

输入原始轨迹文件,输出经过处理后的结构文件,将以两个PdAu团簇表面的原子为中心的局部结构聚焦到小晶胞中, 并使ovito观察视线方向(Y轴)经过反应区域和团簇中心 输出聚焦后的结构文件(ASE ATOMS类)

参数:

traj_file : str 原始轨迹文件路径 atom1_index : int 局部原子1的索引 atom2_index : int 局部原子2的索引 cutoff : float 截止距离,单位为Å,默认为8.0 target_vector : np.ndarray 或 list/tuple 目标向量,形状为(3,),旋转后当前向量将与此向量同向 new_cell : np.ndarray 或 list/tuple 新的晶胞尺寸,形状为(3,),如 [a, b, c]

返回:

返回旋转并平移后的neb轨迹对象 focused_traj : list of Atoms 旋转并平移后的ASE Atoms对象列表 new_indexes : list 旋转并平移后的结构中,原始索引old_indexes对应的新的原子索引列表