Hi Axel,
Thanks for your reply. The reason I was trying to use dump text files is that they can be made to be written at start, intermediate stages and end, without needing to convert from binary files. Not that conversion from binaries is a big effort, what you suggest works perfectly fine of course (very tiny thing is that the restart command doesn't have an accompanying option like dump_modify to sort the output according to atom id, right?). But having only one text file format involved from beginning to end does seem very practical. The lammps manual says that write_data functionality will be extended (at the moment there really is no way to make it produce files periodically, right?). Once that is done, that should give me what for my work seems the ideal practical scenario.
Until then, at the risk of seeming stubborn, it seems dump files should offer me the option I'm looking for. From what Steve wrote, I understand now that reading charge was never going to work. But id and type should. And it seems that's all that is missing for me right now. If I start from a dump file reading in just x, y and z with the input line
read_dump dump-start 0 x y z add yes
the atom ids get messed up. In my initial dump file (not reading any structure file through read_data), the last few lines of my system are
6238 2 39.7078 52.3421 27.8434 8.27188e-08 -5.25299e-07 -0.000139169 0.0132712
6239 2 45.1225 50.5372 27.8434 1.75151e-08 1.98775e-06 -0.000139557 0.0153997
6240 2 43.3176 52.3421 27.8434 1.38936e-06 -4.92382e-07 -0.000138153 0.0137494
6241 3 7 9 28.5 -58.4792 -6.96921 174.279 0
6242 3 22.5 9 28.5 32.7348 -0.851364 24.3077 0
6243 3 39 9 28.5 -46.608 -1.48362 39.1276 0
6244 3 7 27 28.5 -57.5051 -18.9934 170.027 0
6245 3 22.5 27 28.5 32.3661 -2.5265 23.9976 0
6246 3 39 27 28.5 -46.0426 -4.38918 38.5888 0
6247 3 7 45 28.5 -55.3075 -30.132 162.928 0
6248 3 22.5 45 28.5 31.6533 -4.10018 23.3929 0
6249 3 39 45 28.5 -44.9383 -7.11559 37.5379 0
The system is 6240 Cu atoms (type 2) that form a substrate, 9 C atoms (type 3) on top. After reading in that dump file and relaxing the system for 100 steps, the ids are messed up. Already in the dump.0 file of the minimisation run, the last lines now read
6238 2 18.049 52.3421 27.8434 1.3061e-05 -2.71416e-05 3.70348e-05 0
6239 2 21.6588 52.3421 27.8434 9.21725e-06 -8.52306e-05 4.23204e-05 0
6240 2 25.2686 52.3421 27.8434 -1.82207e-05 -5.39465e-05 3.94414e-05 0
6241 2 28.8784 52.3421 27.8434 -4.84774e-06 -1.11829e-05 3.55877e-05 0
6242 2 32.4882 52.3421 27.8434 3.93298e-06 -1.05465e-05 3.56603e-05 0
6243 2 36.098 52.3421 27.8434 1.76612e-05 -6.45678e-05 5.30987e-05 0
6244 2 39.7078 52.3421 27.8434 -1.76819e-06 -8.94564e-05 5.29035e-05 0
6245 2 43.3176 52.3421 27.8434 -1.36654e-05 -2.14203e-05 4.38947e-05 0
6246 3 22.5 9 28.5 32.8193 -0.853612 24.3748 0
6247 3 7 27 28.5 -57.6578 -19.0446 170.477 0
6248 3 39 27 28.5 -46.1588 -4.40136 38.7045 0
6249 3 22.5 45 28.5 31.7346 -4.11137 23.4582 0
while those other C atoms now have ids from 3121 to 3125. So ids do seem to get hussled about. This is where my original question came from: how to tell the read_dump command to read (and thus hopefully preserve) the ids and types with the help of the label keyword? Annoyingly, even with the manual at hand, I do seem to keep doing something wrong and lammps keeps spitting out my job with an illegal read_dump error.
If you can suggest to me how to make lammps read and preseve ids and types from the dump file (either through the proper use of the label keyword or whatever else), then I should be all ok.
Kind regards,
Peter