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

OpenFOAM - Quick way to delete previous calculation & HowTo get access to variables

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 19, 2010, 11:18
Default OpenFOAM - Quick way to delete previous calculation & HowTo get access to variables
  #1
New Member
 
Christoph
Join Date: Apr 2010
Posts: 19
Rep Power: 7
kriz is on a distinguished road
Hi!

Is there a quick way to delete all previous timesteps in a calculation (e.g. a script, deleting all directories regarding the time-steps w/o the "0" directory)?

plus: how can I tell the solver which variables to write to the result file - using buoyantBoussinesqPisoFoam I would like to have access to e.g. k and eps for post-processing.

Regards,
Kriz
kriz is offline   Reply With Quote

Old   April 19, 2010, 12:18
Default
  #2
Senior Member
 
Eelco van Vliet
Join Date: Mar 2009
Location: The Netherlands
Posts: 122
Rep Power: 9
eelcovv is on a distinguished road
Hi Kriz,

Just install pyFoam, a great set of python utilities by Bernhard Gschaider for doing all kind of openfoam tasks. Have a look at
http://openfoamwiki.net/index.php/Contrib_PyFoam

For clearing your case directory, it would become one single command:

pyFoamClearCase.pl .

Regards,

Eelco
eelcovv is offline   Reply With Quote

Old   April 19, 2010, 13:02
Default
  #3
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 kriz View Post
Hi!

Is there a quick way to delete all previous timesteps in a calculation (e.g. a script, deleting all directories regarding the time-steps w/o the "0" directory)?
There might be a script in OpenFOAM-1.6/bin (only had a quick glance and nothing caught my fancy)

It's not an uncommon task. I usually use http://openfoamwiki.net/index.php/Co...amClearCase.py for that (but usually every computer I touch becomes polluted with that stuff, so this is the easiest thing to do for ME, not necessarily for everyone)

Quote:
Originally Posted by kriz View Post
plus: how can I tell the solver which variables to write to the result file - using buoyantBoussinesqPisoFoam I would like to have access to e.g. k and eps for post-processing.
That was discussed last week (I think the discussion was about rho) and two functionObjects that do that were referenced

Just curious: are you sure you're using a turbulence model that HAS k/epsilon (because usually such a turbulence model writes these out)

Bernhard
gschaider 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
The calculation efficiency of OpenFOAM chiven OpenFOAM Running, Solving & CFD 4 September 14, 2009 04:44
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
A new Howto on the OpenFOAM Wiki Compiling OpenFOAM under Unix mbeaudoin OpenFOAM Installation 2 April 28, 2006 08:54
Warning 097- AB CD-adapco 6 November 15, 2004 05:41
access to variables at interface of porous media? Mazyar FLUENT 0 October 10, 2003 14:59


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