CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to use large time step

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By einstein_zee

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2018, 15:08
Default How to use large time step
  #1
Member
 
Bill Lasher
Join Date: Jun 2009
Posts: 36
Rep Power: 17
lasherwc is on a distinguished road
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
lasherwc is offline   Reply With Quote

Old   March 8, 2018, 17:09
Default
  #2
Member
 
Hosein
Join Date: Nov 2011
Location: Germany
Posts: 94
Rep Power: 15
einstein_zee is on a distinguished road
Quote:
Originally Posted by lasherwc View Post
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
Hi Bill,

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...
piu58 likes this.
einstein_zee is offline   Reply With Quote

Old   March 9, 2018, 11:44
Default
  #3
Member
 
Bill Lasher
Join Date: Jun 2009
Posts: 36
Rep Power: 17
lasherwc is on a distinguished road
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?
lasherwc is offline   Reply With Quote

Old   March 10, 2018, 09:30
Default
  #4
Member
 
Hosein
Join Date: Nov 2011
Location: Germany
Posts: 94
Rep Power: 15
einstein_zee is on a distinguished road
Quote:
Originally Posted by lasherwc View Post
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?
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.
einstein_zee is offline   Reply With Quote

Old   March 10, 2018, 14:14
Default
  #5
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
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)
piu58 is offline   Reply With Quote

Old   March 11, 2018, 11:47
Default
  #6
Member
 
Bill Lasher
Join Date: Jun 2009
Posts: 36
Rep Power: 17
lasherwc is on a distinguished road
Thanks so much - you've both been very helpful!
lasherwc is offline   Reply With Quote

Old   March 12, 2018, 10:20
Default
  #7
Senior Member
 
shereez234's Avatar
 
M Sereez
Join Date: Jan 2014
Location: England
Posts: 353
Blog Entries: 1
Rep Power: 13
shereez234 is on a distinguished road
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.
shereez234 is offline   Reply With Quote

Old   March 12, 2018, 10:47
Default
  #8
Member
 
Bill Lasher
Join Date: Jun 2009
Posts: 36
Rep Power: 17
lasherwc is on a distinguished road
Thanks, will look into it!
lasherwc is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 05:47.