Molecular dynamics in Rust.

Define particles and forces in TOML. Follow their motion in an XYZ trajectory and read the thermodynamics from CSV.

Run the argon example
A periodic cubic cell containing 256 argon atoms, with atom 236 highlighted.
argon_nve.toml ↗256 Ar · NVE · Δt* = 0.005

Radial intensity map

Each row shows the argon cell every 100 steps. Warmer bands mark the distances where pairs of atoms cluster.

Source · 6ac1ced ↗
Argon pair separations as a heatmap. The lower curve shows peaks above and troughs below the run average at the final step.

Saved frame · Step 2,000 of 2,000

Orange peaks show more pairs than average at that distance. Blue troughs show fewer. The profile samples every 10 steps with 0.015σ smoothing. Its vertical scale expands small differences near zero.

Engine capabilities

Interaction models
Choose Lennard-Jones, Buckingham, Morse, soft-sphere or tabulated pair potentials. Add bond, angle and dihedral terms for molecular systems.
Time integration
Run velocity-Verlet NVE, thermostat-controlled NVT or isotropic Monte Carlo NPT. Rigid water has a dedicated molecular NPT protocol. SHAKE/RATTLE is available for constrained dynamics.
Periodic electrostatics
Evaluate charged systems with direct Ewald summation or smooth particle mesh Ewald in orthorhombic cells.
Run interfaces
Run TOML inputs from the CLI, embed the Rust library, configure runs in Python or expose local tools through MCP. Save XYZ positions, CSV thermodynamic logs and restart checkpoints.
ASE integration
Use one-shot or persistent ASE EMT sessions for supported metals in fully periodic, unconstrained fixed-cell NVE or NVT runs. In the other direction, MODENA supplies single-species Lennard-Jones energies and forces to ASE in fully periodic orthorhombic cells.
Parallel execution
The CPU engine uses Rayon for pair forces. Separate experimental GPU and MPI examples run Lennard-Jones dynamics in the NVE ensemble.
Validation scope and limitations ↗

Run the argon example

With Git and Rust 1.90 or newer, build the revision behind this figure and run the input from the repository root.

git clone https://github.com/ricardoleal20/modena.git
cd modena
git switch --detach 6ac1ced09ef476b48b84b9f991c69cd469ef9678
cargo build --locked --release --bin modena
./target/release/modena check -i examples/argon_nve.toml
RAYON_NUM_THREADS=1 ./target/release/modena run -i examples/argon_nve.toml

Find the trajectory in examples/argon_nve_traj.xyz and the energy log in examples/argon_nve_energy.csv.

Read the argon input ↗

Cite MODENA

If you use MODENA in research, include the version or commit you ran.

MODENA contributors (2026). MODENA: Molecular Dynamics Engine for Numerical Atomistics (version 0.1.1). GitHub.

View BibTeX
@software{modena2026,
  author  = {{MODENA contributors}},
  title   = {{MODENA}: Molecular Dynamics Engine for Numerical Atomistics},
  version = {0.1.1},
  date    = {2026-10-22},
  year    = {2026},
  url     = {https://github.com/ricardoleal20/modena}
}
Citation metadata ↗