LJBackend

class jaxrens.backends.lj.LJBackend(epsilon=1.0, sigma=1.0, cutoff=None, supercell_trafo=(1, 1, 1))[source]

Bases: object

Lennard-Jones pair potential.

All-pairs computation with triclinic minimum-image convention and explicit supercell-image enumeration. Ignores max_neighbors (no neighbor list needed).

Parameters:
  • epsilon (_ScalarOrSeq) – Energy well depth. Scalar (single-species) or 1-D sequence of length n_species (per-species table; pair interactions use geometric Lorentz-Berthelot mixing).

  • sigma (_ScalarOrSeq) – Length scale. Same shape rules as epsilon; arithmetic Lorentz-Berthelot mixing for cross-species pairs.

  • cutoff (float | None) – Distance cutoff (scalar; applies uniformly across species).

  • supercell_trafo (tuple[int, int, int]) – (sc_a, sc_b, sc_c) integer expansion for periodic-image enumeration. Must satisfy min(perp_distance · sc) >= 2 · r_cut to capture every true neighbor. Default (1, 1, 1) is MIC-only (correct iff the actual cell already has min perpendicular distance ≥ 2 · r_cut); bump to (2, 2, 2) (27 images) for cells that may shrink below that threshold.