|
[Sponsors] |
Repeat last timestep with a smaller deltaT for guaranteed accuracy |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 30, 2014, 11:36 |
Repeat last timestep with a smaller deltaT for guaranteed accuracy
|
#1 |
New Member
Join Date: Feb 2014
Posts: 24
Rep Power: 12 |
Hello,
what is the recommended way to repeat a time step in time dependent solvers, when a given accuracy criterion is not met at the end of the actual time step? The existing solvers, which can work with "adjustableTimeStep yes;" in controlDict, set the FUTURE time step based on the courant number or other criteria and don't care if the courant number is too large AFTER the time step has been solved. But what if my solver decides that the actual step has been calculated with a too large deltaT, and I have to dismiss the latest solution, and start over with a smaller deltaT? My idea is to implement something like this: Code:
while(runTime.run()){ runTime++; solve(); while (!isAccurate()){ undoSolve(); runTime.setDeltaT(0.5*runTime.deltaTValue(); solve(); } } Regards |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unexpected deltaT decrease in pimpleFoam simulation | robyTKD | OpenFOAM Running, Solving & CFD | 9 | June 27, 2014 06:52 |
Modifying sonicFoam to run with variable timestep - strange results | dalaron | OpenFOAM Programming & Development | 1 | September 2, 2013 07:21 |
Smaller time step results in less accuracy!! | farshadn12 | Main CFD Forum | 10 | May 3, 2013 15:09 |
smaller timestep leads not to converge | vovogoal | CFX | 5 | October 17, 2011 09:10 |
IcoFsiFoam simulation crashes when using a smaller timestep | mathieu | OpenFOAM Running, Solving & CFD | 1 | May 17, 2009 03:54 |