jaxrens.constraints.min_distance¶
Minimum inter-atomic distance constraint.
Rejects any configuration in which a pair of atoms is closer than a
per-species-pair threshold d_min[type_i, type_j] (Angstrom). Distances
use the minimum-image convention under a periodic cell, so contacts across a
boundary are caught (see jaxrens.backends.geometry.pairwise_distances()).
A scalar threshold is the special case of a uniform d_min matrix; a
per-species-pair threshold lets different element pairs carry different
floors (e.g. a tighter contact for a small-atom pair). When the matrix is
non-uniform the predicate’s value depends on the atom types, so a move that
relabels species (alchemical morph / single-atom swap) can change validity
and must be gated — this is expressed by the descriptor’s depends_on
(see min_distance_descriptor()).
Functions
Build a minimum-distance predicate from a per-pair threshold matrix. |
|
Wrap a minimum-distance matrix in a |