# Fatal error: Invalid dihedral type 0

**URL:** <https://gromacs.bioexcel.eu/t/fatal-error-invalid-dihedral-type-0/492>\
**Category:** User discussions\
**Created:** [July 14, 2020, 9:16pm UTC](https://gromacs.bioexcel.eu/t/fatal-error-invalid-dihedral-type-0/492 "2020-07-14T21:16:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amar\_Kumar](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@Amar\_Kumar](https://gromacs.bioexcel.eu/u/Amar_Kumar)\
**Post date:** [July 14, 2020, 9:16pm UTC](https://gromacs.bioexcel.eu/t/fatal-error-invalid-dihedral-type-0/492/1 "2020-07-14T21:16:48Z")

</div>

![error](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/1X/2c00201f06912af9f0b46fe6e98f5bf9ef47d445.png)

When I tried to follw the tutorial and add the ions. This error showed up. I will also upload the file dxc\_fix\_AC.prmtop (I have changed the extension to .mdp so that I can upload the file)

[dxc\_fix\_AC (copy).mdp](https://gromacs.bioexcel.eu/uploads/short-url/mUbTQ8LNRLudmAsFOKBN4u8trDM.mdp) (43.2 KB)

I have prepared the ligand parameters and topology using the acpype (Amber).  
Please provide some helpful suggestions.

---

<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:** [July 14, 2020, 11:29pm UTC](https://gromacs.bioexcel.eu/t/fatal-error-invalid-dihedral-type-0/492/2 "2020-07-14T23:29:49Z")

</div>

The attached file AMBER-formatted topology file. You can’t use it with GROMACS without converting it to an appropriate format.

---

<div class="post-metadata">

**Author:** ![Amar\_Kumar](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@Amar\_Kumar](https://gromacs.bioexcel.eu/u/Amar_Kumar)\
**Post date:** [July 17, 2020, 4:06pm UTC](https://gromacs.bioexcel.eu/t/fatal-error-invalid-dihedral-type-0/492/3 "2020-07-17T16:06:43Z")

</div>

Dr. @jalemkul thank you for the information. Before moving on to Amber, I am first trying to use the charmm force filed (following your tutorial but with my protein and ligand) and wanted to see how its different from AMBER force field result.

One more question, I am still confused regarding on what basis you decide what forcefield to consider?

Thank you.

---

<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:** [July 19, 2020, 10:50am UTC](https://gromacs.bioexcel.eu/t/fatal-error-invalid-dihedral-type-0/492/4 "2020-07-19T10:50:28Z")

</div>

Use the best tool for the job. Have previous investigations established validity of the force field in similar systems? Does the force field cover everything I need, and if not, is it straightforward to parametrize something new given available literature information and tools? Some of this really comes down to personal preference and what you’ve been trained in using.

---

<div class="post-metadata">

**Author:** ![Amar\_Kumar](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@Amar\_Kumar](https://gromacs.bioexcel.eu/u/Amar_Kumar)\
**Post date:** [July 21, 2020, 2:26am UTC](https://gromacs.bioexcel.eu/t/fatal-error-invalid-dihedral-type-0/492/5 "2020-07-21T02:26:03Z")

</div>

Thank you Dr. Lemkul. You have a been a constant source of information and useful suggestions. I am reading more literature to understand the world of Molecular Dynamics Simulations. I am following your suggestion, “trying to walk first before running” :)

---

<div class="post-metadata">

**Author:** ![isilayozturk](https://avatars.discourse-cdn.com/v4/letter/i/13edae/32.png) [@isilayozturk](https://gromacs.bioexcel.eu/u/isilayozturk)\
**Post date:** [February 17, 2022, 5:45pm UTC](https://gromacs.bioexcel.eu/t/fatal-error-invalid-dihedral-type-0/492/6 "2022-02-17T17:45:28Z")

</div>

But how? How can I convert to prmtop to gromacs field? why we don’t have ability to apply everything is same place. I mean why can I create ligand forcefiled in gromacs. In two says, I am trying to concert but I am failed. please help me. I have the same problem and I started using Gromacs this week.

---

<div class="post-metadata">

**Author:** ![isilayozturk](https://avatars.discourse-cdn.com/v4/letter/i/13edae/32.png) [@isilayozturk](https://gromacs.bioexcel.eu/u/isilayozturk)\
**Post date:** [February 17, 2022, 11:28pm UTC](https://gromacs.bioexcel.eu/t/fatal-error-invalid-dihedral-type-0/492/7 "2022-02-17T23:28:44Z")

</div>

![image](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/2X/d/d96f5eae23a85ee46dd320dcd40d63a8e3b29af2.png)

when I convert the parameters which I created in amber  
Which gromacs extension should I write here?  
[http://www.mdtutorials.com/gmx/complex/02\_topology.html](http://www.mdtutorials.com/gmx/complex/02_topology.html)

---

<div class="post-metadata">

**Author:** ![alanwilter](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/alanwilter/32/627_2.png) [@alanwilter](https://gromacs.bioexcel.eu/u/alanwilter)\
**Post date:** [February 18, 2022, 9:59am UTC](https://gromacs.bioexcel.eu/t/fatal-error-invalid-dihedral-type-0/492/9 "2022-02-18T09:59:24Z")

</div>

Please guys, these are really old stuff, lots of confusion, and I don’t know why google does not get you to the right place if searching for `acpype`:

Start from here:

> **[GitHub - alanwilter/acpype: OFFICIAL: AnteChamber PYthon Parser interfacE](https://github.com/alanwilter/acpype)**
>
> OFFICIAL: AnteChamber PYthon Parser interfacE. Contribute to alanwilter/acpype development by creating an account on GitHub.

Make sure to read the instructions carefully. Most importantly, learn about the tools limitations, look into some of the tutorials in the Wiki [Home · alanwilter/acpype Wiki · GitHub](https://github.com/alanwilter/acpype/wiki) and read the FAQ as well.

I know it takes time to learn these new things but it takes even more (muuuuuuuch more) time to develop it. So, a day or so reading about it and trying really worth your (and our) time before coming to ask for help.

---

<div class="post-metadata">

**Author:** ![isilayozturk](https://avatars.discourse-cdn.com/v4/letter/i/13edae/32.png) [@isilayozturk](https://gromacs.bioexcel.eu/u/isilayozturk)\
**Post date:** [February 18, 2022, 2:52pm UTC](https://gromacs.bioexcel.eu/t/fatal-error-invalid-dihedral-type-0/492/10 "2022-02-18T14:52:42Z")

</div>

thank you!! I have the same question about google
