|
[Sponsors] |
March 8, 2018, 15:08 |
How to use large time step
|
#1 |
Member
Bill Lasher
Join Date: Jun 2009
Posts: 36
Rep Power: 17 |
Hi:
I'm running twoPhaseEulerFoam and I need to use a very small time step to keep the Courant number below 1, and it is taking a very long time to solve. I am not interested in transient behavior, only steady state. Is there a way to change the fvSolutions settings so that I can use a larger time step? For example, I tried setting nOuterCorrectors to 50 (having read about this on the OpenFOAM wiki) but that didn't work. Thanks, Bill |
|
March 8, 2018, 17:09 |
|
#2 | |
Member
Hosein
Join Date: Nov 2011
Location: Germany
Posts: 94
Rep Power: 15 |
Quote:
I think there is a trade off between using big time steps (with increasing nOuterCorrectors and at the same time maybe decreasing under relaxation factors) and using small time steps (with decreased number of outer correctors or increased values for urfs.). And this means big time steps requires more time due to increased outer correctors or due to more iterations because of lower urfs. On the other hand you have the same condition when you need to use smaller time steps. What I'm trying to say is that there is no general rule for such questions and it is of course case dependent (based on the physics involved in the problem) which means you need to make trials and errors. Hope it helps... |
||
March 9, 2018, 11:44 |
|
#3 |
Member
Bill Lasher
Join Date: Jun 2009
Posts: 36
Rep Power: 17 |
Thanks so much for responding! So as I understand it I need to play around with nCorrectors, nOuterCorrectors, relaxation factors, convergence criteria, and time step - is that correct? Anything else I should experiment with?
|
|
March 10, 2018, 09:30 |
|
#4 |
Member
Hosein
Join Date: Nov 2011
Location: Germany
Posts: 94
Rep Power: 15 |
If you are using PIMPLE algorithm, YES. But, we already have some good hints about how to use these algorithms in an efficient manner (you can even find threads here regarding that). And, one more key element is the discretization schemes which has to be selected with care based on your specific needs. If you are not very experienced (like me ) it is good to find some reference people in your field to learn the rules first.
|
|
March 10, 2018, 14:14 |
|
#5 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
It may be that the total calculation time is decreased with decreasing max Courant number. Hosein explained why: It may be that the solver needs a lot of calculation power for the stabilizing the result for this large timestep. A smaller timestep is faster stabilized and the total computer power is reduced. I often found a maxCo of around 0.1 optimal. If there are large differences in tehe element sizes, even lower.
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
March 11, 2018, 11:47 |
|
#6 |
Member
Bill Lasher
Join Date: Jun 2009
Posts: 36
Rep Power: 17 |
Thanks so much - you've both been very helpful!
|
|
March 12, 2018, 10:20 |
|
#7 |
Senior Member
|
If you dont want to resolve the smallest time scales transientSimpleFoam (if interested search transientSimpleFoam by H Jasak) will enable you to use reallylarge courant numbers.. it is SIMPLE algorithm (no PISO) marching in time.
You can see what has been done and implement this algorithm to any solver of your choice. |
|
March 12, 2018, 10:47 |
|
#8 |
Member
Bill Lasher
Join Date: Jun 2009
Posts: 36
Rep Power: 17 |
Thanks, will look into it!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
courant number increases to rather large values | 6863523 | OpenFOAM Running, Solving & CFD | 22 | July 6, 2023 00:48 |
p_rgh initial residual no change with different settings | manuc | OpenFOAM Running, Solving & CFD | 3 | June 26, 2018 16:53 |
pimpleDyMFoam computation randomly stops | babapeti | OpenFOAM Running, Solving & CFD | 5 | January 24, 2018 06:28 |
dynamic Mesh is faster than MRF???? | sharonyue | OpenFOAM Running, Solving & CFD | 14 | August 26, 2013 08:47 |
mixerVesselAMI2D's mass is not balancing | sharonyue | OpenFOAM Running, Solving & CFD | 6 | June 10, 2013 10:34 |