|
[Sponsors] |
October 29, 2018, 04:43 |
writeInterval wrong
|
#1 |
Senior Member
Daniel Witte
Join Date: Nov 2011
Posts: 148
Rep Power: 14 |
Hello,
I have a problem with my OF 2.3.x application in interFoam. I have altered that solver such that in case of a wrong calculation (e.g. divergence), the calculation is cancelled and I return back in back in time to restart using some other settings (e.g. smaller time step). This works ok so far. First, I store my time position: Code:
time_start = runTime.timeOutputValue(); time_start_i = runTime.timeIndex(); Code:
// return back to previous time step runTime.setTime ( time_start, time_start_i ); // decrease time step a little runTime.setDeltaT (8e-1*runTime.deltaTValue(),false); deltaTadj = runTime.deltaTValue(); Regards, Daniel |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
simpleFoam - wrong results? | Zibi | OpenFOAM Running, Solving & CFD | 26 | October 9, 2020 12:21 |
writeControl writing every time step despire writeInterval specifying otherwise | kaszt | OpenFOAM Running, Solving & CFD | 5 | May 28, 2020 17:47 |
IcoFoam with variable time step not writing every writeInterval | wildfire230 | OpenFOAM Running, Solving & CFD | 1 | July 31, 2013 17:49 |
Wrong oriented faces due to opposite face bends? | Arnoldinho | OpenFOAM | 5 | August 16, 2012 05:00 |
help: results depend on writeInterval | ckoch | OpenFOAM | 2 | September 1, 2010 18:42 |