# Dihedral Mutiplicity cannot be perturbed

**URL:** <https://gromacs.bioexcel.eu/t/dihedral-mutiplicity-cannot-be-perturbed/7064>\
**Category:** User discussions\
**Tags:** mdrun\
**Created:** [August 23, 2023, 6:21am UTC](https://gromacs.bioexcel.eu/t/dihedral-mutiplicity-cannot-be-perturbed/7064 "2023-08-23T06:21:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![oSalad](https://avatars.discourse-cdn.com/v4/letter/o/898d66/32.png) [@oSalad](https://gromacs.bioexcel.eu/u/oSalad)\
**Post date:** [August 23, 2023, 6:21am UTC](https://gromacs.bioexcel.eu/t/dihedral-mutiplicity-cannot-be-perturbed/7064/1 "2023-08-23T06:21:07Z")

</div>

GROMACS version: 2021  
GROMACS modification: No

Hello,  
I am trying to run FEP on a molecule to convert it from a protonated to an unprotonated form. When running grompp, I initially got the error:  
ERROR 1 [file pap2.itp, line 140]:  
Proper Dih. multiplicity can not be perturbed 2.000000!=4.000000

I went and explicitly added the B state dihedrals next to the A state dihedrals on line 140 but this didn’t fix it. How can I correctly fix the .itp file?

[dihedrals]  
; ai aj ak al funct c0 c1 c2 c3 c0\_B c1\_B c2\_B c3\_B  
3 4 7 8 9 ; CG2R61 CG2R61 CG321 CG2O2 CG2R61 CG2R61 CG321 CG2O3

I also tried adding it below but that didn’t work either.  
[dihedrals]  
; ai aj ak al funct c0 c1 c2 c3  
3 4 7 8 9 ; CG2R61 CG2R61 CG321 CG2O2  
3 4 7 8 9 ; CG2R61 CG2R61 CG321 CG2O3

---

<div class="post-metadata">

**Author:** ![hess](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/hess/32/416_2.png) [@hess](https://gromacs.bioexcel.eu/u/hess)\
**Post date:** [August 23, 2023, 7:52am UTC](https://gromacs.bioexcel.eu/t/dihedral-mutiplicity-cannot-be-perturbed/7064/2 "2023-08-23T07:52:18Z")

</div>

The error message it quite clear: you can not change the multiplicity of a dihedral.

The solution here is to change the parameters of the dihedral type with multiplicity 2 to use multiplicity 4 and a zero parameters for the higher order terms. This gives the same potential, but now with the multiplicity set to 4.

---

<div class="post-metadata">

**Author:** ![oSalad](https://avatars.discourse-cdn.com/v4/letter/o/898d66/32.png) [@oSalad](https://gromacs.bioexcel.eu/u/oSalad)\
**Post date:** [August 23, 2023, 8:42am UTC](https://gromacs.bioexcel.eu/t/dihedral-mutiplicity-cannot-be-perturbed/7064/4 "2023-08-23T08:42:51Z")

</div>

Ok. I played around and set c2 and c3 to 0.0 on line 140:  
3 4 0.0 0.0 9 ; CG2R61 CG2R61 CG321 CG2O2

After doing so, I get the following warning:  
WARNING 3 [file pap2.itp, line 140]:  
Too few parameters on line (source file  
/tmp/gromacs-20220116-70506-1iya1kj/gromacs-2021.5/src/gromacs/gmxpreprocess/toppush.cpp, line 1908)

Also, I am now getting these errors past line 151:  
ERROR 1 [file pap2.itp, line 151]:  
Cannot automatically perturb a torsion with multiple terms to different  
form.  
Please specify perturbed parameters manually for this torsion in your  
topology!

For reference:  
| 4 7 8 17| 9 ; CG2R61 CG321 CG2O2 OG311|  
| 9 7 8 16| 9 ; HGA2 CG321 CG2O2 OG2D1|  
| 9 7 8 17| 9 ; HGA2 CG321 CG2O2 OG311|  
| 10 7 8 16| 9 ; HGA2 CG321 CG2O2 OG2D1|  
| 10 7 8 17| 9 ; HGA2 CG321 CG2O2 OG311|  
| 7 8 17 18| 9 ; CG321 CG2O2 OG311 HGP1|  
| 16 8 17 18| 9 ; OG2D1 CG2O2 OG311 HGP1|

I am guessing, but could it be how I set the state B of the Hydrogen atom to a dummy atom?  
[atoms]  
; nr type resnr residue atom cgnr charge mass typeB chargeB massB  
18 HGP1 1 PAP H8 18 0.430 1.008 DUM 0 1e-6

Would really appreciate some guidance. Thanks!

---

<div class="post-metadata">

**Author:** ![oSalad](https://avatars.discourse-cdn.com/v4/letter/o/898d66/32.png) [@oSalad](https://gromacs.bioexcel.eu/u/oSalad)\
**Post date:** [August 23, 2023, 5:38pm UTC](https://gromacs.bioexcel.eu/t/dihedral-mutiplicity-cannot-be-perturbed/7064/5 "2023-08-23T17:38:50Z")

</div>

I understand what’s going on now. I first need the explicit dihedrals. Could you point me to how I can get these values? CGenFF did not calculate those for me when I used it.

---

<div class="post-metadata">

**Author:** ![hess](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/hess/32/416_2.png) [@hess](https://gromacs.bioexcel.eu/u/hess)\
**Post date:** [August 25, 2023, 7:37am UTC](https://gromacs.bioexcel.eu/t/dihedral-mutiplicity-cannot-be-perturbed/7064/6 "2023-08-25T07:37:53Z")

</div>

With “explicit dihedrals” you mean the parameter values?

You should be able to look those up in the force field files by atom type.

---

<div class="post-metadata">

**Author:** ![oSalad](https://avatars.discourse-cdn.com/v4/letter/o/898d66/32.png) [@oSalad](https://gromacs.bioexcel.eu/u/oSalad)\
**Post date:** [August 25, 2023, 7:52am UTC](https://gromacs.bioexcel.eu/t/dihedral-mutiplicity-cannot-be-perturbed/7064/7 "2023-08-25T07:52:19Z")

</div>

Figured it out. Thanks!
