as far as i can tell, this input is correctly formatted and LAMMPS
seems to be working fine reading it, there must be something wrong on
your side, or you are using an outdated/buggy LAMMPS version. please
find details and proof below.
I changed the formatting, but still getting the same exact message, the there is an “unknown section”. Seems like it has the necessary sections though.
are you sure, you are reading the corrected file? it is difficult to
judge whether you are doing everything correctly without seeing the
full output and having a complete (minimal) input deck for testing
(and it is needlessly time consuming to figure out which settings are
required to build such an input file for testing and confirming, that
there is an issue or not).
also, are you using a reasonably recent LAMMPS version? when reporting
problems with running LAMMPS, you should *always* report the LAMMPS
version you are using (it is printed at the beginning of the output),
and - if at all possible - make a test with the very latest version of
LAMMPS (currently 12 December 2018).
your molecule file looks like it is supposed to be used with atom
style full and real units. if i use it with the following (made up)
minimal input file, there is no problem reading and parsing the
molecule file as well as creating a molecule and writing it out in a
data file using the current LAMMPS release. here is my input:
units real
region box block 0 10 0 10 0 10
atom_style full
create_box 7 box bond/types 4 extra/bond/per/atom 3 angle/types 5
extra/angle/per/atom 6 dihedral/types 3 extra/dihedral/per/atom 3
extra/special/per/atom 6
molecule dmmp dmmp.mol
create_atoms 0 single 5 5 5 mol dmmp 624526 units box
mass 1 15.0345
mass 2 30.9770
mass 3 15.9994
mass 4 15.9994
mass 5 15.9994
mass 6 15.0345
mass 7 15.0345
write_data dmmp_single.data
and the corresponding output:
[build]$ ./lmp -in in.mol
LAMMPS (12 Dec 2018)
using 1 OpenMP thread(s) per MPI task
Created orthogonal box = (0 0 0) to (10 10 10)
1 by 1 by 1 MPI processor grid
Read molecule dmmp:
7 atoms with max type 7
6 bonds with max type 4
8 angles with max type 5
6 dihedrals with max type 3
0 impropers with max type 0
WARNING: Molecule attributes do not match system attributes
(src/molecule.cpp:1386)
Created 7 atoms
Time spent = 0.00132084 secs
System init for write_data ...
Total wall time: 0:00:00
The warning message is due to the "Masses" section, that is not
consistent with atom style full (masses for this atom style are tied
to the atom type and thus need not be specified in a corresponding
molecule file. that section should be ignored and the masses must be
set via the "mass" command).
from the comments, it also looks to me, that your molecule has only 5
atom types and thus the file should be correspondingly updated (and
the LAMMPS input script to match those changes).
axel.