asymmetric_particle_pair_force

torch_sim.models.particle_life.asymmetric_particle_pair_force(dr, A, beta=DEFAULT_BETA, sigma=DEFAULT_SIGMA)[source]

Asymmetric interaction between particles.

Parameters:
  • dr (Tensor) – A tensor of shape [n, m] of pairwise distances between particles.

  • A (Tensor) – Interaction scale. Either a float scalar or a tensor of shape [n, m].

  • beta (Tensor) – Inner radius of the interaction. Either a float scalar or tensor of shape [n, m].

  • sigma (Tensor) – Outer radius of the interaction. Either a float scalar or tensor of shape [n, m].

Returns:

Energies with shape [n, m].

Return type:

Tensor