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

SimpleFoam case not converging for second order scheme

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 2, 2023, 09:47
Default SimpleFoam case not converging for second order scheme
  #1
New Member
 
Nishit
Join Date: Oct 2022
Posts: 3
Rep Power: 3
PotatoSauce5 is on a distinguished road
Hello everyone,
I am trying to develop a numerical model of flow past serpentine microchannel for Reynolds numbers 10, 50, 100, 250, 500, 750 & 1000.
I want to run it for incompressible, steady state and laminar flow. Hence I have chosen the simpleFoam solver in OpenFOAM v2012.
The issue that I am encountering is that the solution is not converging for Re 500, even though the solution converged for previous Re Nos: 10, 50, 100 & 250.
For the Re 500 case - I ran the case with first-order scheme (Gauss upwind) and it converged. But it isn't converging with second-order scheme (bounded Gauss linearUpwind grad(U)). I tried lowering relaxation factors or adding non-orthogonal correctors but didn't work much. The residual stays at a constant value of around 1e-5 for Ux forever.

I have attached the checkMesh output, fvSolution and fvScheme file for reference.

checkMesh Output

Edit: I increase Reynolds numbers by increasing the velocity only. The working fluid is constant throughout the cases, which is water. The inlet width of the channel is 300 micrometres.
Attached Files
File Type: txt fvSolution.txt (1.5 KB, 2 views)
File Type: txt fvSchemes.txt (1.6 KB, 2 views)
PotatoSauce5 is offline   Reply With Quote

Old   July 4, 2023, 04:41
Default
  #2
Member
 
Zeinab
Join Date: Feb 2023
Posts: 30
Rep Power: 3
Zena27 is on a distinguished road
Hello,
I had this problem before, It usually happens actually. This can be due to the simulation is transient in nature. It's actually a common thing when using simpleFoam.

What I might suggest is to track the residuals (usually it's fluctuating). After tracking the residuals and getting almost stable residuals (i.e., fluctuating around a mean value), you can compare the first order vs. the second order solutions. Maybe it's in acceptable range, the error between the two is not much.

Lastly, you can use mapFields utility to map the solution of the first-order to the case with second-order scheme, maybe it helps. But I suggest you check the behaviour of the solution first.

Remember not converging to the desired tolerance doesn't mean the solution is wrong, it might be within acceptable range of accuracy.
Zena27 is offline   Reply With Quote

Old   July 7, 2023, 09:22
Default
  #3
New Member
 
Nishit
Join Date: Oct 2022
Posts: 3
Rep Power: 3
PotatoSauce5 is on a distinguished road
Hey,
Thanks for the insights.
I tried running my case with first order for around 20k iterations (I had changed the residuals to 1e-10 just to let it run) and then took the same case and ran for another 20k iterations with second order discretization.
However, I see notable differences in the Velocity profile ( Velocity magnitude vs the inlet width of the channel) and the pressure gradient graph (Pressure Gradient vs length of the channel)
I am attaching the above mentioned plots and the residual plot as well below:
https://ibb.co/k1bFVTg
https://ibb.co/fdLQ1K1
https://ibb.co/3BKWH09
PotatoSauce5 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
Gradient schemes and backward second order time scheme callumso OpenFOAM Running, Solving & CFD 4 April 19, 2021 09:36
Cannot get convergence with 2nd order scheme for velocity convection term Jaco_97 OpenFOAM Running, Solving & CFD 5 May 29, 2020 08:35
[DesignModeler] DesignModeler Scripting: How to get Full Command Access ANT ANSYS Meshing & Geometry 53 February 16, 2020 15:13
How grid resolution for a wave number depends on the scheme order? marinkobezu Main CFD Forum 9 September 21, 2017 12:11
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24


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