|
[Sponsors] |
January 26, 2011, 09:50 |
Control of output folder names
|
#1 |
New Member
Misha Marie Gregersen
Join Date: Nov 2009
Posts: 7
Rep Power: 17 |
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 |
|
January 27, 2011, 04:45 |
|
#2 |
New Member
Felix W.
Join Date: Jan 2011
Posts: 4
Rep Power: 15 |
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 |
|
January 27, 2011, 05:33 |
|
#3 |
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23 |
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 |
|
January 31, 2011, 08:53 |
|
#4 |
New Member
Misha Marie Gregersen
Join Date: Nov 2009
Posts: 7
Rep Power: 17 |
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 |
|
|
|
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 07: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 20:37 |