sponge.function.lennard_jones_potential2
- sponge.function.lennard_jones_potential2(epsilon: Tensor, r_0: 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
.r_0 (Tensor) – Tensor of shape (…). Data type is float. Atomic radius
.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