|
[Sponsors] |
Time step independence study for transient CFD simulation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 25, 2021, 07:24 |
|
#41 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
The temporal accuracy study can be performed also for a single time step!
|
|
October 25, 2021, 07:39 |
|
#42 | |
Senior Member
|
Quote:
Still, even when 1 time step is possible (say, first order or runge-kutta), then at the next smaller time step you still need 2, then 4, etc. If you always evaluate after 1 time step I think you are actually evaluating the truncation error, not the discretization error |
||
October 25, 2021, 08:06 |
|
#43 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
Quote:
|
||
October 25, 2021, 08:11 |
|
#44 |
Senior Member
|
||
October 25, 2021, 08:17 |
|
#45 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
No matter about the derivatives, to be consistent the analysis you need that they are always O(1) in time and space.
|
|
October 25, 2021, 09:09 |
|
#46 | |
Senior Member
|
Quote:
"To discuss convergence we must first pick some finite time T over which we wish to compute. We expect errors generally to grow with time, and so it would be unreasonable to expect that any finite grid would be capable of yielding good solutions at arbitrarily large times. Note that as we refine the grid, the number of time steps to reach time T will grow like T/dt and go to infinity (in the limit that must be considered in convergence theory), and so even in this case we must deal with an unbounded number of time steps." EDIT: what I want to say is, don't we need to filter out (i.e., integrate) the dt in front of LTE when evaluating the DE? Otherwise, it seems to me that we get an artificially higher order. |
||
October 25, 2021, 09:36 |
|
#47 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
Quote:
Yes, ideed you see a scaling due to the time step you have to consider. This issue is discussed here in the section of numerical test https://www.researchgate.net/publica...ary_conditions |
||
October 25, 2021, 14:02 |
|
#48 |
Senior Member
Join Date: Jun 2011
Posts: 208
Rep Power: 16 |
Thank you sbaffini. Here is what I have observed doing (very rarely) transient analyses. Please note I do electronics cooling and my expertise is in Electronics, not so much in CFD. So I have very tiny components dissipating a lot of heat (so can't be ignored) as well as components that are 1000 times larger in volume. The masher is governed by the tiny components and gets quite fine. The resulting (from the Courant number) time step is around 80ns. All these are real figures from my practice. The thermal time constant of the model is determined by the largest components and is say 1 hour which results in >5e10 steps till steady state. Each step runs between 5-10 min (there are couple of hundred components, heatsinks, fans, porous medias, thermal interfaces, etc.). As you could see the total time becomes ridiculously long and therefore I usually did whatever you suggested above - went with 2-5 sec time steps. It still took me a couple of days till completion but the convergence and the final temperatures seemed reasonable. Yet these (transient analysis) temperatures were quite close to the temperatures resulting from the steady state analysis of the same model. Thus I developed a notion over the years that the courant number rule could be violated with a factor of thousands and still get reasonable results. Never understood why however.
|
|
October 25, 2021, 14:15 |
|
#49 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
Quote:
Well, that is difficult to explain if you don't have a basic knowledge of CFD. The cfl is a parameter governing the numerical stability for explicit schemes but in case of implicit scheme you can have a stable simulation also at high cfl value. On the other hand, in a pure transient study you need to think about the physics of your problem and the dt is dictated by that. Large dt does not change the formal order of accuracy but increases the magnitude of the error. Anyway, in case of a steady state you can have a good solution at high cfl but you do not describe correctly the transient. |
||
October 25, 2021, 15:16 |
|
#50 |
Member
Join Date: Nov 2019
Posts: 96
Rep Power: 6 |
Can it be that the flow field doesn't change much during the simulation and only the temperatures are truly transient? I believe the CFL is relevant for transient flows where there's some development of the flow field. If you have a fan blowing over some electronics, it may be that the flow is actually close to steady. The limiting case is trasient thermal simulation of solids without any fluid - then there's no Courant number at all and you just choose the time step to converge the energy equation in each step. But that's not to say this has to be your case, it's just something I came across myself.
|
|
October 26, 2021, 13:02 |
|
#51 | |
Senior Member
Join Date: Jun 2011
Posts: 208
Rep Power: 16 |
Quote:
That won't be the case, I think, in convection cooling cases where the flow is a result of temperature gradients, but this is a different story |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
directMapped problem | panda60 | OpenFOAM Bugs | 4 | July 8, 2010 11:23 |
Time step in transient simulation | shib | FLUENT | 0 | June 17, 2010 14:07 |
calculation diverge after continue to run | zhajingjing | OpenFOAM | 0 | April 28, 2010 05:35 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 03:58 |