How yerkoescalona/gromos-rs works
gromos-rs is an educational Rust reimplementation of GROMOS molecular-dynamics functionality, with Python bindings. The principal workflow loads topology and coordinates, describes a run as a shared recipe, builds and validates an algorithm plan, then executes simulation steps and exposes results. Separate Rust tools prepare systems, while analysis programs cover trajectory, structural, energetic, and other GROMOS++-style tasks. The README documents the shared run-builder flow; source excerpts show provider orchestration and forcefield internals, but not every runtime connection.
Main entry points: build.rs Run builder · orchestrator.rs Provider orchestrator · lib.rs Python bindings · recipe.rs Run recipe
Components 23
Inputs and models
- Topology model
crates/gromos-core/src/topology.rs - Configuration
crates/gromos-core/src/configuration.rs - Topology files
crates/gromos-io/src/topology.rs - Run recipe
crates/gromos-run/src/recipe.rs - GROMOS I/O
crates/gromos-io/src/trajectory.rs
Run execution
- Run builder
crates/gromos-run/src/build.rs - Plan and validation
crates/gromos-run/src/plan.rs - MD entry points
crates/gromos-md/src/bin/md.rs - Integrator algorithms
crates/gromos-integrators/src/integrator.rs
Simulation physics
- Forcefield step
crates/gromos-integrators/src/algorithms/forcefield.rs - Neighbor lists
crates/gromos-core/src/pairlist.rs - Force providers
crates/gromos-forces/src/provider.rs - Provider orchestrator
crates/gromos-forces/src/orchestrator.rs - Provider algorithm
crates/gromos-forces/src/orchestrator_algorithm.rs - Classical nonbonded
crates/gromos-forces/src/nonbonded/interaction.rs - QM electrostatic embedding
crates/gromos-forces/src/nonbonded/embedding.rs
User interfaces
- Python bindings
crates/pyo3-gromos/src/lib.rs - Python recipe API
crates/pyo3-gromos/src/recipe.rs - Python simulation API
crates/pyo3-gromos/src/simulation.rs - Python package
py-gromos/python/gromos/__init__.py
Tools and analysis
- System preparation tools
crates/gromos-tools/src/bin/box/build_box.rs - Analysis programs
crates/gromos-analysis/src/bin
Other components
- User
Connections 23
- User → Topology files: provides files
README.md - Topology files → Topology model: parses topology
crates/gromos-io/src/topology.rs - User → Run recipe: defines run
README.md - Python recipe API → Run recipe: creates recipe
crates/pyo3-gromos/src/recipe.rs - Run recipe → Run builder: prepares system
README.md - Run builder → Plan and validation: builds and validates
README.md - Run builder → Integrator algorithms: instantiates
README.md - MD entry points → Run builder: uses shared builder
README.md - Python simulation API → Run builder: uses shared builder
README.md - Integrator algorithms → Forcefield step: runs algorithms
- Forcefield step → Neighbor lists: updates neighbors
crates/gromos-integrators/src/algorithms/forcefield.rs - Provider algorithm → Provider orchestrator: evaluates
crates/gromos-forces/src/orchestrator_algorithm.rs - Provider orchestrator → Force providers: sums contributions
crates/gromos-forces/src/orchestrator.rs - Provider orchestrator → Classical nonbonded: registers provider
crates/gromos-forces/src/orchestrator.rs - Force providers → QM electrostatic embedding: implemented as
crates/gromos-forces/src/nonbonded/embedding.rs - User → Python package: uses API
README.md - Python package → Python bindings: wraps extension
crates/pyo3-gromos/src/lib.rs - Python bindings → Python recipe API: registers API
crates/pyo3-gromos/src/lib.rs - Python bindings → Python simulation API: registers API
crates/pyo3-gromos/src/lib.rs - User → System preparation tools: prepares systems
- User → Analysis programs: analyzes results
- MD entry points → GROMOS I/O: writes outputs
- Analysis programs → GROMOS I/O: reads simulation data