# Ligand MD simulation

**URL:** <https://gromacs.bioexcel.eu/t/ligand-md-simulation/10503>\
**Category:** User discussions\
**Tags:** grompp, simulation-setup\
**Created:** [November 8, 2024, 4:45am UTC](https://gromacs.bioexcel.eu/t/ligand-md-simulation/10503 "2024-11-08T04:45:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nhina](https://avatars.discourse-cdn.com/v4/letter/n/46a35a/32.png) [@nhina](https://gromacs.bioexcel.eu/u/nhina)\
**Post date:** [November 8, 2024, 4:45am UTC](https://gromacs.bioexcel.eu/t/ligand-md-simulation/10503/1 "2024-11-08T04:45:13Z")

</div>

GROMACS version: 2019.6  
Hi guys,  
I am performing a MD simulation for ligand only in the FEP calculations framework. The ligand molecules are parameterized by ATP website for gromos force field. Now, I get error about forcefield.itp when I run command: gmx grompp -f em.mdp -c lig.pdb -p top.top -o ion.tpr.  
I think the problem is that I am missing [atomtypes] section in itp file. However, the \*.itp of ligand is automatically generated by web server, so how can I fix this problem?  
I will attach both my top.top and MOL\_GMX.itp files. I hope someone can suggest me other option or how to fix this error. If you want me to send more information about em.mdp, please leave me a comment.  
Thanks a lot in advance

My error:

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

* * *

forcefield…itp

#define \_FF\_GROMOS96  
#define \_FF\_GROMOS54A7

[defaults]  
; nbfunc comb-rule gen-pairs fudgeLJ fudgeQQ  
1 1 no 1.0 1.0

#include “ffnonbonded.itp”  
#include “ffbonded.itp”

* * *

My top.top

; Include forcefield parameters  
#include “gromos54a7\_atb.ff/forcefield.itp”  
#include “MOL\_GMX.itp”

; Include water topology  
#include “gromos54a7\_atb.ff/forcefield.itp”

#ifdef POSRES\_WATER  
; Position restraint for each water oxygen  
[position\_restraints]  
; i funct fcx fcy fcz  
1 1 1000 1000 1000  
#endif

; Include topology for ions  
#include “gromos54a7\_atb.ff/forcefield.itp”

[system]  
; Name  
Protein in water

[molecules]  
; Compound #mols  
G3R0 1

SOL 2157

* * *

My \*.itp for ligand  
[moleculetype]  
; Name nrexcl  
G3R0 3  
[atoms]  
; nr type resnr resid atom cgnr charge mass  
1 CH3 1 G3R0 C14 1 0.091 15.0350  
2 NTer 1 G3R0 N4 2 -0.256 14.0067  
3 CH2 1 G3R0 C12 3 0.077 14.0270  
4 CH2 1 G3R0 C11 4 0.207 14.0270  
5 NOpt 1 G3R0 N3 5 -0.841 14.0067  
6 CH2 1 G3R0 C15 6 0.195 14.0270  
7 CH2 1 G3R0 C13 7 0.053 14.0270  
8 SDmso 1 G3R0 S1 8 2.852 32.0600  
9 OM 1 G3R0 O1 9 -0.917 15.9994  
10 OM 1 G3R0 O2 10 -0.917 15.9994  
11 CAro 1 G3R0 C8 11 -0.799 12.0110  
12 CAro 1 G3R0 C7 12 -0.022 12.0110  
13 HC 1 G3R0 H24 13 0.162 1.0080  
14 CAro 1 G3R0 C6 14 -0.144 12.0110  
15 HC 1 G3R0 H25 15 0.148 1.0080  
16 CAro 1 G3R0 C5 16 0.018 12.0110  
17 CAro 1 G3R0 C10 17 -0.144 12.0110  
18 HC 1 G3R0 H26 18 0.148 1.0080  
19 CAro 1 G3R0 C9 19 -0.022 12.0110  
20 HC 1 G3R0 H27 20 0.162 1.0080  
21 CAro 1 G3R0 C1 21 -0.113 12.0110  
22 NOpt 1 G3R0 N1 22 -0.075 14.0067  
23 CAro 1 G3R0 C2 23 -0.242 12.0110  
24 CAro 1 G3R0 C4 24 0.185 12.0110  
25 NOpt 1 G3R0 N2 25 -0.166 14.0067  
26 CAro 1 G3R0 C3 26 0.003 12.0110  
27 HC 1 G3R0 H28 27 0.196 1.0080  
28 NPri 1 G3R0 N8 28 -0.324 14.0067  
29 HS14 1 G3R0 H2 29 0.257 1.0080  
30 HS14 1 G3R0 H3 30 0.257 1.0080  
…

---

<div class="post-metadata">

**Author:** ![MagnusL](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/magnusl/32/2380_2.png) [@MagnusL](https://gromacs.bioexcel.eu/u/MagnusL)\
**Post date:** [November 8, 2024, 6:47am UTC](https://gromacs.bioexcel.eu/t/ligand-md-simulation/10503/2 "2024-11-08T06:47:15Z")

</div>

Sometimes you have to reorganize contents of itp files, but in this case I think it will be enough if you avoid repeating `#include “gromos54a7_atb.ff/forcefield.itp”`. You can only include the force field once (at the top), you are including it three times. You should include the water model itp file and the ions.itp file from the force field directory.

---

<div class="post-metadata">

**Author:** ![nhina](https://avatars.discourse-cdn.com/v4/letter/n/46a35a/32.png) [@nhina](https://gromacs.bioexcel.eu/u/nhina)\
**Post date:** [November 8, 2024, 8:35am UTC](https://gromacs.bioexcel.eu/t/ligand-md-simulation/10503/3 "2024-11-08T08:35:05Z")

</div>

Oh I did it, thank you so much for your suggestion
