# AMBER 99SB-ildn force field and lipids

**URL:** <https://gromacs.bioexcel.eu/t/amber-99sb-ildn-force-field-and-lipids/601>\
**Category:** User discussions\
**Created:** [July 30, 2020, 1:13pm UTC](https://gromacs.bioexcel.eu/t/amber-99sb-ildn-force-field-and-lipids/601 "2020-07-30T13:13:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![katiejoyce12](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@katiejoyce12](https://gromacs.bioexcel.eu/u/katiejoyce12)\
**Post date:** [July 30, 2020, 1:13pm UTC](https://gromacs.bioexcel.eu/t/amber-99sb-ildn-force-field-and-lipids/601/1 "2020-07-30T13:13:22Z")

</div>

I am having trouble running energy minimization after inserting lipids into a box (using insert-molecules command and a pdb file for a micelle) with a protein. Each time I try this, I get errors that the number of coordinates dont match. Ex:

Fatal error: number of coordinates in coordinate file (micelle-box.gro, 142773) does not match topology (topol.top, 179213)

Some times the gro file has more atoms that the topology file.

I tried editing the SOL number at the bottom of the topology file to equate these numbers (for every 1 I add, the total increases by 4) but that just led to more errors.

Is the problem that my force field is not compatible with lipids?

---

<div class="post-metadata">

**Author:** ![Dr\_DBW](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/dr_dbw/32/42_2.png) [@Dr\_DBW](https://gromacs.bioexcel.eu/u/Dr_DBW)\
**Post date:** [July 31, 2020, 12:10am UTC](https://gromacs.bioexcel.eu/t/amber-99sb-ildn-force-field-and-lipids/601/2 "2020-07-31T00:10:03Z")

</div>

This error is due to you not keeping correct count of the number of molecules you have actually inserted into the system.

Go back to the start, do insertions step by step, one molecule type at a time, run grompp at each step with the updated .top file (this will throw up the error you already encountered if you count incorrectly), and ensure that you get the correct number of each type of molecule added at each step.

---

<div class="post-metadata">

**Author:** ![katiejoyce12](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@katiejoyce12](https://gromacs.bioexcel.eu/u/katiejoyce12)\
**Post date:** [July 31, 2020, 11:02pm UTC](https://gromacs.bioexcel.eu/t/amber-99sb-ildn-force-field-and-lipids/601/3 "2020-07-31T23:02:46Z")

</div>

I found that the source of the errors was that Gromacs doesn’t recognize the residue name “DPC”, which is the name used in the pdb file of the micelles I’m inserting. I tried typing:

#include ‘dpc.itp’

at the top of the micelle pdb file I’m inserting, but gromacs still didn’t recognize DPC as a residue. Do you know how I might fix this?

Note: the files I’m using are from Dr. Tieleman’s page

---

<div class="post-metadata">

**Author:** ![Dr\_DBW](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/dr_dbw/32/42_2.png) [@Dr\_DBW](https://gromacs.bioexcel.eu/u/Dr_DBW)\
**Post date:** [August 1, 2020, 12:01am UTC](https://gromacs.bioexcel.eu/t/amber-99sb-ildn-force-field-and-lipids/601/4 "2020-08-01T00:01:58Z")

</div>

Do you have a dpc.itp file? What does it contain? What is the name used for the DPC molecule within that file, under the [moleculetype] section? That is what you need to use within the .top when telling grompp how many molecules are in the coordinate file.
