API Reference#

Core classes#

BaseDynamics

Base class for all dynamics simulations.

DynamicsStrategy

Base class for declarative, serializable dynamics strategies.

DemoDynamics

Velocity Verlet integrator for molecular dynamics simulations.

FusedStage

Composite dynamics engine fusing multiple sub-stages on a single GPU.

DistributedPipeline

Orchestrates multi-rank pipeline execution.

Protocols and enums#

DynamicsStage

Enumeration of lifecycle stages where dynamics hooks can fire.

Convergence#

ConvergenceHook

Hook that evaluates composable convergence criteria and optionally migrates converged samples between pipeline stages.

Constants#

KB_EV

Convert a string or number to a floating-point number, if possible.

Integrators#

The algorithms are described in Integrator Algorithms.

NVE

Microcanonical (NVE) integrator via velocity Verlet.

NVTLangevin

NVT integrator via BAOAB Langevin dynamics.

NVTNoseHoover

NVT integrator via Nosé-Hoover chain (NHC) thermostat.

NPT

Isothermal-isobaric (NPT) integrator via MTK barostat and NHC thermostat.

NPH

Isenthalpic-isobaric (NPH) integrator via MTK barostat.

Optimizers#

FIRE and FIREVariableCell are deprecated; see Integrator Algorithms.

FIRE2

Fixed-cell FIRE2 geometry optimizer.

FIRE2VariableCell

Variable-cell FIRE2 geometry optimizer.

LBFGS

Fixed-cell L-BFGS geometry optimizer.

LBFGSVariableCell

Variable-cell L-BFGS geometry optimizer.

Hooks#

Dynamics-specific hooks are documented in Dynamics Hooks — Stages & Usage. General-purpose hooks (NeighborListHook, BiasedPotentialHook, WrapPeriodicHook), the shared profiling hooks (StageTimingHook, TorchProfilerHook), and the core hook protocol are documented in Hooks — Core Framework.

Data sinks#

DataSink

Abstract base class for local storage of Batch data.

ResizableSink

Sink that a consumer can grow to the capacity it needs.

GPUBuffer

GPU-resident buffer for storing batched atomic data.

HostMemory

CPU-resident buffer for storing batched atomic data.

ZarrData

Zarr-backed storage for batched atomic data.

Sampling#

SizeAwareSampler

Size-aware sampler for inflight batching.

OrderedStructureSampler

Structures served in dataset order from one position, for in-flight batching.

StructureSource

Structures a propagator starts from, served in order from one position.

FitPolicy

Decide whether the batch being drawn still fits once a candidate joins it.

WithinBudget

Fit policy that admits a batch while its totals stay within the given bounds.