properties of particles within a data file using the read_data command

Submitted by carlos villavel... on Wed, 01/03/2018 - 14:02

Hello

I'm using the following lines to read the coordinates and some properties of different particles.

Atoms # Atom-ID, Atom-type, Diameter, density, x, y, z

1 1 0.025 2500 0. 0. 0.20
2 2 0.005 2500 0. 0. 0.215
3 2 0.01 2500 0.0125 0. 0.225
4 2 0.01 2500 -0.0125 0. 0.225

Although it works well, I don't know how the program knows the order of the properties. ??? Is there a section on the documentation to see the order of the properties?

Thanks

carlos villavel... | Fri, 01/05/2018 - 12:39

Hello

Oh, sorry, I didn't make my self understood. Based on this example, in a data file:

Atoms # Atom-ID, Atom-type, Diameter, density, x, y, z

1 1 0.025 2500 0. 0. 0.20
2 2 0.005 2500 0. 0. 0.215
3 2 0.01 2500 0.0125 0. 0.225
4 2 0.01 2500 -0.0125 0. 0.225

How does liggghts know that the diameter is going to be read before the density? Why not the other way round? Is there a precedence list for this in the documentation?

Thanks