# Steered molecular dynamics , direction of the pull

**URL:** <https://gromacs.bioexcel.eu/t/steered-molecular-dynamics-direction-of-the-pull/9367>\
**Category:** User discussions\
**Tags:** mdp-parameters, mdrun, simulation-setup\
**Created:** [June 12, 2024, 5:49pm UTC](https://gromacs.bioexcel.eu/t/steered-molecular-dynamics-direction-of-the-pull/9367 "2024-06-12T17:49:43Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ranbir720](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@Ranbir720](https://gromacs.bioexcel.eu/u/Ranbir720)\
**Post date:** [June 12, 2024, 5:49pm UTC](https://gromacs.bioexcel.eu/t/steered-molecular-dynamics-direction-of-the-pull/9367/1 "2024-06-12T17:49:43Z")

</div>

GROMACS version:  
GROMACS modification: Yes/No  
Here post your question  
In the simulation that I have posted , as you can see that my ligand molecule is pulled down . What should I do such that the molecule goes upwards through the protein channel. What changes should I make in the pull.mdp file .

 ![Screenshot_2024-06-12-23-17-05-88_92460851df6f172a4592fca41cc2d2e6](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/2X/8/89b82d5116f0abdfb979141a6586de9018302cc8.jpeg)  
 ![Screenshot_2024-06-12-23-17-53-13_92460851df6f172a4592fca41cc2d2e6](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/2X/6/6f7b8c35b0467361160077d627130d9b4e5f3eff.jpeg)  
 ![Screenshot_2024-06-12-23-18-14-15_92460851df6f172a4592fca41cc2d2e6](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/2X/3/36ad5a701aa251df8ae3f8256e1c0f0b013dcd26.jpeg)

---

<div class="post-metadata">

**Author:** ![obZehn](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/obzehn/32/2629_2.png) [@obZehn](https://gromacs.bioexcel.eu/u/obZehn)\
**Post date:** [June 13, 2024, 8:19am UTC](https://gromacs.bioexcel.eu/t/steered-molecular-dynamics-direction-of-the-pull/9367/2 "2024-06-13T08:19:30Z")

</div>

It is a bit impossible to help if you post photos and not the .mdp options you are using to pull the molecule. In general, try to invert the sign of the speed in the .mdp file, this should invert the direction of the pulling

---

<div class="post-metadata">

**Author:** ![Ranbir720](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@Ranbir720](https://gromacs.bioexcel.eu/u/Ranbir720)\
**Post date:** [June 13, 2024, 8:47am UTC](https://gromacs.bioexcel.eu/t/steered-molecular-dynamics-direction-of-the-pull/9367/3 "2024-06-13T08:47:35Z")

</div>

; Pull code  
pull = yes  
pull\_ncoords = 1 ; only one reaction coordinate  
pull\_ngroups = 2 ; two groups defining one reaction coordinate  
pull\_group1\_name = Chain\_A  
pull\_group2\_name = Chain\_B  
pull-group2-pbcatom = 4684  
pull-pbc-ref-prev-step-com = yes  
pull\_coord1\_type = umbrella ; harmonic potential  
pull\_coord1\_geometry = distance ; simple distance increase  
pull\_coord1\_dim = N N Y  
pull\_coord1\_groups = 1 2  
pull\_coord1\_start = yes ; define initial COM distance \> 0  
pull\_coord1\_rate = -0.01 ; 0.01 nm per ps = 10 nm per ns  
pull\_coord1\_k = 1000 ; kJ mol^-1 nm^-2

this is the pull code that i have tried just now . I have put one simulation using this . I used the negative pull rate , is that the same thing that you were talking about

---

<div class="post-metadata">

**Author:** ![obZehn](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/obzehn/32/2629_2.png) [@obZehn](https://gromacs.bioexcel.eu/u/obZehn)\
**Post date:** [June 13, 2024, 9:10am UTC](https://gromacs.bioexcel.eu/t/steered-molecular-dynamics-direction-of-the-pull/9367/4 "2024-06-13T09:10:19Z")

</div>

Your set up is `pull_coord1_geometry = distance` which from the [manual](https://manual.gromacs.org/5.1/user-guide/mdp-options.html#com-pulling) is defined as

```auto
Pull along the vector connecting the two groups. Components can be selected with pull-coord1-dim.

```

and your set up is then `pull_coord1_dim = N N Y` which means that you are pulling along the z coordinate. I do not know what was the set up of the .mdp file, but changing the sign of the rate/speed is for sure the first thing to try. This won’t ensure that the molecule will go thorough the channel, though.

---

<div class="post-metadata">

**Author:** ![Ranbir720](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@Ranbir720](https://gromacs.bioexcel.eu/u/Ranbir720)\
**Post date:** [June 13, 2024, 9:21am UTC](https://gromacs.bioexcel.eu/t/steered-molecular-dynamics-direction-of-the-pull/9367/5 "2024-06-13T09:21:33Z")

</div>

As I said before that I had kept a simulation in which I had assigned a negative sign for the pull rate . The simulation was complete , but what has occured is the ligand didn’t move at all . Should I increase the force .

---

<div class="post-metadata">

**Author:** ![Ranbir720](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@Ranbir720](https://gromacs.bioexcel.eu/u/Ranbir720)\
**Post date:** [June 13, 2024, 9:55am UTC](https://gromacs.bioexcel.eu/t/steered-molecular-dynamics-direction-of-the-pull/9367/6 "2024-06-13T09:55:35Z")

</div>

should i also try to interchange the pull groups as in the simulations that i have performed so far , i have kept my ligand as the group 1 and the protein as group2

---

<div class="post-metadata">

**Author:** ![Ranbir720](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@Ranbir720](https://gromacs.bioexcel.eu/u/Ranbir720)\
**Post date:** [June 13, 2024, 12:48pm UTC](https://gromacs.bioexcel.eu/t/steered-molecular-dynamics-direction-of-the-pull/9367/7 "2024-06-13T12:48:33Z")

</div>

I tried simulating the system several times using the negative pull rate , but every time the ligand just didnt move or the simulation stopped stating a fatal error  
Fatal error:  
Pull reference distance for coordinate 1 (-0.000004) needs to be non-negative

i even tried interchanging the groups , i.e making protein as group 1 and ligand as group 2 , but no positive result .

---

<div class="post-metadata">

**Author:** ![MagnusL](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/magnusl/32/2380_2.png) [@MagnusL](https://gromacs.bioexcel.eu/u/MagnusL)\
**Post date:** [June 13, 2024, 1:08pm UTC](https://gromacs.bioexcel.eu/t/steered-molecular-dynamics-direction-of-the-pull/9367/8 "2024-06-13T13:08:21Z")

</div>

Making the protein group 1 is usually a good idea, or you could set `pull_coord1_groups = 2 1`. The first group of the pull coordinate is used as reference to pull the other group. You usually want a large group as reference. But you said that you already tried that.

How long does it take for the simulations to crash? Check the `pullx.xvg` output file to see where the reference coordinate is (along the pulling dimension). If the reference coordinate (the distance you try to keep the groups at at that step) approaches 0 without the pulled group moving much then you probably need to increase the force constant. If the reference coordinate gets \<0 you will get the crash you encountered.

---

<div class="post-metadata">

**Author:** ![Ranbir720](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@Ranbir720](https://gromacs.bioexcel.eu/u/Ranbir720)\
**Post date:** [June 13, 2024, 1:19pm UTC](https://gromacs.bioexcel.eu/t/steered-molecular-dynamics-direction-of-the-pull/9367/9 "2024-06-13T13:19:22Z")

</div>

Sir one thing that I noticed in these simulations is that , when the pull rate was non negative value of 0.01 , then the pull happened pretty well in the downward direction which is not desired . This happened well within 100 ps . But when I made the pull rate negative . Even after 110 ps the ligand didn’t seem to move much. In the next trial i tried to increase the pull force from 1000 to 1500 . Then too I got the same result. What might be the reason behind this , should I increase the force even more ?

Sir I’ll also check the .xvg file to see where the system crashes exactly

---

<div class="post-metadata">

**Author:** ![MagnusL](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/magnusl/32/2380_2.png) [@MagnusL](https://gromacs.bioexcel.eu/u/MagnusL)\
**Post date:** [June 13, 2024, 1:25pm UTC](https://gromacs.bioexcel.eu/t/steered-molecular-dynamics-direction-of-the-pull/9367/10 "2024-06-13T13:25:52Z")

</div>

It will be trying to move the ligand in a (if it’s the second group in `pull_coord1_groups`) towards the center of the protein, along the Z axis. If there is anything in its way (such as protein atoms) you will need a high (or very high) force constant (and after a while the simulation will probably crash due to the high forces or due to the reference distance becoming negative).

---

<div class="post-metadata">

**Author:** ![Ranbir720](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@Ranbir720](https://gromacs.bioexcel.eu/u/Ranbir720)\
**Post date:** [June 13, 2024, 1:43pm UTC](https://gromacs.bioexcel.eu/t/steered-molecular-dynamics-direction-of-the-pull/9367/11 "2024-06-13T13:43:56Z")

</div>

Sir I have just tried this , I have kept the force constant high . And sir you are right, actually in the upward direction where I want the ligand molecule to go , it is encountering too many atoms . Let’s see , i have kept the Job to run . Will update the results

---

<div class="post-metadata">

**Author:** ![Ranbir720](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@Ranbir720](https://gromacs.bioexcel.eu/u/Ranbir720)\
**Post date:** [June 13, 2024, 2:00pm UTC](https://gromacs.bioexcel.eu/t/steered-molecular-dynamics-direction-of-the-pull/9367/12 "2024-06-13T14:00:59Z")

</div>

Sir I think , the PDB of the protein channel that I have used is in closed state. Thats the reason why the molecule is not able to move upwards . I need to rebuild the structure by taking the protein channel in its open state .
