Hello,
i want to import my particle positions from one Simulation to another. For Testing purposes i'm using the Simulation the particle positions are based on. After the filling process i want to replace the particles with those of the dumb.
I tried doing it with the read_dumb command as follows:
read_dumb dumb.particles_7455000 x y z radius box no purge yes format vtk
When i run it, it says:
ERROR: Unknown command: read_dumb dumb.particles_7455000 x y z radius box no purge yes format vtk (../input.cpp:259)
I tried it in different variants like:
read_dumb dumb.particles 7455000 x y z radius box no purge yes format vtk
read_dumb dumb_particles 7455000 x y z radius box no purge yes format vtk
read_dumb dumb_particles_7455000 x y z radius box no purge yes format vtk
read_dumb particles 7455000 x y z radius box no purge yes format vtk
Always the exact same error. I don't know what i'm doing wrong here and how to fix it and kindly ask for help.
SHUBHAM AGARWAL | Fri, 07/16/2021 - 22:58
dump instead of dumb
Hello
It should be "read_dump" instead of "read_dumb".
Let me know if the problem still persists
Grunkera | Sat, 07/17/2021 - 13:11
Yeah, i didnt see that....
Ohhhh Syntax my great enemy !
So the command seems to work now and i use replace instead of purge but i have this error now:
ERROR: Invalid dump reader style (../read_dump.cpp:354)
i tried with custom/vtk, same error, i already checked in the help if custom/vtk is a valid dump style, it is.
Did i miss something?
SHUBHAM AGARWAL | Sat, 07/17/2021 - 20:04
try native
Hello
The format of the dump file is selected through the format keyword. If specified, it must be the last keyword used, since all remaining arguments are passed on to the dump reader. The native format is for native LIGGGHTS(R)-PUBLIC dump files, written with a “dump atom”.html or dump custom command. The xyz format is for generic XYZ formatted dump files.
read_dump dump.particles 7455000 x y z radius box no purge yes format native
Cheers:)
Grunkera | Sat, 07/17/2021 - 21:26
Native seems to have solved this but...
Hello,
thanks for the help!
Native seems to have solved this issue with the purge command i get
ERROR: If read_dump purges it cannot replace or trim
So i tried replacing them. The Error i get now is:
ERROR on proc 0: Cannot open file dump.particles (../reader.cpp:92)
What i am doing before is my usual filling with a much lower amount of particles and then i want to replace these particles with all the particles from my previous simulation to do something else with them after the first simulation.
I try to use the dump file from my last simulation with the name "particles_7455000.vtk" which i created using this command:
dump dmpparticle all custom/vtk ${dumbstep} post/particles_*.vtk id type x y z vx vy vz fx fy fz radius mass
I copied this dump file in the same folder where my new script lies
I tried the following:
dump.particles 7455000
particles_7455000 7455000
dump.particles_7455000 7455000
particles_7455000
dump.particles_7455000
Same error, always. I think for some reason he doesn't find the file.
Out of pure desperation i also tried putting it into the folder where the dumps are stored.