CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Stopping OpenFOAM on low timestep? (https://www.cfd-online.com/Forums/openfoam-solving/139873-stopping-openfoam-low-timestep.html)

galengisler August 2, 2014 10:59

Stopping OpenFOAM on low timestep?
 
Is there a flag that can cause OpenFOAM to stop cleanly if the timestep goes below a certain value?

I am running interDyMFoam (from OF 2.3.0) in 2d. I have an oddly shaped object defined with snappyHexMesh moving through a two-phase domain. The cells in front of the object get very small, and the adjustable timestep therefore plunges. Eventually the calculation grinds to a halt, but it can run for several hours without making progress. I would like to be able to detect this situation and halt the run so I don't wast cycles.

I tried putting a minDeltaT into my controlDict, but this had no effect.

Any advice would be appreciated.

Alternatively, and this I would prefer, is to find a way to combine very small cells into larger cells, but I haven't found the right trick to use both dynamicMotionSolverFvMesh and dynamicRefineFvMesh in the same calculation. If anyone else has done this successfully, please advise!

Thanks -
Galen Gisler


All times are GMT -4. The time now is 12:41.