Is it possible to save dump files in separate folders based on rotation?

Submitted by gibel on Tue, 08/30/2022 - 07:47

Hi, I am doing simulation in rotating drum.
My rotating drum rotates for 60 sec and per rotation is defined as 4 sec.
i.e I am going to have total 15 rotaions.

Right now I am saving whole simulation in a single folder.

For some specific tasks, I need information from each rotation.

Is it possible to save dump files based on each rotaion?
e.g. : for 15 rotations, I would like to have 15 folders with corresponding files from each rotation.

Any help would be appreciated.

This is my current script:
```
dump dmpparticle all custom ${dumpstep} post/particles_*.liggghts id type x y z vx vy vz fx fy fz radius mass

dump dmpDrum all mesh/stl ${dumpstep} post/Drum*.stl Drum #dump Drum
dump dmpFront all mesh/stl ${dumpstep} post/Front*.stl Front #dump Front face
dump dmpBack all mesh/stl ${dumpstep} post/Back*.stl Back #dump Back face

variable acc atom sqrt(fx*fx+fy*fy+fz*fz)/mass
variable mv atom sqrt(vx*vx+vy*vy+vz*vz)
variable ke atom (mass*v_mv*v_mv)/2

dump dmp all custom/vtk 5000 post/chute_*.vtk id type type x y z ix iy iz vx vy vz fx fy fz omegax omegay omegaz v_acc mass radius v_mv v_ke

dump dumpstress all mesh/gran/VTK 5000 post/mesh_*.vtk stress wear
dump dmp0 all custom 5000 all/dump*.data id type x y z vx vy vz fx fy fz omegax omegay omegaz v_acc mass radius v_mv v_ke
```

Thank you.