quemb.kbe.autofrag.autogen¶
- quemb.kbe.autofrag.autogen(mol, kpt, frozen_core=True, n_BE=2, write_geom=False, unitcell=1, gamma_2d=False, gamma_1d=False, long_bond=False, perpend_dist=4.0, perpend_dist_tol=0.001, nx=False, ny=False, nz=False, iao_valence_basis=None, interlayer=False, print_frags=True)¶
Automatic cell partitioning
Partitions a unitcell into overlapping fragments as defined in BE atom-based fragmentations. It automatically detects branched chemical chains and ring systems and partitions accordingly. For efficiency, it only checks two atoms for connectivity (chemical bond) if they are within 3.5 Angstrom. This value is hardcoded as normdist. Two atoms are defined as bonded if they are within 1.8 Angstrom (1.2 for Hydrogen atom). This is also hardcoded as bond & hbond. Neighboring unitcells are used in the fragmentation, exploiting translational symmetry.
- Parameters:
mol (Cell) – pyscf.pbc.gto.cell.Cell object. This is required for the options, ‘autogen’, and ‘chain’ as frag_type.
kpt (list of int) – Number of k-points in each lattice vector dimension.
frozen_core (bool, optional) – Whether to invoke frozen core approximation. Defaults to True.
n_BE (int, optional) – Specifies the order of bootstrap calculation in the atom-based fragmentation, i.e. BE(n). Supported values are 1, 2, 3, and 4 Defaults to 2.
write_geom (bool, optional) – Whether to write a ‘fragment.xyz’ file which contains all the fragments in Cartesian coordinates. Defaults to False.
iao_valence_basis (str, optional) – Name of minimal basis set for IAO scheme. ‘sto-3g’ is sufficient for most cases. Defaults to None.
iao_valence_only (bool, optional) – If True, all calculations will be performed in the valence basis in the IAO partitioning. This is an experimental feature. Defaults to False.
print_frags (bool, optional) – Whether to print out the list of resulting fragments. Defaults to True.
interlayer (bool) – Whether the periodic system has two stacked monolayers.
long_bond (bool) – For systems with longer than 1.8 Angstrom covalent bond, set this to True otherwise the fragmentation might fail.