
Molecular Dynamics Simulation¶
This notebook introduces the concept of molecular dynamics simulations as used in chemistry from scratch.
Chemistry is all about dynamic processes, movement, and reactions. To study dynamic processes on the computer, we need means to run a simulation of these processes, i.e. to create a movie of atom positions over time, and then to analyze the movie for properties of interest, for example diffusion coefficients, spectroscopic properties, reaction rates, etc. We will address these topics in nine sections. The sections build on each other and should be taken in the following order:
Authors¶
Esther Heid, Research Unit Theoretical Chemistry, TU Wien
Structure¶
All notebooks of this cookbook are gathered under the Content section in the table of contents. The Preamble at the front explains how to cite the cookbook; the Developing section at the back contains contributor notes.
Running the Notebooks¶
Running on dataLAB JupyterHub¶
Go to the website dataLAB: https://
Running on dataLAB Binder¶
Running on Your Own Machine¶
If you are interested in running this material locally on your computer, you will need to follow this workflow:
Clone the
https://gitlab.tuwien.ac.at/cookbooks/public/molecular_dynamics_simulationrepository:git clone https://gitlab.tuwien.ac.at/cookbooks/molecular_dynamics_simulationMove into the
molecular_dynamics_simulationdirectorycd molecular_dynamics_simulationCreate a virtual environment with all the required libraries and dependencies For that a couple of Options are available:
uv
conda
Docker
uv¶
Create and activate your virtual environment
uv sync --all-extrasStart up Jupyterlab Server in the notebooks directory
uv run jupyter lab notebooks/Conda¶
Create and activate your conda environment from the environment.yml file
conda env create -f environment.yml
conda activate tucookbooksMove into the notebooks directory and start up Jupyterlab
jupyter lab notebooks/Docker¶
When available simply run docker compose to start a Jupyter Lab instance.
Start Jupyter Lab from a Docker container:
docker compose upCopy Jupyter Lab URL to web browser:
Stop and remove the container
Stop Docker container with
CTRL + CRemove container:
docker compose down