dgrid_from_atoms_gpu

alternate GPU distance grid experiment; Rust CPU path is the maintained default. Use dgrid_from_atoms_rust instead.

compute.dgrid_from_atoms_gpu(
    ase_atoms,
    radii=None,
    spacing=0.2,
    block_size=10000,
)

Compute the distance grid on the GPU (alternative to the Rust dgrid_from_atoms_rust).

The function dgrid_from_atoms_gpu calculates a distance grid based on atomic positions using GPU acceleration.

Parameters

Name Type Description Default
ase_atoms The ase_atoms parameter in the dgrid_from_atoms_gpu function is expected to be an ASE Atoms object, which represents a collection of atoms and their properties. This object typically contains information such as atomic positions, unit cell parameters, atomic symbols, and other properties of the atoms in required
radii The radii parameter in the dgrid_from_atoms_gpu function represents the van der Waals radii of the atoms in the atomic structure provided as input. These radii are used in the calculation of the distance grid. If the radii parameter is not provided by the None
spacing The spacing parameter in the dgrid_from_atoms_gpu function represents the distance between grid points in the generated grid. It determines the resolution of the grid where the distances from atoms to grid points are calculated. A smaller spacing value will result in a higher resolution grid with more grid points, 0.2
block_size The block_size parameter in the dgrid_from_atoms_gpu function determines the size of each block used for processing the data. In this function, it is used for chunking the data and processing it in parallel on the GPU. A larger block_size can lead to more efficient, defaults to 10000 (optional) 10000

Returns

Name Type Description
The function dgrid_from_atoms_gpu returns a 3D numpy array representing a distance grid computed based on the input atomic structure provided in the form of ASE atoms. The distance grid is calculated by computing the minimum distance between each point on the grid and the atoms in the structure, taking into account the atomic radii. The grid is computed using GPU-accelerated calculations for efficiency.