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

New implementation of Courant number in version 2.0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 17, 2011, 04:02
Default New implementation of Courant number in version 2.0
  #1
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 15
stevenvanharen is on a distinguished road
Dear All,

There seems to be a new implementation of the Courant number in version 2.0.x (compared to 1.7.1). The Courant number seems to be calculated cell-based instead of face-based.

To me this seems strange since high velocity peaks will be smeared over a cell. Also there seems to be a mysterious 0.5 factor. Does anybody has some useful thoughts about why they changed this for version 2.0?

Any input will be greatly appreciated.
stevenvanharen is offline   Reply With Quote

Old   August 18, 2011, 04:23
Default
  #2
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
The "0.5" can what is going on can be easily explained. The "sumPhi" scalar field represents the magnitude of the volume flux crossing crossing a cell boundary. Since the amount of flux out must be equal to the amount of flux in to satisfy continuity, the "average" flux magnitude must be exactly 0.5*sumPhi.

No consider an arbitrary cell in a uni-directional flow field. The cell will have some equivalent frontal area, A*, normal to the flow direction. It will also have some equivalent average length d* aligned with the flow direction. (It follows that V (volume) = A* x d*.)

The Courant number is defined as CFL = velocity * dt / length. Using the average flux magnitude, you can show that

CFL = (0.5 sumPhi / A* ) x dt / d*
= 0.5 sumPhi x dt / V

As to why this was done, I have no idea. As you mentioned, the above formulation will obviously be less accurate the more curved the flow is.
eugene is offline   Reply With Quote

Old   August 18, 2011, 05:25
Default
  #3
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 15
stevenvanharen is on a distinguished road
Thank you for your explanation, the 0.5 factor is clear to me know.

If anybody has an idea why this was done I would be very interested.

Kind regards,

Steven
stevenvanharen is offline   Reply With Quote

Old   August 18, 2011, 05:26
Default
  #4
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23
l_r_mcglashan will become famous soon enough
You could always ask them!
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan 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 file for flow over a circular cylinder Ardalan Main CFD Forum 7 December 15, 2020 13:06
IcoFoam unstability, courant number gets large! vivien OpenFOAM 11 March 9, 2017 03:45
RMS Courant Number vs MAX Courant Number zoozoozoo Main CFD Forum 3 June 12, 2012 13:44
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
COURANT NUMBER Ferreira Main CFD Forum 23 February 26, 2006 18:10


All times are GMT -4. The time now is 07:58.