Dynamic endTime/stopAt
I am writing a script that runs a series of OF simulations, based on PyFoam. Since they deal with a transient asymptotic issue I basically need them to run until a certain point is reached (something like a>0.99). After that nothing interesting (to me ;) ) happens anymore and it just blocks computing time. The time it takes to get to that point strongly depends on the conditions that vary between simulations in a series, so it is hard to predict what endTime to use.
Now I was wondering if there was a way to break the runner if some value gets to some point? Right now I am using BasicRunner, maybe UtilityRunner can do that, but I don t know how to use that... Does anyone have any experience with that? Would be awesome! |
hello,
I may have a solution, but not tested: use the "functionOjects" capabilities Basically, use "coded" and abortCalculation function. - the job control type "abort" can stop and write (set "action writeNow;") the calculation if "abortCalculation "file is present in the case dir. - in order to write this file, you will need a "coded" function object, in which you can put your stop test and write the abortCalculation file. Hope this help, regards, olivier |
All times are GMT -4. The time now is 19:33. |