Dear lammps users,
I am trying to import a molecule template in lammps (lammps-12dec2018) using molecule command.
Atom_style is set on “molecular”, bond, angle and dihedral style on “harmonic”.
My molecule file follow this format (described in ) :
Title line # skipped line
200 atoms
199 bonds
296 angles
196 dihedrals
0 impropers
Coords # atom_style is molecular
1 0.0 0.0 0.0
2 0.0 0.3 0.0
3 0.3 0.0 0.0
[skipped]
Types
1 1
2 2
3 1
[skipped diameters and masses section]
Bonds
1 1 1 2
2 1 3 4
3 1 5 6
[skipped]
Angles
1 1 1 3 5
2 1 3 5 7
3 1 5 7 9
[skipped]
Dihedrals
1 1 1 3 5 7
2 1 3 5 7 9
3 1 5 7 9 11
[skipped till EOF]
Lammps gives me this error message when I run my input script : Invalid bond type in Bonds section of molecule file (…/molecule.cpp:781)
When I remove Bonds section, I got an error message with Angles section and when Bonds, Angles and Dihedrals sections are removed, I got a message about the Types section, similar from the one cited above. Did I forget something before calling molecule command ? Regions and box are defined before I try to import my molecule. Same for units, boundary conditions and dimensions.
Thank you