sponge.function.coulomb_interaction
- sponge.function.coulomb_interaction(q_i: Tensor, q_j: Tensor, r_ij: Tensor, mask: Tensor = None, coulomb_const: float = 1)[source]
Calculate Coulomb interaction.
Math:
- Parameters
q_i (Tensor) – Tensor of shape (…). Data type is float. Charge of the
-th atom .q_j (Tensor) – Tensor of shape (…). Data type is float. Charge of the
-th atom .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 distance
. Default:None
.coulomb_const (float) – Coulomb constant
. Default: 1
- Returns
E_coulomb (Tensor), Tensor of shape (…). Data type is float.
- Supported Platforms:
Ascend
GPU