CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Courant no. unstable

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 19, 2022, 04:24
Exclamation Courant no. unstable
  #1
New Member
 
Rishi Kumar
Join Date: Jun 2022
Posts: 20
Rep Power: 4
rishik686 is on a distinguished road
Hi everyone,
I am trying to run a fluid flow simulation in an artery using pimple Foam in open Foam.
But the courant number is increasing abruptly.
geometry in complicated

Earlier when I tried the same for simple tube it run perfectly with stable Courant No.

Please help me to stabilize the courant no. so that my simulation can converge.
__________________
Rishi K.
__________________
Rishi K.
rishik686 is offline   Reply With Quote

Old   December 19, 2022, 05:56
Default
  #2
Member
 
D L
Join Date: Jun 2012
Posts: 49
Rep Power: 14
DLuo is on a distinguished road
Easiest things to tackle are
1. reduce your timestep
2. decrease your element size (finer mesh)

If you reduce your timestep by 1/2 and the solution becomes stable. that may give you a quick idea if your current mesh is suitable.

Also you may try ramping your timestep. Start with a finer timestep and see if you can make it past the point of instability before increasing your timestep up to your desired step size.

Lastly you could just have some mesh quality issues. That's always a pain to troubleshoot and improve so I'd suggest starting with suggestion 1.
DLuo is offline   Reply With Quote

Old   December 19, 2022, 08:27
Default
  #3
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by rishik686 View Post
Hi everyone,
I am trying to run a fluid flow simulation in an artery using pimple Foam in open Foam.
But the courant number is increasing abruptly.
geometry in complicated

Earlier when I tried the same for simple tube it run perfectly with stable Courant No.

Please help me to stabilize the courant no. so that my simulation can converge.
__________________
Rishi K.
You are not clear. You see a numerical instability? The what about your numerical procedure?
Have you tried to reduce the time step?
FMDenaro is offline   Reply With Quote

Old   December 20, 2022, 08:49
Default
  #4
New Member
 
Rishi Kumar
Join Date: Jun 2022
Posts: 20
Rep Power: 4
rishik686 is on a distinguished road
Quote:
Originally Posted by DLuo View Post
Easiest things to tackle are
1. reduce your timestep
2. decrease your element size (finer mesh)

If you reduce your timestep by 1/2 and the solution becomes stable. that may give you a quick idea if your current mesh is suitable.

Also you may try ramping your timestep. Start with a finer timestep and see if you can make it past the point of instability before increasing your timestep up to your desired step size.

Lastly you could just have some mesh quality issues. That's always a pain to troubleshoot and improve so I'd suggest starting with suggestion 1.
Thanks for the reply Dlou.
I have tried the same problem with the finer mesh and the stability is there but the Max CFL is still >1. and the Average is >0.7

Time step reduction is not helping.
The Mesh quality improvement may be required.
__________________
Rishi K.
rishik686 is offline   Reply With Quote

Old   December 20, 2022, 15:37
Default
  #5
Member
 
D L
Join Date: Jun 2012
Posts: 49
Rep Power: 14
DLuo is on a distinguished road
So you're saying the finer mesh is stable using the original timestep? Your concern is that you think the solution is inaccurate due to the max Co number being reported as >1?
That's fine, it's just telling you how much of your small time-scales you're able to resolve. as Max CO goes up you start to approach more of a URANS solution but that still has value in helping you understand how the mean flow varies with time.
Personally it sounds like you've already fixed the issue especially if that Max CO value is still in the neighborhood of 10 or less. I'm not sure how much compute resources you have available but consider the cost of wading into the unknown trying to fix your mesh with what limited options you have available in SnappyHexMesh vs just letting your computer chomp away on the finer mesh. I would bet that you will spend overall less physical/mental energy running the finer mesh.
DLuo is offline   Reply With Quote

Old   December 21, 2022, 05:52
Default
  #6
New Member
 
Rishi Kumar
Join Date: Jun 2022
Posts: 20
Rep Power: 4
rishik686 is on a distinguished road
Quote:
Originally Posted by DLuo View Post
So you're saying the finer mesh is stable using the original timestep? Your concern is that you think the solution is inaccurate due to the max Co number being reported as >1?
That's fine, it's just telling you how much of your small time-scales you're able to resolve. as Max CO goes up you start to approach more of a URANS solution but that still has value in helping you understand how the mean flow varies with time.
Personally it sounds like you've already fixed the issue especially if that Max CO value is still in the neighborhood of 10 or less. I'm not sure how much compute resources you have available but consider the cost of wading into the unknown trying to fix your mesh with what limited options you have available in SnappyHexMesh vs just letting your computer chomp away on the finer mesh. I would bet that you will spend overall less physical/mental energy running the finer mesh.
Thanks for the reply DLuo.

regarding about mesh, I have not generate my mesh with SnappyHexMesh i just import it from ansys mesh modular. while checking the quality in openFOAM it says that the mesh is OK.
__________________
Rishi K.
rishik686 is offline   Reply With Quote

Reply

Tags
courant number increasing, divergence, mesh 3d


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
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 6, 2023 00:48
Courant no. unstable rishik686 OpenFOAM Running, Solving & CFD 1 December 19, 2022 12:01
pimpleFoam, rhoPimpleFoam unstable at small Courant numbers (time-steps) peob OpenFOAM Running, Solving & CFD 18 November 13, 2020 14:56
same geometry,structured and unstructured mesh,different behaviour. sharonyue OpenFOAM Running, Solving & CFD 13 January 2, 2013 23:40
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 04:42.