dgrid_from_atoms_rtree_rust
alternate R-tree neighbor-search dgrid; matches the exact path to ~1e-3 A with far less RAM.
rust_fun.dgrid_from_atoms_rtree_rust(
ase_atoms,
spacing,
radii=None,
n_neighbors=10,
)Compute a distance grid using the Rust R-tree (AABB) periodic neighbor-search backend.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| ase_atoms | ase.Atoms | ASE Atoms object containing the atomic structure | required |
| spacing | float | Grid spacing in Angstroms | required |
| radii | numpy.ndarray | None | Van der Waals radii for each atom. If None, uses Bondi (1964) handbook radii with Mendeleev fill for undefined symbols (:func:~mofography.vdw_radii.default_vdw_radii_angstrom). Pass mendeleev_vdw_radii_angstrom(atoms) for the legacy Mendeleev-only table. |
None |
| n_neighbors | int | Number of nearest neighbors to query from the R-tree, defaults to 10 | 10 |
Returns
| Name | Type | Description |
|---|---|---|
| numpy.ndarray | 3D distance grid where values represent distances to atom surfaces |