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

How to choose the right courant number?

Register Blogs Community New Posts Updated Threads Search

Like Tree137Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2013, 16:36
Default
  #21
Senior Member
 
zaynah K.
Join Date: Jun 2012
Location: Mauritius
Posts: 138
Rep Power: 14
zaynah04 is on a distinguished road
Dear Mads,

Thanks to you analyssi, I have solved all other queries concerning the courant numbers..

I have one thing which is quite bothering me and i hope you can help me out of this tight spot.

I have a case where i am simulating wind flow over a sphere ( 2D), its incompressible, turbulent and stready.

I used pisoFoam and i got the same results which i obtained with Fluent for same mesh.
Now i am using simpleFOam, and solution converged. But in paraview i get completely nonsense results..

Your conclusion would be more than welcome dear Mads..
Thanking you in advance if you can help me out from this Tight spot..

Best Regards
Zaynah.
zaynah04 is offline   Reply With Quote

Old   February 11, 2013, 16:41
Default
  #22
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
hi
how is it possible to add "adjustableRunTime" into sonicFoam?
immortality is offline   Reply With Quote

Old   February 11, 2013, 17:25
Default
  #23
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
Quote:
Originally Posted by immortality View Post
hi
how is it possible to add "adjustableRunTime" into sonicFoam?
See http://www.cfd-online.com/Forums/ope...tml#post407241
chegdan is offline   Reply With Quote

Old   May 30, 2013, 17:23
Default
  #24
New Member
 
Arthur Piquet
Join Date: Mar 2013
Posts: 18
Rep Power: 13
halowine is on a distinguished road
Hi,

I'm trying to resolve supersonic compressible flow with OpenFOAM and I have some questions about the Courant Number calculation.

I fix my Courant number in the ControlDict file, and the time step try to adapt himself.

I look up on the C/H file of the courant number calcultation and I found that the formulation used looks like:

CFL = 0.5 * (sumFace of phi/rho) / VolumeCell ~ 0.5 * [ u * dt / dx + v * dt / dy + w * dt / dz ]

Thus, I don't understand why they put 0.5 coefficient, but I maybe misreaded the code...

I have also another question. For compressible flow where shock occurs, the CFL needs to be (for resolving acoustic and shock)
CFL_comp = dt * (U + a) / dt (a: speed of sound)

Does anyone know if it's the correct formulation for shocked flow?? or the normal form is better?

If I summarize all the CFL calculation (OpenFOAM + compressible/shock), the equation becomes :

CFL_comp = CFL_wanted (ex=0.5) / ( 2 * ( 1 + max(Mach number) ) )

(2 is for compensating the 0.5 coefficient of OpenFOAM and ( 1 + max(Mach number) ) is for (U + a))

right??

thx
immortality likes this.
halowine is offline   Reply With Quote

Old   October 3, 2013, 09:28
Default Courant number for non-newtonian fluids
  #25
Senior Member
 
Albrecht vBoetticher
Join Date: Aug 2010
Location: Zürich, Swizerland
Posts: 240
Rep Power: 17
vonboett is on a distinguished road
Dear modellers,

I have nice results for an adapted InterMixingFoam solver that works with a pressure dependent viscosity in one phase. I use maxCo 0.25 because that is what I got recommended for Large Eddy Simulations. Here I have no turbulence, but when I change maxCo, say to 0.4, the viscosity of the fluid increases!
Has anyone experience or ideas of explanation for this behavior with pressure dependent viscosities?
vonboett is offline   Reply With Quote

Old   October 14, 2014, 21:07
Default
  #26
New Member
 
Joana
Join Date: Oct 2014
Posts: 1
Rep Power: 0
deliberation is on a distinguished road
Hi, Mads!

I'm quite new here and I'm trying to understand Delf 3D so I can work in a model of a river to see the water level changing with this new construction.
I am sorry for my ignorance, but I can't understand how the velocity can affect Courant number. So far I've just added the grid and bathymetry. Can you please explain me?

Thanks a lot!

Joana
deliberation is offline   Reply With Quote

Old   July 21, 2016, 05:19
Default
  #27
New Member
 
Alaska1964
Join Date: May 2015
Posts: 16
Rep Power: 11
Alaska1964 is on a distinguished road
HiMads and everyone,
I am trying to save computational costs by increasing the time step unti I get some CFL# of 0.5. When my timestep is 10^-6 my mean Courant number (CFL#) is 0.0032.
How can I define the most appropriate Courant number? We know that CFL# should be less than 1, but how shall I know the lower limit of Courant number? How shall I know if 0.4 is better of 0.1 of 0.0032 ?
Is there another criteria to restrict our choices on time-step to reduce the calculation cost?

Thanks in advance for help and ur time,
Alaska1964 is offline   Reply With Quote

Old   November 19, 2019, 03:23
Default
  #28
New Member
 
Mustapha Mukhtar
Join Date: Dec 2018
Posts: 7
Rep Power: 7
Mohammed_D is on a distinguished road
Convergence can be obtained for sure, but your information travels accross hundreds of cells so you will lose accuracy. but what was the purpose of your simulations? we can not judge the used time steps of courant number without knowing the purpose.
Mohammed_D is offline   Reply With Quote

Old   April 27, 2020, 23:52
Default high courant number but accurate results
  #29
New Member
 
Jose Fuentes
Join Date: Jan 2018
Posts: 2
Rep Power: 0
Dlveckio is on a distinguished road
hi, i have a similar problem. I did several simulations of natural convection in closed spaces in a transitory state in laminar flow. At first I did not take into account the value of the Courant number, however later I determined, now, the courant number in all simulations is greater than 1 but less than 2, does this indicate that my results are not correct? Because when I compare it with experimental studies, the relative error percentage is less than 3%.

What can this mean?
Dlveckio is offline   Reply With Quote

Old   October 18, 2021, 15:09
Default
  #30
Member
 
Guanjiang Chen
Join Date: Apr 2020
Location: Bristol, United Kingdom
Posts: 54
Rep Power: 6
guanjiang.chen is on a distinguished road
Quote:
Originally Posted by Dlveckio View Post
hi, i have a similar problem. I did several simulations of natural convection in closed spaces in a transitory state in laminar flow. At first I did not take into account the value of the Courant number, however later I determined, now, the courant number in all simulations is greater than 1 but less than 2, does this indicate that my results are not correct? Because when I compare it with experimental studies, the relative error percentage is less than 3%.

What can this mean?
Hi,

Courant number and implicit treatment

The last reply may help. For transient problems, the courant number a little higher than 1 may not be wrong if your result is reasonable. If you use the implicit scheme, there is no fixed limit for the courant number。 just prevent it become too large to diffuse I think.

Regards,
guanjiang.chen 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
[mesh manipulation] Mesh Refinement Luiz Eduardo Bittencourt Sampaio (Sampaio) OpenFOAM Meshing & Mesh Conversion 42 January 8, 2017 13:55
DecomposePar unequal number of shared faces maka OpenFOAM Pre-Processing 6 August 12, 2010 10:01
Unaligned accesses on IA64 andre OpenFOAM 5 June 23, 2008 11:37
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15


All times are GMT -4. The time now is 06:55.