sponge.function.lennard_jones_potential
- sponge.function.lennard_jones_potential(epsilon: Tensor, sigma: Tensor, r_ij: Tensor, mask: Tensor = None)[source]
Calculate Lennard-Jones (LJ) potential with
and .Math:
- Parameters
epsilon (Tensor) – Tensor of shape (…). Data type is float. Well depth
.sigma (Tensor) – Tensor of shape (…). Data type is float. Characteristic distance
.r_ij (Tensor) – Tensor of shape (…). Data type is float. Distance
between atoms and .mask (Tensor) – Tensor of shape (…). Data type is bool. Mask for distances
. Default:None
.
- Returns
E_coulomb (Tensor), Tensor of shape (…). Data type is float.
- Supported Platforms:
Ascend
GPU