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

Stop simulation when time step reaches specified threshold

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Yann
  • 1 Post By finn_amann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 13, 2023, 09:51
Default Stop simulation when time step reaches specified threshold
  #1
New Member
 
Join Date: Dec 2021
Posts: 27
Rep Power: 4
finn_amann is on a distinguished road
Hello friends!

Does anyone know if it is possible to automatically stop a running simulation if the time step reaches a specified lower bound? E.g. when dt gets as low as 1e-7 s, I'd like for the simulation to stop. This way, I could save valuable computation time on my cluster, since in my case, something must have gone very wrong, if the time step is that small.

Best regards

Finn
finn_amann is offline   Reply With Quote

Old   December 13, 2023, 12:00
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,058
Rep Power: 26
Yann will become famous soon enough
Hello Finn,

If you are using the OpenCFD branch (openfoam.com) you should be able to do it using the runTimeControl function object: https://doc.openfoam.com/2306/tools/...unTimeControl/

The minTimeStep condition looks like it does what you are looking for.

Regards,
Yann
finn_amann likes this.
Yann is online now   Reply With Quote

Old   December 13, 2023, 12:24
Default
  #3
New Member
 
Join Date: Dec 2021
Posts: 27
Rep Power: 4
finn_amann is on a distinguished road
Exactly what I needed, thanks so much Yann

Best regards
Yann likes this.
finn_amann 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
Convergence problem of OF WUYing OpenFOAM Running, Solving & CFD 2 September 20, 2021 10:09
LES, Courant Number, Crash, Sudden Alhasan OpenFOAM Running, Solving & CFD 5 November 22, 2019 02:05
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 00:01
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 07:56
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


All times are GMT -4. The time now is 09:49.