xnn.ffnn.models.reaxff_step.ReaxFFStepper#

class xnn.ffnn.models.reaxff_step.ReaxFFStepper(model, skin=0.3, tol=None, chunk=16, capture=True, warmup=2)[source]#

Bases: object

Energy and forces of one structure along a trajectory from the kernels of a ReaxFF model.

Parameters:
  • model (ReaxFF) – A classical field in the LAMMPS conventions on a CUDA device (or a wrapper with a model attribute), in evaluation mode with no trained parameter.

  • skin (float, optional) – Margin of the candidate lists beyond the cutoffs in Angstrom; by default 0.3 (a larger one rebuilds less often but grows the torsion and hydrogen-bond lists faster).

  • tol (float, optional) – Relative residual of the charges’ conjugate gradients; by default the model’s (1e-13 in float64, 1e-6 in float32). LAMMPS’s fix qeq/reaxff takes its own, often 1e-6.

  • chunk (int, optional) – Conjugate-gradient iterations of one replay of the recorded charge solve; a step replays it until the charges converge. By default 16.

  • capture (bool, optional) – Replay the steps as CUDA graphs after warmup plain steps; by default True.

  • warmup (int, optional) – Plain steps before the graphs are recorded; by default 2.

Variables:
  • rebuilds (int) – Candidate lists built.

  • refills (int) – Of those, the lists copied into the buffers of the recorded graphs.

  • replays (int) – Steps replayed from the graphs.

  • chunks (int) – Replays of the charge solve.