[lammps-users] Syntax error in data file with peridynamics style

Hi, i’m trying to write a data file for Lammps for a simulation in peridynamics, starting from a voxelization tool that gives me just atoms’ coordinates.

I studied the script’s syntax on the read_data guide for peridynamics, and i added all the information needed to match the syntax for the data file, but i keep getting the following error.
I couldn’t find any example for peri on web to just compare the files, even after several researches.

Sintax for atoms in peri is:

atom-ID atom-type volume density x y z

My data file reads like this:

4136 atoms

1 atom types

0.0 50.0 xlo xhi
0.0 50.0 ylo yhi
0.0 50.0 zlo zhi

Atoms # peri

1 1 2.16e-10 8000 22 3 0
2 1 2.16e-10 8000 23 3 0
3 1 2.16e-10 8000 25 3 0
4 1 2.16e-10 8000 19 4 0

And the error i get is :

Reading data file …
orthogonal box = (0.0000000 0.0000000 0.0000000) to (50.000000 50.000000 50.000000)
1 by 1 by 1 MPI processor grid
reading atoms …
0 atoms
ERROR: Unknown identifier in data file: 1 1 2.16e-10 8000 22 3 0 (src/read_data.cpp:715)

please note the output:

reading atoms …
0 atoms

this means that your

4136 atoms

line was not read. this will happen for example, if you forget to put an extra line as the first line. please see the documentation if the read_data command which clearly states that the first line has to be a comment and is always ignored.

axel.