# Protein small molecule simulation

**URL:** <https://gromacs.bioexcel.eu/t/protein-small-molecule-simulation/13469>\
**Category:** User discussions\
**Tags:** simulation-setup\
**Created:** [May 20, 2026, 2:25pm UTC](https://gromacs.bioexcel.eu/t/protein-small-molecule-simulation/13469 "2026-05-20T14:25:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trideep](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@Trideep](https://gromacs.bioexcel.eu/u/Trideep)\
**Post date:** [May 20, 2026, 2:25pm UTC](https://gromacs.bioexcel.eu/t/protein-small-molecule-simulation/13469/1 "2026-05-20T14:25:58Z")

</div>

GROMACS version:2020.6  
GROMACS modification: Yes/No  
Here post your question

I want to simulate an IDP protein with a small molecule. I want to add 10 copies of the same molecule into the simulation box randomly and look for its interactions with the protein molecule then what should be a suitable approach to prepare the system? Can anyone suggest?

---

<div class="post-metadata">

**Author:** ![Karis](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@Karis](https://gromacs.bioexcel.eu/u/Karis)\
**Post date:** [May 21, 2026, 8:40am UTC](https://gromacs.bioexcel.eu/t/protein-small-molecule-simulation/13469/2 "2026-05-21T08:40:20Z")

</div>

Gromacs has the insert-molecule function which should work for randomly inserting molecules (check out [Building Biphasic Systems](http://www.mdtutorials.com/gmx/biphasic/01_genconf.html) for an example of how it’s used and [gmx insert-molecules - GROMACS 2026.2 documentation](https://manual.gromacs.org/documentation/current/onlinehelp/gmx-insert-molecules.html) for more precise documentation)

---

<div class="post-metadata">

**Author:** ![Trideep](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@Trideep](https://gromacs.bioexcel.eu/u/Trideep)\
**Post date:** [June 25, 2026, 2:28am UTC](https://gromacs.bioexcel.eu/t/protein-small-molecule-simulation/13469/3 "2026-06-25T02:28:05Z")

</div>

How to calculate how many molecules are interacting with the protein in each frame of the entire simulation trajectory and those that are interacting how long do they interact?

---

<div class="post-metadata">

**Author:** ![Karis](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@Karis](https://gromacs.bioexcel.eu/u/Karis)\
**Post date:** [June 25, 2026, 5:15am UTC](https://gromacs.bioexcel.eu/t/protein-small-molecule-simulation/13469/4 "2026-06-25T05:15:31Z")

</div>

Depends a bit on what you mean by interact. One option would be to create a contact map based on the minimum distance between molecules and protein (you can extract distances using mindist [gmx mindist - GROMACS 2026.2 documentation](https://manual.gromacs.org/documentation/current/onlinehelp/gmx-mindist.html) , or gmx distance or pairdist, depending on what you’re trying to achieve). You could also count hydrogen bonds ([How to study Hydrogen bonds using GROMACS - Compchems](https://www.compchems.com/how-to-study-hydrogen-bonds-using-gromacs/)) or look at electrostatic interactions (see Protein-Ligand Interaction Energy in [Protein-Ligand Complex](http://www.mdtutorials.com/gmx/complex/09_analysis.html) ). In terms of counting the number in each frame and for how many frames, I don’t think there’s a specific gromacs function built in, you may just have to define the necessary index groups with gmx make\_ndx, output the contacts you defined, then write up a script to count based on what you’re looking for
