How to delete the same time folder in different processors folder
Hello All,
I am running a OpenFOAM case in 50 processors, now I wanted to delete a time folder (say 0.5) from all the folders to save the memory. Earlier for less number of processors I used a very common/basic command to delete that specific file 0.5 by running the following command for each processor Code:
rm -r 0.5 |
rm -r processor*/0.05
|
Great! Thanks a lot shock77 for your prompt reply and help.
|
In newer versions of OpenFOAM (i used it with version 6) you can also use the foamListTimes utility and thus can delete a time range:
Code:
foamListTimes -rm -processor -time "xxxx:xxxx" Code:
foamListTimes -rm -processor -time "0.1:0.5" See also https://www.openfoam.com/documentati...ListTimes.html |
Hello AndreasPe, that's indeed very useful. I am using OpenFOAM v1906, tried for this version, and it worked, great, thanks a lot :)
|
Quote:
|
Thanks a lot all for your kind help. In the continuation of this post, I have re--simulated a case from time =0.208 to time =0.21. Now I have a previous case (from time =0 to time = 0.21) in some server and I had simulated this case (from time = 0.208 to time = 0.21) in another server. For both the cases I have folders ranging from processors0 to processors179 (since I ran the case using 180 processors). I wanted to copy the newly created time folder of time =0.209 and time =0.21 to the previous case (from time =0 to time =0.208). Is there any smart way of coping the different time folders to the specific folders ranging from processors0 to 180? Sorry for confusing you with so many terminologies. Thanks in advance.
|
Just use reconstructPar on the one server with the re-simulated result, then copy the reconstructed time folder to the other server, delete the "wrong" time folders there as described above and then run "decomposePar -fields" to decompose the reconstructed time folder again on this server.
|
Hi AndreasPe,
Thanks a lot for your help, I think I understood your post 99% , what I don't understand is "delete the "wrong" time folders there as described above". What you want me to delete ? Many thanks again for your help, its indeed very helpful. |
Maybe you confused me and you can just ignore this part...
It is not clear, if the previous case has time folders 0.208 to 0.21 in the processor folders or not. You state two different things here: Quote:
If the "previous case" has time folders from 0.209 to 0.21, then you need to delete them before you can copy them from the new case. If not, you can just copy them... |
Thanks a lot, yes I am pretty sure that my post was not so clear, apologies for that. Many thanks again for your time and consistent help.
|
All times are GMT -4. The time now is 01:35. |