1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright (c) 2024-2026 The Regents of the University of Michigan.
// Part of hoomd-rs, released under the BSD 3-Clause License.
//! Pairwise interactions.
use ;
pub use AngularMask;
pub use Anisotropic;
pub use ApproximateShapeOverlap;
pub use ;
pub use Isotropic;
/// Computes pairwise energies between oriented particles.
///
/// An anisotropic pairwise energy is function of the relative position and
/// orientation of the *j* particle in *i's* reference frame:
/// ```math
/// U(\vec{r}_{ij}, \mathbf{o}_{ij})
/// ```
///
/// Implement [`AnisotropicEnergy`] on a custom type or use one of the provided
/// potentials in [`pairwise`](crate::pairwise) in MD or MC simulations.
// TODO: determine how to express the torque return type in a general way. Possibly use
// an associated type of Rotation.