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

use pyFoamClearCase.py "before a time"

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools 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,205
Rep Power: 17
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: 3,915
Rep Power: 40
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,205
Rep Power: 17
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: 3,915
Rep Power: 40
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,205
Rep Power: 17
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Integrate Variables" and "Plot Selection Over Time" fail haakon ParaView 2 April 20, 2015 18:22
plotting "p_rgh vs time" under a floating object kilroy OpenFOAM Post-Processing 0 June 28, 2013 16:17
paraview : how to save a "selection over time" graph ? Cyp OpenFOAM Paraview & paraFoam 1 June 11, 2012 04:30
Accessing "solution time" lrunber FLUENT 3 March 27, 2012 06:31
"particles traveling time" vs. "particle time" John CFX 3 December 17, 2009 15:54


All times are GMT -4. The time now is 20:56.