Hello lammps users,
I am trying to use topo tools to create a lammps data files for my simulation. To start with, I checked whether I could reproduce a lammpsdata file (say data.foo) which I have obtained previously by using amb2lmp.
I proceeded as follows.
Start vmd
- Load data.foo into vmd (topo read lammpsdata data.foo)
- Created a psf file from data.foo by using the command animate write psf data.psf
- Delete the molecule, data.foo that was loaded in vmd and make sure no other molecule is loaded in vmd.
- Load data.psf and load the pdb file of the molecule into the psf file. (This is to prevent vmd from defining its own bonds based on distance, otherwise pdb file would be enough). Before loading the pdb file I changed the column of atom names in the pdbfile to atom types corresponding to the amber forcefield. This is because topo retypebonds (the command which I am going to use later) by default uses atom names to create atom types, i.e., if there n atoms and if one does not assign atom types and uses the command topo retypebonds it creates n-1 bondtypes.
- Issue the following commands sequentially in tkconsole of vmd
topo retypebonds, topo guessangles, topoguessdihedrals, topowritelammpsdata data.foo_topo.
The result is.
data.foo (from amb2lmp)
75 atoms
74 bonds
138 angles
228 dihedrals
0 impropers
6 atom types
6 bond types
12 angle types
10 dihedral types
data.foo_topo (by using topo tools)
75 atoms
74 bonds
138 angles
174 dihedrals
0 impropers
6 atom types
6 bond types
12 angle types
15 dihedral type
Remarks:
I tried the same procedure for a small molecule (ethane). I was able to reproduce the data file using topo tools.
I am not concerned about the Force parameters which I am planning to use from gaff.lt (moltemplate) or gaff.dat (ambertools)
For large molecules, the number of dihedrals and the dihedral types alone don’t match.
Questions:
- Am I making a mistake in the above procedure for creating data file using topo tools ?
- I do not know why the data is inconsistent with the dihedrals and the dihedral types alone ?
- I have seen a similar post discussing this issue
http://sourceforge.net/p/lammps/mailman/message/26952647/
Dr. Axel you mentioned about a template approach in this post. Can you please elaborate on that if you do not find fault in my approach listed above ?