# Why is my collective variable negative during metadynamics?

**URL:** <https://gromacs.bioexcel.eu/t/why-is-my-collective-variable-negative-during-metadynamics/10632>\
**Category:** User discussions\
**Created:** [November 26, 2024, 5:06am UTC](https://gromacs.bioexcel.eu/t/why-is-my-collective-variable-negative-during-metadynamics/10632 "2024-11-26T05:06:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bijaya](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@Bijaya](https://gromacs.bioexcel.eu/u/Bijaya)\
**Post date:** [November 26, 2024, 5:06am UTC](https://gromacs.bioexcel.eu/t/why-is-my-collective-variable-negative-during-metadynamics/10632/1 "2024-11-26T05:06:04Z")

</div>

GROMACS version:2022.4  
GROMACS modification: Yes/No  
Here post your question  
Hi all.  
I am carrying out a metadynamics simulation where my collective variable is distance between two groups. The FES I’m getting in some case has values in negative for the x-axis, i.e the collective variable. Can anyone tell me if I’m doing it wrong and how to correct it ?

---

<div class="post-metadata">

**Author:** ![fatpmeireles](https://avatars.discourse-cdn.com/v4/letter/f/ecd19e/32.png) [@fatpmeireles](https://gromacs.bioexcel.eu/u/fatpmeireles)\
**Post date:** [November 26, 2024, 9:10am UTC](https://gromacs.bioexcel.eu/t/why-is-my-collective-variable-negative-during-metadynamics/10632/2 "2024-11-26T09:10:12Z")

</div>

Hi,

Did you visually inspect what happens during your simulation at these negative values? It could be that your “distance” C.V. is directional, so once your two groups cross paths on the x-axis you start getting negative values.

---

<div class="post-metadata">

**Author:** ![Bijaya](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@Bijaya](https://gromacs.bioexcel.eu/u/Bijaya)\
**Post date:** [November 26, 2024, 9:34am UTC](https://gromacs.bioexcel.eu/t/why-is-my-collective-variable-negative-during-metadynamics/10632/3 "2024-11-26T09:34:30Z")

</div>

I looked into the COLVAR file. There is no such negative values for the CV. But the FES I am getting has some initial values in negative. I visualized the trajectory file. There is nothing abnormal about it.
