# Pull code and pull-group1-pbcatom

**URL:** <https://gromacs.bioexcel.eu/t/pull-code-and-pull-group1-pbcatom/1172>\
**Category:** User discussions\
**Created:** [November 30, 2020, 6:56pm UTC](https://gromacs.bioexcel.eu/t/pull-code-and-pull-group1-pbcatom/1172 "2020-11-30T18:56:34Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sasha](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sasha](https://gromacs.bioexcel.eu/u/Sasha)\
**Post date:** [November 30, 2020, 6:56pm UTC](https://gromacs.bioexcel.eu/t/pull-code-and-pull-group1-pbcatom/1172/1 "2020-11-30T18:56:34Z")

</div>

GROMACS version: 2020.4

Hi all,

I’ve been pulling pre-stretched DNA along the Z-direction through a pore in a solid membrane + some solvent. My pull code has been:

pull = yes  
pull-coord1-type = umbrella  
pull\_group1\_name = DNA  
pull\_coord1\_start = yes  
pull\_coord1\_geometry = direction-periodic  
pull\_ngroups = 1  
pull\_ncoords = 1  
pull\_coord1\_groups = 0 1  
pull\_coord1\_origin = 0 0 0 ;default  
pull\_coord1\_vec = 0 0 -1  
pull\_coord1\_rate = 2.0e-5  
pull\_coord1\_k = 5000  
pull-nstxout = 5000  
pull-nstfout = 5000

At some my system changed a bit and now it is much longer in the Z-direction, so grompp issued a bunch of setup errors and the following had to be added to the pull code:

pull-group1-pbcatom = 5419  
pull-pbc-ref-prev-step-com = yes

I thought it worked, but it is actually clunky. The pulling rate seems to oscillate and sometimes there are distinct jerking motions of the DNA along Z. My assumption was that 5419 should be a central atom in the DNA molecule (say, a phosphorus), close to the membrane at the start of the simulation. Is this correct, or is that PBC atom supposed to be in the membrane? Alternatively, is there a way to set this up so that it works the way it did with the original pull code (above)?

Many thanks!

Sasha

---

<div class="post-metadata">

**Author:** ![Sasha](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sasha](https://gromacs.bioexcel.eu/u/Sasha)\
**Post date:** [December 2, 2020, 12:17am UTC](https://gromacs.bioexcel.eu/t/pull-code-and-pull-group1-pbcatom/1172/2 "2020-12-02T00:17:19Z")

</div>

Bump. Is there absolutely anyone who could help with pull code?

---

<div class="post-metadata">

**Author:** ![alevilla](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/alevilla/32/439_2.png) [@alevilla](https://gromacs.bioexcel.eu/u/alevilla)\
**Post date:** [December 4, 2020, 4:10pm UTC](https://gromacs.bioexcel.eu/t/pull-code-and-pull-group1-pbcatom/1172/3 "2020-12-04T16:10:54Z")

</div>

Hi,  
Did you try to use pull-coord1-geometry = cylinder?  
See here for more details

> **[Non-equilibrium pulling — GROMACS 2020.4 documentation](http://manual.gromacs.org/current/reference-manual/special/pulling.html#the-pull-code)**

Best regards  
Alessandra

---

<div class="post-metadata">

**Author:** ![Sasha](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sasha](https://gromacs.bioexcel.eu/u/Sasha)\
**Post date:** [December 4, 2020, 7:05pm UTC](https://gromacs.bioexcel.eu/t/pull-code-and-pull-group1-pbcatom/1172/4 "2020-12-04T19:05:04Z")

</div>

I’m not new to this, so, yes, I did read the documentation and this portion of it is rather poorly written. So far, constant-force seems to be the only way.

---

<div class="post-metadata">

**Author:** ![alevilla](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/alevilla/32/439_2.png) [@alevilla](https://gromacs.bioexcel.eu/u/alevilla)\
**Post date:** [December 7, 2020, 8:34am UTC](https://gromacs.bioexcel.eu/t/pull-code-and-pull-group1-pbcatom/1172/5 "2020-12-07T08:34:48Z")

</div>

Hi,  
Just to avoid confusion, my suggestion was to use pull-coord1-geometry = cylinder, not to change pull-coord1-type. `pull-coord1-type` = constant-force should work with pull-coord1-geometry = cylinder.  
in the mdp file you have uploaded pull-coord1-type = umbrella (not constant-force). I guess you have tried both.  
Best regards  
Alessandra

---

<div class="post-metadata">

**Author:** ![Sasha](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sasha](https://gromacs.bioexcel.eu/u/Sasha)\
**Post date:** [December 7, 2020, 10:56am UTC](https://gromacs.bioexcel.eu/t/pull-code-and-pull-group1-pbcatom/1172/6 "2020-12-07T10:56:41Z")

</div>

Yeah, I only changed umbrella to constant-force. For my system, cylinder seems questionable in the same way direction-periodic is, because the COM position of a periodic vertically positioned DNA actually does not do anything but oscillate.  
I wish I could try a bunch of options, but the system is so heavy that I need days before finding out if things work. Constant force seems fine, except now one really needs to adjust it to get a reasonable pulling rate. Thanks for the suggestion anyway!

---

<div class="post-metadata">

**Author:** ![Natsulait](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/natsulait/32/1045_2.png) [@Natsulait](https://gromacs.bioexcel.eu/u/Natsulait)\
**Post date:** [September 10, 2021, 6:21am UTC](https://gromacs.bioexcel.eu/t/pull-code-and-pull-group1-pbcatom/1172/7 "2021-09-10T06:21:31Z")

</div>

I have a question on the options added to pull the pre-stretched system along z-direction.  
I wonder why the following options were needed to simulate the system?

> pull-group1-pbcatom = 5419  
> pull-pbc-ref-prev-step-com = yes

I don’t understand how they work.  
I know that the option `pull-group1-pbcatom` specifies a reference atom. But I am unsure what is a reference atom and for what the atom is used.

Thanks,

---

<div class="post-metadata">

**Author:** ![Sasha](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sasha](https://gromacs.bioexcel.eu/u/Sasha)\
**Post date:** [October 18, 2021, 12:01am UTC](https://gromacs.bioexcel.eu/t/pull-code-and-pull-group1-pbcatom/1172/8 "2021-10-18T00:01:15Z")

</div>

The reference is to some sort of a “central” portion of the system that will help the software treat PBC. Unfortunately, the documentation pertaining to the entire pull code section is pretty terrible.

---

<div class="post-metadata">

**Author:** ![alevilla](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/alevilla/32/439_2.png) [@alevilla](https://gromacs.bioexcel.eu/u/alevilla)\
**Post date:** [October 18, 2021, 7:47am UTC](https://gromacs.bioexcel.eu/t/pull-code-and-pull-group1-pbcatom/1172/9 "2021-10-18T07:47:11Z")

</div>

Hi,  
maybe you can open an issue on GROMACS GitLab on how to improve the pull-code documentation.  
\Alessandra
