Skip to main content

Module md_api

Module md_api 

Source
Expand description

Molecular Dynamics (MD) simulation API for Python interop.

Provides a simple N-body MD simulation with Lennard-Jones pair potentials, optional velocity-rescaling thermostat, and periodic boundary conditions. All types are no-lifetime, serialization-friendly, and carry comprehensive tests.

Structs§

AtomSet
A typed atom set that groups atoms by species.
AtomTypeDesc
Atom type descriptor: element name, mass, charge.
NoseHooverThermostat
Nosé-Hoover chain thermostat state for the NVT ensemble.
PyMdAtom
A single atom in the MD simulation.
PyMdConfig
Configuration for an MD simulation.
PyMdSimulation
Molecular Dynamics simulation (NVE/NVT) with periodic boundary conditions.
PyNvtSimulation
NVT ensemble simulation using the Nosé-Hoover thermostat.

Functions§

ewald_real_space_energy
Compute the real-space component of the Ewald sum for electrostatics.