How youmettem/ljvshardspheresimulationmodel works
This repository is a molecular-dynamics comparison: the main workflow samples Lennard-Jones and hard-sphere simulations, estimates the stabilized temperature, and compares sampled speed distributions with the Maxwell–Boltzmann distribution using spline fits and error metrics. Separate VPython programs visualize constant-temperature LJ motion and temperature-reduction responses for both models. The shown source supports the main workflow and visualization-to-engine calls; user launch relationships are documented only generally, so those entry links are dashed.
Main entry points: main.py Comparison runner · updateLJ.py Lennard-Jones engine · visLJ3DconstTemp.py LJ constant-temperature view · visTempChangeLJ3D.py LJ quench view
Components 8
Comparison workflow
- Comparison runner
src/main.py - Distribution analysis
src/main.py
Particle models
- Lennard-Jones engine
src/updateLJ.py - Hard-sphere engine
src/updateHardSphere.py
3D visualizations
- LJ constant-temperature view
src/visLJ3DconstTemp.py - LJ quench view
src/visTempChangeLJ3D.py - Hard-sphere quench view
src/visTempChangeHardSphere3D.py
Other components
- Researcher
Connections 10
- Researcher → Comparison runner: runs comparison
README.md - Comparison runner → Lennard-Jones engine: samples dynamics
src/main.py - Comparison runner → Hard-sphere engine: samples dynamics
src/main.py - Comparison runner → Distribution analysis: fits distributions
src/main.py - Researcher → LJ constant-temperature view: runs visualization
README.md - Researcher → LJ quench view: runs visualization
README.md - Researcher → Hard-sphere quench view: runs visualization
README.md - LJ constant-temperature view → Lennard-Jones engine: advances particles
src/visLJ3DconstTemp.py - LJ quench view → Lennard-Jones engine: advances particles
src/visTempChangeLJ3D.py - Hard-sphere quench view → Hard-sphere engine: advances particles
src/visTempChangeHardSphere3D.py