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

[PyFoam] use pyFoamClearCase.py "before a time"

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 11, 2013, 11:08
Default use pyFoamClearCase.py "before a time"
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   August 11, 2013, 19:19
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by immortality View Post
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 likes this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 12, 2013, 01:32
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
thanks Bernhard.in my controlDict in 2.2.0 version I have: cycleWrite 0; cycleWrite is the same as purgeWrite?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.

Last edited by immortality; August 12, 2013 at 10:12.
immortality is offline   Reply With Quote

Old   August 12, 2013, 10:01
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by immortality View Post
thanks Bernhard.in my controlDict in 2.2.0 version I have: cycleWrite 0; cycleWrite is the same purgeWrite?
Don't know. Google it
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 12, 2013, 10:16
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality 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
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 5, 2023 23:48
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 02:20
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
AMI interDyMFoam for mixer nu problem danny123 OpenFOAM Programming & Development 8 September 6, 2013 02:34
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 07:56


All times are GMT -4. The time now is 13:40.