xnn.ffnn.models.classical_step.ClassicalStepper#
- class xnn.ffnn.models.classical_step.ClassicalStepper(model, skin=1.0, capture=True, warmup=2)[source]#
Bases:
objectEnergy and forces of one structure along a trajectory from the kernels of a classical force field.
- Parameters:
model (nn.Module) – An
OPLS,Amber,CharmmorDreidingmodel on a CUDA device (or a wrapper with amodelattribute), in evaluation mode with no trained parameter.skin (float, optional) – Margin of the neighbor list beyond the model’s cutoff in Angstrom; by default 1.0.
capture (bool, optional) – Replay the steps as a CUDA graph after
warmupplain steps; by defaultTrue.warmup (int, optional) – Plain steps before the graph is recorded (the kernels are compiled in the first); by default 2.
- Variables: