jaxrens.backends.lj

Lennard-Jones pair potential backend.

E = sum_{i<j, k} 4 * eps_ij * [(sig_ij/r_ijk)^12 - (sig_ij/r_ijk)^6]

where k ranges over the periodic-image offsets enumerated by supercell_trafo. The summation uses triclinic minimum-image for the central image (correct for sheared cells from shear/stretch moves), then explicitly tiles supercell_trafo additional images on top of that so cells smaller than 2 · r_cut can be handled when supercell_trafo is bumped above (1, 1, 1).

Single-species mode (default):

eps_ij = epsilon, sig_ij = sigma (scalars, ignore species)

Multi-species mode (epsilon/sigma given as 1-D sequences):

eps_ij = sqrt(eps[s_i] * eps[s_j]) (geometric Lorentz-Berthelot) sig_ij = (sig[s_i] + sig[s_j]) / 2 (arithmetic Lorentz-Berthelot)

The supercell_trafo convention matches MACE / Nequix: it must satisfy min(perp_distance · sc) >= 2 · r_cut for the energy to capture every true neighbor. The resolver emits a startup warning when the cell prior permits cells that violate this bound.

All-pairs computation — no neighbor list needed.

Functions

create_lj

Create a Lennard-Jones backend.

Classes

LJBackend

Lennard-Jones pair potential.