<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Molecular Dynamics | My CV</title><link>https://tipiorgup.github.io/tags/molecular-dynamics/</link><atom:link href="https://tipiorgup.github.io/tags/molecular-dynamics/index.xml" rel="self" type="application/rss+xml"/><description>Molecular Dynamics</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Thu, 08 Oct 2026 00:00:00 +0000</lastBuildDate><image><url>https://tipiorgup.github.io/media/icon_hu7729264130191091259.png</url><title>Molecular Dynamics</title><link>https://tipiorgup.github.io/tags/molecular-dynamics/</link></image><item><title>Protein MD in Jupyter</title><link>https://tipiorgup.github.io/teaching/md-tutorials/</link><pubDate>Thu, 08 Oct 2026 00:00:00 +0000</pubDate><guid>https://tipiorgup.github.io/teaching/md-tutorials/</guid><description>&lt;h2 id="description">Description&lt;/h2>
&lt;p>This is &lt;strong>not a new tutorial&lt;/strong>. It is a re-creation of the classic protein MD tutorial,
&lt;a href="http://www.mdtutorials.com/gmx/lysozyme/index.html" target="_blank" rel="noopener">Lysozyme in Water by Justin A. Lemkul&lt;/a>,
rewritten as &lt;strong>Jupyter notebooks&lt;/strong> to make it more intuitive and hands-on. Instead of
typing commands one by one in a terminal, every step lives in a notebook cell, with
comments explaining what it does, so you can run, modify and re-run the workflow and
plot the results in the same place.&lt;/p>
&lt;p>The same system (hen egg-white lysozyme, PDB &lt;strong>1AKI&lt;/strong>) is simulated with two platforms:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>GROMACS&lt;/strong>: the original workflow, driven from Python with GromacsWrapper.&lt;/li>
&lt;li>&lt;strong>OpenMM&lt;/strong>: the same workflow written in pure Python, which I find has a gentler learning curve if you already know Python.&lt;/li>
&lt;/ul>
&lt;p>Find the notebooks on GitHub: &lt;strong>&lt;a href="https://github.com/tipiorgup/MDtutorials/tree/main" target="_blank" rel="noopener">tipiorgup/MDtutorials&lt;/a>&lt;/strong>&lt;/p>
&lt;h2 id="workflow">Workflow&lt;/h2>
&lt;ol>
&lt;li>Clean the crystal structure (remove crystallographic waters).&lt;/li>
&lt;li>Build the topology and choose a force field.&lt;/li>
&lt;li>Define the simulation box and solvate it.&lt;/li>
&lt;li>Add ions to neutralize the system.&lt;/li>
&lt;li>Minimize the energy.&lt;/li>
&lt;li>Equilibrate under NVT, then NPT.&lt;/li>
&lt;li>Run the production MD.&lt;/li>
&lt;li>Analyze the results, e.g. plot the potential energy.&lt;/li>
&lt;/ol>
&lt;h2 id="folder-structure">Folder Structure&lt;/h2>
&lt;ul>
&lt;li>&lt;strong>GROMACS&lt;/strong>: &lt;code>GROMACS_playground.ipynb&lt;/code> plus the &lt;code>.mdp&lt;/code> parameter files in &lt;code>scripts/&lt;/code> (ions, minimization, NVT, NPT, MD).&lt;/li>
&lt;li>&lt;strong>OPENMM&lt;/strong>: &lt;code>OPENMM_playground.ipynb&lt;/code> (CHARMM36 force field, minimization, NVT/NPT and production with reporters).&lt;/li>
&lt;li>&lt;strong>structures&lt;/strong>: The 1AKI input structure, raw and cleaned.&lt;/li>
&lt;/ul>
&lt;h2 id="setting-up-openmm">Setting Up OpenMM&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">conda create -n openmm
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">conda activate openmm
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">conda install -c conda-forge openmm numpy matplotlib jupyter
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="references">References&lt;/h2>
&lt;ol>
&lt;li>J. A. Lemkul. From Proteins to Perturbed Hamiltonians: A Suite of Tutorials for the GROMACS-2018 Molecular Simulation Package. Living Journal of Computational Molecular Science (2018), 1(1):5068. DOI: 10.33011/livecoms.1.1.5068&lt;/li>
&lt;li>M. J. Abraham et al. GROMACS: High performance molecular simulations through multi-level parallelism from laptops to supercomputers. SoftwareX (2015), 1–2:19–25. DOI: 10.1016/j.softx.2015.06.001&lt;/li>
&lt;li>P. Eastman et al. OpenMM 8: Molecular Dynamics Simulation with Machine Learning Potentials. J. Phys. Chem. B (2024), 128(1):109–116. DOI: 10.1021/acs.jpcb.3c06662&lt;/li>
&lt;/ol>
&lt;h2 id="did-you-find-this-page-helpful-consider-sharing-it-">Did you find this page helpful? Consider sharing it 🙌&lt;/h2></description></item></channel></rss>