Hi, I’m trying to run simulations on a system with the ion CO3–. I found an article with the force field and thus I added two atoms type (C=opls_1000 and O=opls_1001) to the force field file (atomtype.atp). I modified other files: aminoacids.rtp, ffbonded.itp, ffnonbnded.itp and atomanemetype2.n2t.
I am able to create the topology, but as soon as I use grompp to genrate the fiel.tpr to use in genion I got the errors: No default angle types and No default Ryckaert-bell type.
I solved this issue by writing manually force constants in the topology file, is it right?
After that I carried on adding the cation obtaining the neutral box.
At the end of the minimization my CO3-- ion are deformed and I don’t understand why.
What kind of potential do you use for the improper dihedral? Or didn’t you add an improper at all? You shouldn’t get a complaint about RB-dihedral if you are using an proper-improper dihedral, as the parameters you post seem to suggest.
;
; File ‘topol.top’ was generated
; By user: user (1000)
; On host: Ubuntu2204
; At date: Mon Dec 16 10:31:56 2024
;
; This is a standalone topology file
;
; Created by:
; :-) GROMACS - gmx pdb2gmx, 2021.4-Ubuntu-2021.4-2 (-:
;
; Executable: /usr/bin/gmx
; Data prefix: /usr
; Working dir: /home/user/Documenti/Giuseppe2023/Li2CO3_Mondal
; Command line:
; gmx pdb2gmx -f CO3–_CompassII.pdb -p topol.top
; Force field was read from current directory or a relative path - path added.
;
; Include forcefield parameters #include “./oplsaa.ff/forcefield.itp”
Sorry for not having been clear. In the ffbonded.itp, in the dihedrals sectione, I specified the dihedral (180°) and the related constant. Do I have to put define there the dihedral as improper with #define?
I tried with a type 1, but I did not solve the problem. I tried with a type two and it worked.
Since the ff as I showed to you was developed for LAMMPS, do you think I need to do some changes or conversion before using it in gromacs? Could the error be due to this?
Ah, I didn’t check the order of the atoms. It could be that the order of the atoms doesn’t match the angle you are asking for (I haven’t checked though). If it doesn’t match, you need to swap the coordinates of two hydrogens or change the angle from 180 to 0 degrees.