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

Control of output folder names

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 26, 2011, 09:50
Default Control of output folder names
  #1
New Member
 
Misha Marie Gregersen
Join Date: Nov 2009
Posts: 7
Rep Power: 7
Misha is on a distinguished road
Hi all,

I am solving a steady-state problem a number of times with different parameter values. The parameter value is changed in a for-loop clamped around my runTime controlled solver.

For each steady-state solution, I want to keep just the final solution, and store it in a folder. In the end I would like to have solution folders with names corresponding to the iteration counter of my outer loop (that is, not the time names which are the same for each steady-state solution).

Would any of you know how to do that?

~ Misha
Misha is offline   Reply With Quote

Old   January 27, 2011, 04:45
Default
  #2
New Member
 
Felix W.
Join Date: Jan 2011
Posts: 4
Rep Power: 6
Rusty Velo is on a distinguished road
Hi Misha,

as I'm a new user of OpenFoam I'm for sure not an expert, but I've read that it is possible to keep only one result (your final or last result of a calculated case), with the option 'purgeWrite 1' in the controlDict..
It stores the results in one directory (which unfortunately will be named like the time) and overwrites the (former) directory until you interrupt the calculation or the calculation is finished.. Have a look at the user guide to read more about it.

At the moment I got no idea for your naming problem.. sorry. But maybe it is solvable with a shell-script.. ?!

good luck and best regards,
felix
Rusty Velo is offline   Reply With Quote

Old   January 27, 2011, 05:33
Default
  #3
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 14
l_r_mcglashan will become famous soon enough
When you create your objects, you can specify their location. Take a look at the constructors for IOobject, I think you want to change the instance:

http://foam.sourceforge.net/docs/cpp..._1IOobject.php
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   January 31, 2011, 08:53
Default
  #4
New Member
 
Misha Marie Gregersen
Join Date: Nov 2009
Posts: 7
Rep Power: 7
Misha is on a distinguished road
Thank you both for your answers.

I have now spent some time studying the time class trying to figure out where the output folders are generated and where the names are created. However, I could not quite figure it out.

Anyways, a simple way to get around the problem is to use the setTime function - so that is how I solved my problem, eventhough it lacks elegance...

Best regards,
Misha
Misha 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
Can I modify runTimeWrite() to output results into one folder? ovie OpenFOAM 12 January 22, 2011 20:52
Fundamental output format control of field values and time dbxmcf OpenFOAM 1 January 12, 2011 11:50
FoamToVTK output names hartinger OpenFOAM Post-Processing 2 March 29, 2007 06:49
ICEM - control over the names for vertices... Hervé CFX 1 February 5, 2007 09:57
can "output control " output Nu in expression? prayskyer CFX 3 July 7, 2006 19:37


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