how to put time folders in a unique folder
when run is doing a lot of time folders originate in the root folder of case.
in such situation may it take a lot of time to find essential folders 0,constant and system or maybe delete them mistakenly with other folders.
how can have time folders in a separate folder?
is there a script for this purpose?
What do you mean with find the essential folders? From the shell it is just "cd folder" right?
Did you consider improving your work flow with utilities pyFoamClearCase.py and pyFoamCloneCase.py?
You can improve one of these utlities to do what you want. It seems not too difficult, add some function to the SolutionDirectory class, and create a new instance of this class in some fancy utility :)
Or, of course you could try to move it with bash and fancy regular expressions. :)
none of them! I meant main folders that are :0,constant and system.
I mean that if all other time folders could be written in a separate folder we had a more well-ordered case folder,then we had this folders:0,constant,system,time_folder
that time_folder is a folder that includes all time folders after 0 time.
do you mean I can do this by Swak utilities?
If you are really, really, really sure that you want to do this, then try the following, which ought to work:
thanks for the script but I like a way that it can be done automatically with the solver itself. :)
If that should be done nicely, then it means that you need to change the core of OpenFoam. Also, you would need to modify paraFoam/ParaView to be able to visualise data.
Depending on how you approach the above, you might need to put "if's" into all utilities/solvers, as the 0-folder and all other time folders have a different relative path to the root-case directory.
Shortly: Why don't you merely learn to work with the existing file structure?
then there is a lot of work to do that.I just said that it would be better if the root folder was less crowded! whats your opinion?
I think maybe they do it in later releases.
Maybe you could use a function object with your controlDict. I use this with some success to reduce the number of files created at runtime to only the latest.
functionObjectLibs ( "libsystemCall.so" );
writeCalls 2("ls -1td $PWD/_impellerSurfacePressure/* | tail -n +3 | xargs echo rm -rf" "ls -1td $PWD/_impellerSurfacePressure/* | tail -n +3 | xargs rm -rf");
// outputInterval 10;
seems be nice,could you explain its lines a bit to me?thanks.
Typing --help after the different linux commands usually gets you a long way in linux.
It may be faster for you to try the lines below than me trying to explain.
ls -1td <OF case folder>
ls -1td <OF case folder> | tail -n +3 (try varying the number 3)
ls -1td <OF case folder> | tail -n +3 | xargs echo rm -rf (echo just ensures that you don't delete anything by mistake)
The above is called twice in my function object just to get some output with 'echo'. Not the most beautiful approach but it worked for me.
Regarding function object see http://openfoamwiki.net/index.php/Ti...ect_systemCall
|All times are GMT -4. The time now is 20:56.|