CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Dynamic endTime/stopAt

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 13, 2013, 04:42
Default Dynamic endTime/stopAt
  #1
New Member
 
Join Date: Nov 2013
Posts: 20
Rep Power: 12
Jakob1 is on a distinguished road
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!
Jakob1 is offline   Reply With Quote

Old   December 13, 2013, 08:53
Default
  #2
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 17
olivierG is on a distinguished road
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
olivierG is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Mesh Problem. Tom Clark FLUENT 10 June 21, 2021 04:27
Dynamic SGS model procedure in Large eddy simulation mrf6166 Main CFD Forum 39 November 25, 2016 14:13
Regarding Negative volume detected in Dynamic mesh Vinay Morabad FLUENT 10 December 16, 2015 00:31
Dynamic Mesh moving interface help akash.iitb FLUENT 0 August 23, 2010 23:53
Dynamic mesh + grid adapt = Crash! (Files included BillH FLUENT 4 July 24, 2007 15:31


All times are GMT -4. The time now is 08:44.