ArgonMetropolisSim is a Python-based tool I developed to practice Monte Carlo simulations as part of my coursework in molecular dynamics simulation. It models the behavior of Argon atoms within a Lennard-Jones potential field using the Metropolis algorithm. This humble project was a significant part of my learning journey, and I hope it can be of use or interest to others studying Monte Carlo and Molecular Dynamics Simulations.
- Simulates Argon atoms in a cubic box using the Lennard-Jones potential.
- Implements the Metropolis algorithm for Monte Carlo simulations.
- Calculates total potential energy and pressure of the Argon system.
- Allows customization of simulation parameters for various setups.
- Python 3.x
- NumPy library
No special installation is needed beyond Python and NumPy. You can clone this repository to your local machine using:
git clone https://github.com/waveletswave/ArgonMetropolisSim.git
To run the simulation, simply execute the script with Python:
python argon_metropolis_sim.py
This script performs a Monte Carlo simulation using the Metropolis algorithm and outputs the final potential energy and pressure of the Argon system.
Feel free to adjust the simulation parameters in the script:
N
: Number of Argon atoms.L
: Length of the side of the cubic box.T
: Temperature in Kelvin.- Other physical constants as needed.
Any contributions or suggestions for improvement to ArgonMetropolisSim are warmly welcomed. I believe in collaborative learning and improvement, so please feel free to share your thoughts or best practices.
This project is open-source and available under the MIT License.
I am grateful for the opportunity to engage in this class learning journey. My sincere appreciation goes to my instructors for their invaluable guidance and to my classmates for the collaborative learning environment we created together. This exercise has been a crucial step in enhancing my understanding of Monte Carlo and Molecular Dynamics Simulations.