|
[Sponsors] |
How to delete the same time folder in different processors folder |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Senior Member
chandra shekhar pant
Join Date: Oct 2010
Posts: 217
Rep Power: 15 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Dec 2019
Posts: 205
Rep Power: 6 ![]() |
rm -r processor*/0.05
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
chandra shekhar pant
Join Date: Oct 2010
Posts: 217
Rep Power: 15 ![]() |
Great! Thanks a lot shock77 for your prompt reply and help.
|
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Andreas P.
Join Date: May 2017
Posts: 41
Rep Power: 7 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
chandra shekhar pant
Join Date: Oct 2010
Posts: 217
Rep Power: 15 ![]() |
Hello AndreasPe, that's indeed very useful. I am using OpenFOAM v1906, tried for this version, and it worked, great, thanks a lot
![]() |
|
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,525
Rep Power: 36 ![]() ![]() |
This indeed the preferred way to clean out processor time directories. It's been there since OpenFOAM 1.5 or 1.6 (ie, not so terribly recent).
|
|
![]() |
![]() |
![]() |
![]() |
#7 |
Senior Member
chandra shekhar pant
Join Date: Oct 2010
Posts: 217
Rep Power: 15 ![]() |
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.
|
|
![]() |
![]() |
![]() |
![]() |
#8 |
Member
Andreas P.
Join Date: May 2017
Posts: 41
Rep Power: 7 ![]() |
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.
|
|
![]() |
![]() |
![]() |
![]() |
#9 |
Senior Member
chandra shekhar pant
Join Date: Oct 2010
Posts: 217
Rep Power: 15 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#10 | |
Member
Andreas P.
Join Date: May 2017
Posts: 41
Rep Power: 7 ![]() |
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... |
||
![]() |
![]() |
![]() |
![]() |
#11 |
Senior Member
chandra shekhar pant
Join Date: Oct 2010
Posts: 217
Rep Power: 15 ![]() |
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.
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
laplacianFoam with source term | Herwig | OpenFOAM Running, Solving & CFD | 17 | November 19, 2019 13:47 |
pressure in incompressible solvers e.g. simpleFoam | chrizzl | OpenFOAM Running, Solving & CFD | 13 | March 28, 2017 05:49 |
Star cd es-ice solver error | ernarasimman | STAR-CD | 2 | September 12, 2014 00:01 |
AMI interDyMFoam for mixer nu problem | danny123 | OpenFOAM Programming & Development | 8 | September 6, 2013 02:34 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 04:03 |