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

interFOAM courant number is less than hand calculated

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By Yann
  • 1 Post By Yann
  • 1 Post By hr_nt

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2022, 02:20
Default interFOAM courant number is less than hand calculated
  #1
New Member
 
HR
Join Date: Nov 2022
Posts: 17
Rep Power: 4
hr_nt is on a distinguished road
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 ?
hr_nt is offline   Reply With Quote

Old   November 22, 2022, 04:50
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
What velocity did you use to manually calculate your time step?
hr_nt likes this.
Yann is offline   Reply With Quote

Old   November 22, 2022, 05:20
Default
  #3
New Member
 
HR
Join Date: Nov 2022
Posts: 17
Rep Power: 4
hr_nt is on a distinguished road
Quote:
Originally Posted by Yann View Post
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
hr_nt is offline   Reply With Quote

Old   November 22, 2022, 06:02
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
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 likes this.
Yann is offline   Reply With Quote

Old   November 22, 2022, 09:07
Default
  #5
New Member
 
HR
Join Date: Nov 2022
Posts: 17
Rep Power: 4
hr_nt is on a distinguished road
Quote:
Originally Posted by Yann View Post
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
Yann likes this.
hr_nt 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
interFoam wave propagation and explosion of Courant number and residuals ChiaraViola OpenFOAM Running, Solving & CFD 1 June 26, 2019 06:36
GenerateVolumeMesh Error - Surface Wrapper Self Interacting (?) AndreP STAR-CCM+ 10 August 2, 2018 08:48
TwoPhaseEulerFoam high courant number mwaqas OpenFOAM Running, Solving & CFD 11 July 11, 2017 15:19
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library aylalisa OpenFOAM Installation 23 June 15, 2015 15:49
[blockMesh] --> foam fatal error: lillo763 OpenFOAM Meshing & Mesh Conversion 0 March 5, 2014 11:27


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