CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Modify the reconstructPar to delete the reconstructed parallel directories within the loop (http://www.cfd-online.com/Forums/openfoam-post-processing/61465-modify-reconstructpar-delete-reconstructed-parallel-directories-within-loop.html)

maka December 13, 2005 06:22

I'm solving a case with big nu
 
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 December 14, 2005 08:21

I checked util/parallel/recost
 
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

eugene December 16, 2005 11:37

Try for(label np = 0; np <
 
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.


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