torch_sim.transformsΒΆ
Coordinate transformations and periodic boundary conditions.
This module provides functions for handling coordinate transformations and periodic boundary conditions in molecular simulations, including matrix inversions and general PBC wrapping.
Functions
Build the neighbor list of a given set of atomic structures using the linked cell algorithm. |
|
Build a naive neighborhood list for atoms based on positions |
|
Compute the cell shifts based on the provided indices and cell matrix. |
|
Compute distances between pairs of positions, optionally |
|
Generate the indices for cell shifts based on the number of repeats. |
|
Convert Cartesian coordinates to fractional coordinates. |
|
Generate a fully connected mapping of atom indices with optional cell shifts. |
|
Calculate the linear bin index for each position within a defined box. |
|
Determine the number of cell repeats required for a given |
|
Compute displacement vectors and distances between atom pairs. |
|
Sums tensor elements over specified dimensions at 64-bit precision. |
|
Compute the inverse of an affine transformation. |
|
Determine the atomic neighborhood of the atoms of a given structure for a particular cutoff using the linked cell algorithm. |
|
Apply minimum image convention to displacement vectors. |
|
Creates a smoothly truncated version of an isotropic function. |
|
Apply periodic boundary conditions to batched systems. |
|
Apply periodic boundary conditions using lattice |
|
Convert 3D indices into linear indices for an array of given shape. |
|
Safely applies a function to masked values in a tensor. |
|
Convert a linear table of bin indices into a structured bin ID table. |
|
Calculate the cumulative strides of a flattened tensor. |
|
ASE pretty translation in pytorch. |
|
Convert linear indices back into 3D indices for an array of given shape. |
|
ASE wrap_positions in pytorch. |