# Rmsd shots after recentering with trjconv

**URL:** https://gromacs.bioexcel.eu/t/rmsd-shots-after-recentering-with-trjconv/621
**Category:** User discussions
**Created:** [August 5, 2020, 1:58am UTC](https://gromacs.bioexcel.eu/t/rmsd-shots-after-recentering-with-trjconv/621 "2020-08-05T01:58:09Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Neena](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@Neena](https://gromacs.bioexcel.eu/u/Neena)
#### Post date: [August 5, 2020, 1:58am UTC](https://gromacs.bioexcel.eu/t/rmsd-shots-after-recentering-with-trjconv/621/1 "2020-08-05T01:58:09Z")

</div>

GROMACS version: 2019.1  
GROMACS modification: No  
Here post your question

Simulating one peptide in vacuum in a 999 nm^3 box, rmsd shots even after recentering with trjconv. Expected structure on the top, but keeps unfolding back and forth. Any insights?

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/1X/5e52aba2f13e12287598c40de12d430b4e0b9e35.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: [August 5, 2020, 3:58pm UTC](https://gromacs.bioexcel.eu/t/rmsd-shots-after-recentering-with-trjconv/621/2 "2020-08-05T15:58:44Z")

</div>

Sounds like expected behavior for a short peptide.

---

<div class="post-metadata">

### Author: ![Neena](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@Neena](https://gromacs.bioexcel.eu/u/Neena)
#### Post date: [August 5, 2020, 6:55pm UTC](https://gromacs.bioexcel.eu/t/rmsd-shots-after-recentering-with-trjconv/621/3 "2020-08-05T18:55:12Z")

</div>

In some trials with same parameters, I see no unfolding of the peptide, stable rmsd within 50 ps of production run. This is what I do not understand.

---

<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: [August 5, 2020, 7:26pm UTC](https://gromacs.bioexcel.eu/t/rmsd-shots-after-recentering-with-trjconv/621/4 "2020-08-05T19:26:42Z")

</div>

I don’t think you can reasonably conclude anything from 50 ps. Even in this simulation, if you stopped it at 50 ps, you would conclude that the peptide unfolds immediately and stays that way, but clearly it re-folds quickly, and remains that way for the majority of the simulation.

---

<div class="post-metadata">

### Author: ![Neena](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@Neena](https://gromacs.bioexcel.eu/u/Neena)
#### Post date: [August 5, 2020, 7:49pm UTC](https://gromacs.bioexcel.eu/t/rmsd-shots-after-recentering-with-trjconv/621/5 "2020-08-05T19:49:26Z")

</div>

@Justin, sorry I misworded it, in some trials, I see no unfolding of the peptide, stable rmsd is achieved after 50 ps till the end of the production run, which usually I run till 300 ns.

---

<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: [August 7, 2020, 6:03pm UTC](https://gromacs.bioexcel.eu/t/rmsd-shots-after-recentering-with-trjconv/621/6 "2020-08-07T18:03:50Z")

</div>

This sounds like normal inter-trajectory variability. How many replicates have you performed? Do you start from different velocities, different initial geometries, or both?

---

<div class="post-metadata">

### Author: ![Neena](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@Neena](https://gromacs.bioexcel.eu/u/Neena)
#### Post date: [August 7, 2020, 9:10pm UTC](https://gromacs.bioexcel.eu/t/rmsd-shots-after-recentering-with-trjconv/621/7 "2020-08-07T21:10:43Z")

</div>

I have done atleast four runs, yes indeed so much variability between these trials, I usually use random seed generator (Set to -1) and used minimized structure from one simulation cycle (nvt, md, em) for next trial

---

<div class="post-metadata">

### Author: ![Neena](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@Neena](https://gromacs.bioexcel.eu/u/Neena)
#### Post date: [August 12, 2020, 1:50am UTC](https://gromacs.bioexcel.eu/t/rmsd-shots-after-recentering-with-trjconv/621/8 "2020-08-12T01:50:21Z")

</div>

In addition, I do not see this unfolding when I set constraints = None.  
Any insight would be really appreciated.

---

<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: [August 12, 2020, 12:24pm UTC](https://gromacs.bioexcel.eu/t/rmsd-shots-after-recentering-with-trjconv/621/9 "2020-08-12T12:24:54Z")

</div>

Have you done the QM vs. MM vibrational frequency comparison that I suggested for N-methylacetamide and a short peptide (e.g. trialanine) to confirm that the force field actually models H-X vibrations correctly? If not, start there. Again, as I’ve said many times, the force field you’re using is designed to be used with constraints and in the condensed phase. If you take it out of those conditions, it may not provide a reliable outcome. Models have limitations.

---

<div class="post-metadata">

### Author: ![Neena](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@Neena](https://gromacs.bioexcel.eu/u/Neena)
#### Post date: [August 16, 2020, 9:01pm UTC](https://gromacs.bioexcel.eu/t/rmsd-shots-after-recentering-with-trjconv/621/10 "2020-08-16T21:01:17Z")

</div>

Justin,

I am using h-bond constraints now with opls forcefield in vacuum. I understand thoroughly why h-bond constraints to be applied. I have another rmsd plot here from a peptide, 3 replicates, all starting with same energy minimized structure, but different velocities (set by gen\_seed = -1 during nvt run)  
[md.mdp](https://gromacs.bioexcel.eu/uploads/short-url/rLSZN5BhCS4PhdNcPuWNyEoaeN4.mdp) (2.0 KB)  
 ![image](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/1X/a6d998d7427380d39eab5fd32bbaa483d6cca42f.png)

Q1: In trial 1, temperature fluctuation during production run was high (rmsd 130K). Why would that happen? That temp shot coincided with rmsd shot.  
Q2: Got expected structures in trial 2 (and part of trial 3). Do I perform say x replicates till I see atleast 3 runs giving expected structures?  
Q3: I tried two sets of temperature coupling parameters with Nose-Hoover thermostat, dt = 2 fs:

| tau\_t (ps) | nsttcouple x dt (ps) | Temp rmsd |
| --- | --- | --- |
| 0.5 | 0.01 | 30 K |
| 0.1 | 0.002 | 19 K |

I got similar structures from these two conditions. But why is the temperature fluctuation much lower with the parameter set 2? Is there a rule on how to chose these values?

---

<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: [August 17, 2020, 12:56am UTC](https://gromacs.bioexcel.eu/t/rmsd-shots-after-recentering-with-trjconv/621/11 "2020-08-17T00:56:31Z")

</div>

> [@Neena](#):
>
> Q1: In trial 1, temperature fluctuation during production run was high (rmsd 130K). Why would that happen? That temp shot coincided with rmsd shot.

The conformational change probably corresponds to a large change in COM velocity, which then causes the thermostat to go haywire.

> [@Neena](#):
>
> Q2: Got expected structures in trial 2 (and part of trial 3). Do I perform say x replicates till I see atleast 3 runs giving expected structures?

As long as you don’t discount the replicate that didn’t turn out as expected, do as many replicates as you think necessary (I’d probably do 5-10 here) to have a “true” representation of the ensemble.

Regarding the thermostat, I wouldn’t use N-H with a gas-phase system. It is prone to big fluctuations, which may cause unnatural outcomes. Langevin dynamics (`integrator = sd`) is the way to go here. Your observations about temperature variation are a direct result of how strongly you’ve got the system coupled to the thermostat. The tighter you couple the system, the lower the variation in temperature. Again, avoid this entirely and run Langevin dynamics.

---

<div class="post-metadata">

### Author: ![Neena](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@Neena](https://gromacs.bioexcel.eu/u/Neena)
#### Post date: [August 17, 2020, 11:02pm UTC](https://gromacs.bioexcel.eu/t/rmsd-shots-after-recentering-with-trjconv/621/12 "2020-08-17T23:02:41Z")

</div>

Justin,

I retried with Langevin dynamics, 5 replicates, no conformational change nor temperature variation (rmsd 20 K). I also get expected structures in all, thank you for correcting me!  
 ![image](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/1X/815710af9522abc06fe2317ab9bdc1307c50b3e4.png)  
Q1: There is no proper guide to implementing MD simulations in gas phase. For example, I chose N-H thermostat based on a few papers. Any good resource to use?  
Q2: In this mdp file [nvt.mdp](https://gromacs.bioexcel.eu/uploads/short-url/nbLS4GfBStD1GRTHYpaQhIQTzIi.mdp) (1.9 KB), is there anything alarmingly wrong to use for a gas-phase system?

---

<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: [August 18, 2020, 12:32am UTC](https://gromacs.bioexcel.eu/t/rmsd-shots-after-recentering-with-trjconv/621/13 "2020-08-18T00:32:33Z")

</div>

GROMACS currently doesn’t support proper vacuum calculations. The right way to do it is a nonperiodic simulation with angular COM motion removal. Using a huge box with NVT and PBC is just a hack. I suppose it works well enough but it’s not really how these calculations are done in other software.

---

<div class="post-metadata">

### Author: ![Neena](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@Neena](https://gromacs.bioexcel.eu/u/Neena)
#### Post date: [August 20, 2020, 3:54am UTC](https://gromacs.bioexcel.eu/t/rmsd-shots-after-recentering-with-trjconv/621/14 "2020-08-20T03:54:13Z")

</div>

I always get so many LINCS warnings with angular comm mode, hence not using it. In simple terms, can you explain what does flying ice cube effect mean if rotational COM velocity is not removed?

---

<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: [August 20, 2020, 12:35pm UTC](https://gromacs.bioexcel.eu/t/rmsd-shots-after-recentering-with-trjconv/621/15 "2020-08-20T12:35:06Z")

</div>

Basically, whatever you simulate becomes a spinning rigid body.

> **[Flying ice cube](https://en.wikipedia.org/wiki/Flying_ice_cube)**
>
> In molecular dynamics (MD) simulations, the flying ice cube effect is an artifact in which the energy of high-frequency fundamental modes is drained into low-frequency modes, particularly into zero-frequency motions such as overall translation and rotation of the system. The artifact derives its name from a particularly noticeable manifestation that arises in simulations of particles in vacuum, where the system being simulated acquires high linear momentum and experiences extremely damped interna...
