perostruc.utility
Functions
|
|
|
Calculate the surface size of a cluster Parameters: cluster_flag: np.ndarray[int] with shape (l1, l2, l3). 1 for in the cluster, 0 for out of the cluster. the flag of the cluster Returns: surface_size: int the surface size of the cluster. |
|
Find the clusters of the given element in the trajectory. :param traj: list[ase.Atoms] The trajectory of the atoms. :param lattice_map: np.ndarray[int] The lattice map of the atoms. The integer value is the index of the site atom. :param element: str The element to find the clusters. :param tolerance: int The tolerance for a site to be considered as part of the cluster. The number of neighboring elements that are not the given element. |
|
|
|
|
|
|
|
Function to print the potential, kinetic and total energy |
|