CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Modify the reconstructPar to delete the reconstructed parallel directories within the loop

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 13, 2005, 06:22
Default I'm solving a case with big nu
  #1
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18
maka is on a distinguished road
I'm solving a case with big number of nodes and I need to save the instantaneous data. I need to modify the reconstructPar to delete the reconstructed parallel directories (within the reconstruction loop). I need to add an option to the command -savestorage which let the reconstructPar delete the reconstructed directory after reconstructing it. This can not be done at the end since the data are near a terra bite. I would be gratefule if any body can help.

Best regards,
Maka
maka is offline   Reply With Quote

Old   December 14, 2005, 08:21
Default I checked util/parallel/recost
  #2
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18
maka is on a distinguished road
I checked util/parallel/recostructPar.C. I know where (end of time-directories loop) to put the delete statement but I can't figure out what should I write to delete the folder. Can any body help.

Regards,
Maka
maka is offline   Reply With Quote

Old   December 16, 2005, 11:37
Default Try for(label np = 0; np <
  #3
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
Try

for(label np = 0; np < nProcs; np++)
{
rmDir(mesh.path()/fileName(word("processor")+Foam::name(np)));

}

or something similar.
Foam wrappers for a lot of system commands can be found in Unix.C.
eugene is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Time directories robbo OpenFOAM 1 May 21, 2008 17:49
Face loop in a Parallel UDF Dario FLUENT 4 May 10, 2007 09:34
Script for generating lnInclude directories brooksmoses OpenFOAM 4 January 26, 2006 20:02
Modifing reconstructPar to delete the reconstructed parallel directories maka OpenFOAM Pre-Processing 1 December 13, 2005 08:16
loop(p,I->p) how this loop works? Sinan FLUENT 0 January 18, 2005 19:04


All times are GMT -4. The time now is 00:09.