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/)
-   -   use pyFoamClearCase.py "before a time" (http://www.cfd-online.com/Forums/openfoam-post-processing/122057-use-pyfoamclearcase-py-before-time.html)

immortality August 11, 2013 11:08

use pyFoamClearCase.py "before a time"
 
Hi
I have a case with several cycles.its now in its 5th cycle and I want to clear the data of second and third cycles and wished to do that with useful pyFoam tools but it seems it isn't provided an option for deleting folders before a time folder specified.is there any way to do this?(there are too many folders to remove manually and better is automatically if possible)
thanks.
options available are:
Code:

--after=AFTER          Only remove timesteps after this time
--processors-remove    Remove the processor directories
--vtk-keep              Keep the VTK directory
--no-pyfoam            Keep the PyFoam-specific directories and logfiles
--keep-last            Keep the data from the last time-step
--keep-regular          Keep all the timesteps
--clear-history        Clear the PyFoamHistory-file
--function-object-data  Clear the PyFoamHistory-file


gschaider August 11, 2013 19:19

Quote:

Originally Posted by immortality (Post 444979)
Hi
I have a case with several cycles.its now in its 5th cycle and I want to clear the data of second and third cycles and wished to do that with useful pyFoam tools but it seems it isn't provided an option for deleting folders before a time folder specified.is there any way to do this?(there are too many folders to remove manually and better is automatically if possible)
thanks.
options available are:
Code:

--after=AFTER          Only remove timesteps after this time
--processors-remove    Remove the processor directories
--vtk-keep              Keep the VTK directory
--no-pyfoam            Keep the PyFoam-specific directories and logfiles
--keep-last            Keep the data from the last time-step
--keep-regular          Keep all the timesteps
--clear-history        Clear the PyFoamHistory-file
--function-object-data  Clear the PyFoamHistory-file


No. currently the utility does not support this (partly because in those cases where I needed it settin purgeWrite in the controlDict worked better for my purposes)

immortality August 12, 2013 01:32

thanks Bernhard.in my controlDict in 2.2.0 version I have: cycleWrite 0; cycleWrite is the same as purgeWrite?

gschaider August 12, 2013 10:01

Quote:

Originally Posted by immortality (Post 445057)
thanks Bernhard.in my controlDict in 2.2.0 version I have: cycleWrite 0; cycleWrite is the same purgeWrite?

Don't know. Google it

immortality August 12, 2013 10:16

thanks.it seems that they have used cycleWrite instead of purgeWrite for more clarification I think.it has used in some of tutorial cases but also purgeWrite has used in others.


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