CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Courant number (https://www.cfd-online.com/Forums/cfx/132216-courant-number.html)

newbie384 March 27, 2014 10:04

Courant number
 
Hi

Some resources online say that for transient simulation, the courant number should be between 2 to 10. I think CFX reports the maximum and RMS courant number at every timestep. May I know when we say that the courant number should be between 2 to 10, is it mean the RMS courant? or the maximum courant?

Thank you in advance.

st_hoerner March 27, 2014 11:25

Hello newbie,

I'm also new in cfd but this is what i understood:

it depends on your solver and discretization sheme if it is stable to calculate with co numbers>1, but even if it is stable you should check if the results become poor if you use high co numbers.

In general you can use co numbers above 1 with implict solvers but best is to keep co number <1 for good results anyway

so it is the maximum value which is interesting because it affects the calculation in the cell that is calculated with this max value.

I don't know much about cfx but with openfoam i had an effect to the results already by co>1 which kept the same value by increasing to 30...then it was getting unstable but the results were the same.

Hope this helps you..

Yours stefan

ghorrocks March 27, 2014 16:52

I should write an FAQ on this....

CFX is an implicit solver and therefore does not have a numerical stability limit based on Courant Number. Explicit solvers do have this stability limit and are therefore strictly limited by Courant number. So Courant number is critical for Explicit solvers, and not critical for Implicit solvers.

So for implicit solvers like CFX what is the relevance of Courant Number? As always, it depends :).

For most physics models which are well linearised in the solver it has little relevance. Time step size should be set by a sensitivity analysis where you vary the time step size until it gives an answer accurate to within a tolerance you are happy with.

However CFX does have some physics models which are not well linearised and they start to show explicit-like characteristics. An example of this is the surface tension model in CFX, but there are probably others. When you use these models you will find that the necessary time step size will probably drop to a Courant number near 1. But again, rather than using Courant number to set time step size I still recommend a time step sensitivity analysis.

Having said that, in general my recommendation for time step size is to use adaptive time stepping, homing in on 3-5 coeff loops per time step. This will automatically find a time step where the solver is running efficiently and small enough to be well converged for most applications.

So I do not recommend using Courant number in any form (average or max) for controlling time step size in CFX.

ghorrocks March 27, 2014 16:54

I should point out that comparing Courant numbers between software is not very useful and they all have different implementations of the numerics, and there is little advantage in comparing Courant numbers between simulations as different simulations need different time step resolution. Hopefully by now I have convinced you Courant number is pretty useless for most applications in CFX.

newbie384 March 28, 2014 06:14

hi. Thank you very much for your great explanation. So, can I say that Courant number is only valid for stability of simulation (diverge or not)? I am trying to simulate unsteady pressure at the tip of rotor due to stator-rotor interaction in centrifugal compressor and but I found that my unsteady pressure converges to a steady value as time proceeds. I wonder whether there is anything to do with the courant number or not.

ghorrocks March 28, 2014 06:29

No, Courant number is not much use in predicting whether a CFX simulation will diverge or not either.

Using a smaller time step is a standard response to convergence difficulties. A smaller time step will also reduce the Courant number. So they go together.

newbie384 March 28, 2014 07:52

Thank you for your clarification.


All times are GMT -4. The time now is 09:17.