dgrid_from_atoms
legacy Python/Dask distance grid router; superseded by dgrid_from_atoms_rust for speed. Use dgrid_from_atoms_rust instead.
compute.dgrid_from_atoms(
ase_atoms,
radii=None,
spacing=0.25,
block_size=50000,
n_neighbors=10,
probe_radius=0,
)Build a Dask distance grid over atoms (dispatches to CPU implementation).
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| ase_atoms | The ase_atoms parameter in the dgrid_from_atoms function is expected to be an ASE Atoms object, which represents a collection of atoms and their properties. This object typically contains information about the atomic positions, chemical symbols, and unit cell of a molecular system. You can create an |
required | |
| radii | The radii parameter in the dgrid_from_atoms function is used to specify the atomic radii for the atoms in the input ase_atoms. If the radii parameter is not provided by the user, a default set of van der Waals radii for different elements |
None |
|
| spacing | The spacing parameter in the dgrid_from_atoms function represents the distance between grid points in the mesh grid that is created over the atoms. It determines how finely the space is divided for computing the distance grid. A smaller spacing value will result in a denser grid with more grid points |
0.25 |
|
| block_size | The block_size parameter in the dgrid_from_atoms function is used to specify the size of each block when processing the grid points. This parameter determines how many grid points are processed at a time, which can impact memory usage and computational efficiency. Adjusting the block_size can, defaults to 50000 (optional) |
50000 |
|
| n_neighbors | The n_neighbors parameter in the dgrid_from_atoms function represents the number of nearest neighbors to consider when computing the distance grid for each point in the grid. This parameter determines how many neighboring atoms will influence the calculation of distances in the grid. Increasing the n_neighbors value will, defaults to 10 (optional) |
10 |
|
| probe_radius | The probe_radius parameter in the dgrid_from_atoms function represents the radius of the probe used in the calculation. This parameter is used in the computation of the distance grid over atoms. The probe radius is typically used in molecular modeling and simulations to mimic the size of a solvent molecule or, defaults to 0 (optional) |
0 |
Returns
| Name | Type | Description |
|---|---|---|
The function dgrid_from_atoms returns a Dask array representing the distance grid computed over the input ASE atoms. The distance grid is computed based on the provided parameters such as radii, spacing, block size, number of neighbors, and probe radius. The function utilizes Dask for parallel computation and returns the distance grid reshaped to the correct shape specified by the input ASE atoms. |