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:
objectEnergy 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
modelattribute), 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/reaxfftakes 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
warmupplain steps; by defaultTrue.warmup (int, optional) – Plain steps before the graphs are recorded; by default 2.
- Variables: