Control of output folder names
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?
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,
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:
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...
|All times are GMT -4. The time now is 00:28.|