jaxrens.sampling.moves.toy_1d¶
The two step types of the RENS-paper 1-D toy model: lattice and distance.
The toy model of Unglert, Pártay and Madsen (J. Chem. Theory Comput. 21,
7304, 2025) is two particles in a periodic 1-D box, driven by two moves in a
1:1 ratio: one that changes the box length a and one that changes the
interparticle distance.
Neither of the general 3-D cell moves can play the first role.
moves.volume scales the cell isotropically, so a cell of
diag(a, 1, 1) — the embedding RENSToyBackend
relies on, which makes V = a and turns the standard NPT enthalpy into the
paper’s eq 18 — would immediately stop being diagonal-with-unit-yz. These
kernels keep that structure exact.
Both are single-walker functions, designed for shard_map(vmap(vmap(…))) wrapping.
Functions
Build the 1-D distance move: displace one particle along the axis. |
|
Build the 1-D lattice move: change the box length |