# How to pull a surfactant for umbrella sampling?

**URL:** <https://gromacs.bioexcel.eu/t/how-to-pull-a-surfactant-for-umbrella-sampling/7155>\
**Category:** User discussions\
**Created:** [September 10, 2023, 8:13pm UTC](https://gromacs.bioexcel.eu/t/how-to-pull-a-surfactant-for-umbrella-sampling/7155 "2023-09-10T20:13:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mj.rezayani](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/mj.rezayani/32/3918_2.png) [@mj.rezayani](https://gromacs.bioexcel.eu/u/mj.rezayani)\
**Post date:** [September 10, 2023, 8:13pm UTC](https://gromacs.bioexcel.eu/t/how-to-pull-a-surfactant-for-umbrella-sampling/7155/1 "2023-09-10T20:13:07Z")

</div>

Dear GROMACS user.

I am simulating a system consisting of Decane/water/surfactant. I would like to pull one surfactant molecule toward the water phase while the other surfactants remain intact, to calculate delta G using umbrella sampling (As I depicted in the attached image). I read the GROMACS tutorial for umbrella sampling. However, I don’t know how to pull just one surfactant. In the tutorial, the whole system was pulled while one part was constrained. How can I do that?  
Also, Can I apply force on just one atom on the head of surfactant, for example?  
Thanks

 ![Picture1](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/2X/7/7c96904bbaa2938159b79bf4acd3162c72dcb79b.png)

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [September 10, 2023, 8:38pm UTC](https://gromacs.bioexcel.eu/t/how-to-pull-a-surfactant-for-umbrella-sampling/7155/2 "2023-09-10T20:38:52Z")

</div>

You can apply the pulling force to any subset of atoms in the system, so all you have to do to pull on one surfactant molecule is define it in an index group.

---

<div class="post-metadata">

**Author:** ![mj.rezayani](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/mj.rezayani/32/3918_2.png) [@mj.rezayani](https://gromacs.bioexcel.eu/u/mj.rezayani)\
**Post date:** [September 11, 2023, 5:25pm UTC](https://gromacs.bioexcel.eu/t/how-to-pull-a-surfactant-for-umbrella-sampling/7155/3 "2023-09-11T17:25:52Z")

</div>

Dear Lemkul,

Thanks for your response.  
How can I define to pull the surfactant to right or left? For example, to Z or -Z. is there any option in umbrella.mdp file?  
Thanks again.

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [September 15, 2023, 3:04am UTC](https://gromacs.bioexcel.eu/t/how-to-pull-a-surfactant-for-umbrella-sampling/7155/4 "2023-09-15T03:04:02Z")

</div>

```auto
pull-coord1-vec = 0 0 -1

```

vs.

```auto
pull-coord1-vec = 0 0 1

```
