nvalchemi-dynamics-implementation
Installation
SKILL.md
nvalchemi Dynamics Implementation
Overview
To implement a dynamics class (integrator) in nvalchemi, subclass BaseDynamics
and override two methods: pre_update() and post_update(). The base class handles
the model forward pass, hook dispatch, convergence checking, and the step/run loop.
from nvalchemi.dynamics.base import BaseDynamics, ConvergenceHook
from nvalchemi.data import Batch
Step execution flow
The first step(batch) after admission dispatches ON_ADMISSION, while subsequent
steps skip it until admission is explicitly reset. The per-step sequence is: