CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   interFOAM courant number is less than hand calculated (https://www.cfd-online.com/Forums/openfoam-solving/246248-interfoam-courant-number-less-than-hand-calculated.html)

hr_nt November 22, 2022 01:20

interFOAM courant number is less than hand calculated
 
I am running a simulation with gas and water mixture using interFOAM. The smallest cell in my mesh is approximately 6e-5m. By considering a courant number of 1 I calculated that the minimum timestep should be 3.27e-4s. However when I run the simulation the timestep adjusted by the solver is in the order of e-7. I want to know why this happens ?

Yann November 22, 2022 03:50

What velocity did you use to manually calculate your time step?

hr_nt November 22, 2022 04:20

Quote:

Originally Posted by Yann (Post 839821)
What velocity did you use to manually calculate your time step?


Velocity at the inlet, which is also what is initialized for the whole domain before the simulation begins

Yann November 22, 2022 05:02

The velocity used to compute the Courant number is the local velocity in the cell, this is probably why you get different results.

There is a function object allowing to write the Courant number as a volume field if you want to investigate where is your maximum Courant number:

hr_nt November 22, 2022 08:07

Quote:

Originally Posted by Yann (Post 839827)
The velocity used to compute the Courant number is the local velocity in the cell, this is probably why you get different results.

There is a function object allowing to write the Courant number as a volume field if you want to investigate where is your maximum Courant number:


Thank you for the explanation


All times are GMT -4. The time now is 18:38.