|
[Sponsors] |
November 28, 2016, 11:01 |
Time step calculation modification
|
#1 |
Senior Member
Manu Chakkingal
Join Date: Feb 2016
Location: Delft, Netherlands
Posts: 129
Rep Power: 10 |
Hello
I have a situation such that there are 2 time scales (a,b) available other than the one based on CFL condition . I want to do time-stepping based on delta_t=min(a,b, t_based_on_Co). ------------------------------------------------------------------------ (If a, b are constants I could do it by editing setDeltaT.H as runTime.setDeltaT ( min ( deltaTFact*runTime.deltaTValue(), maxDeltaT, a, b ) ); --------------------------------------------------------------------------- But what if I have dynamically calculated a and b. Could someone suggest me how I could do this
__________________
Regards Manu |
|
November 28, 2016, 17:01 |
|
#2 |
New Member
Fábio
Join Date: Nov 2016
Posts: 19
Rep Power: 9 |
I make the option directly in the solver, and compile with wmake again.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
High Courant Number @ icoFoam | Artex85 | OpenFOAM Running, Solving & CFD | 11 | February 16, 2017 13:40 |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 02:50 |
time step directories naming issue | Andrea_85 | OpenFOAM | 3 | April 3, 2014 08:38 |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 15:33 |
calculation diverge after continue to run | zhajingjing | OpenFOAM | 0 | April 28, 2010 04:35 |