lammps trajectory file error

I am trying to simulate a methylmyristate molecule and used Topo tools in VMD to generate my lammps trajectory. I have scaled down the size to post it here. I get the following error when I run the input file on LAMMPS
ERROR: Unknown identifier in data file: 0 (…/read_data.cpp::1087)
Last command: read_data data.methylmyristate

I am attaching the

  1. Input file (minimize.in)

  2. The trajectory file (data.methylmyristate) and

  3. TK console file for reference (create_data.methylmyristate_with_vmd_x64.tcl)

I would be thankful for any response I can get for my problem.

Regards,

Khubaib

minimize.in (902 Bytes)

data.methylmyristate (12.3 KB)

create_data.methylmyristate_with_vmd_x64.tcl (986 Bytes)

there are loads of problems here:

  • you are trying to read a trajectory file as a data file. that cannot work. hence the error message.
  • you are posting a VMD script, but are not using the result of it
  • your VMD script does not seem to be doing proper atom typing, as classical force field have more atom types than just the elements
  • you are using atom style molecular but seem to be interested in using ReaxFF. those are not compatible. ReaxFF must have charges included, but there must not be any bonds, angles, dihedrals or other bonded topology data, as this is all calculated dynamically from bond orders during the simulation and can change
  • there is a pair_coeff command, but no pair_style command
  • you seem to be using combustion force field parameters for regular organic molecule

what you are doing is contrary to what the LAMMPS manual explains and does not make sense scientifically.

in short, you need much more help, than this mailing list is able to provide.

axel.

Thankyou for your kind suggestions the best I have found in months. I have fixed a few errors in my program and found the appropriate file (attached here)generated by the Topotools in TK Console. I am still struggling to find the appropriate potential for the methylmyristate compound I am using. I am planning to use the LJ/cut potential only because I found a tutorial for a octane molecule using the same potential. I plan to use the pair_coeff of CH3 and CH2 molecules from the tutorial but :

1- I am not sure how to find the pair_coeff for the other two species C and O.

2- Please also advise me if I have grouped them correctly in CH3, CH2, C and O.

3- Please direct me towards some literature where I can understand how these pair coefficients are derived.

Green: Carbon

Yellow: Hydrogen

Red:Oxygen

image.png

Regards,

Khubaib

data.methylmyristate (55.1 KB)

create_data.methylmyristate_with_vmd_x64.tcl (977 Bytes)

Thankyou for your kind suggestions the best I have found in months. I have fixed a few errors in my program and found the appropriate file (attached here)generated by the Topotools in TK Console. I am still struggling to find the appropriate potential for the methylmyristate compound I am using. I am planning to use the LJ/cut potential only because I found a tutorial for a octane molecule using the same potential. I plan to use the pair_coeff of CH3 and CH2 molecules from the tutorial but :

it is not that simple. atom types in classical force field are chosen by “chemical nature”.

1- I am not sure how to find the pair_coeff for the other two species C and O.

please read up on how to assign atom types and how (classical) force fields function in a (good) text book on MD simulations like “Understanding Molecular Simulations” by Frenkel/Smit. also discuss with your adviser. what you are asking are not LAMMPS questions, but general MD questions, which are outside the scope of this mailing list.

2- Please also advise me if I have grouped them correctly in CH3, CH2, C and O.

that depends on the force field chose. same as above, this is not a LAMMPS question, but a manifestation, that you are lacking proper training. that is something that your adviser/supervisor/tutor has to teach you.

3- Please direct me towards some literature where I can understand how these pair coefficients are derived.

again, this is a question outside the scope of the this mailing list. please discuss with your adviser, read up on this in a proper text book and then research which force field is best applicable to the compound and thermodynamic state of the system you want to investigate and then look up the publication describing that force field. popular choices are CHARMM, Amber, OPLS/AA, GROMOS, each have different strategies and different mechanisms/rules how to assign atom types (and thus non-bonded and bonded parameters) and how to assign (partial) charges to model the charge distribution of your compound. the easiest choice in your case is possibly OPLS/AA, which uses an increment system to determine the (partial) charges.

however, as mentioned before, this is a topic for a discussion with your adviser/supervisor or senior/experienced colleagues, not this mailing list.

axel.

image.png