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

2D lid-driven cavity using SIMPLE algorithm convergence

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By spelletier
  • 2 Post By FMDenaro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2019, 10:02
Default 2D lid-driven cavity using SIMPLE algorithm convergence
  #1
Senior Member
 
Join Date: Jan 2018
Posts: 121
Rep Power: 8
Moreza7 is on a distinguished road
Hi,
I wrote a MATLAB code for 2D lid-driven cavity using SIMPLE algorithm. (Central Method)
(Using Versteeg Book formulation)

The problem is, that it only converges at relaxation factors of smaller than 0.001 for pressure equation. However, the solution seems to be OK.

Is that OK to have such a small under-relaxation factor?

Last edited by Moreza7; July 5, 2019 at 20:20.
Moreza7 is offline   Reply With Quote

Old   July 8, 2019, 02:08
Default
  #2
New Member
 
Sebastian Pelletier
Join Date: May 2019
Posts: 12
Rep Power: 6
spelletier is on a distinguished road
I am curious as to what someone far more experienced then me will say so take the following with a grain of salt. I`m also a fluet user not a matlab user.

The under relaxation factors control the convergence and stability by scaling the impact of the calculated value. Essentially:


Xn+1 = Xn*underelaxation + (1-underelaxation)(Xn-1)

So by decreasing the underelaxation you would be increasing the convergence time although at .001 it would seem like you are basically not taking into account pressure unless you are doing a very high number of iterations.
Moreza7 likes this.
spelletier is offline   Reply With Quote

Old   July 8, 2019, 03:50
Default
  #3
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
To understand the general role of such factors in the convergence of an iterative method I suggest to start back from the theory of stationary iterative methods for linear algebric system. You will see that the introduction of such a factor enters into the iteration matrix. The value changes the spectral radius of the iteration matrix so that you can get acceleration if the spectral radius is lesser than the original one and a deceleration for a greater value. And using wrong values you can get also that the process is no longer converging.
Moreza7 and Fluidentity13 like this.
FMDenaro is offline   Reply With Quote

Old   July 8, 2019, 05:18
Default
  #4
Senior Member
 
Join Date: Jan 2018
Posts: 121
Rep Power: 8
Moreza7 is on a distinguished road
Thank you all.
I just noticed that one of my loops was incorrect.
Now it's working with U.R of 0.3.
Moreza7 is offline   Reply With Quote

Old   November 9, 2021, 01:07
Default
  #5
New Member
 
Aman Sangal
Join Date: Mar 2021
Posts: 22
Blog Entries: 2
Rep Power: 5
Fluidentity13 is on a distinguished road
Quote:
Originally Posted by Moreza7 View Post
Thank you all.
I just noticed that one of my loops was incorrect.
Now it's working with U.R of 0.3.

Hi,

Can you please elaborate on the mistake. I've been stuck on this for days on end (UPWIND Scheme) with multiple types of grid & boundary treatment. Same issue, solution blows up for U.R.F Pressure above 0.01.
Fluidentity13 is offline   Reply With Quote

Old   November 10, 2021, 05:06
Default
  #6
Senior Member
 
Join Date: Jan 2018
Posts: 121
Rep Power: 8
Moreza7 is on a distinguished road
Quote:
Originally Posted by Fluidentity13 View Post
Hi,

Can you please elaborate on the mistake. I've been stuck on this for days on end (UPWIND Scheme) with multiple types of grid & boundary treatment. Same issue, solution blows up for U.R.F Pressure above 0.01.
Hello, I really don't remember what the problem was!
But I can send you my code. If you'd like, you can send me your Email address.
Moreza7 is offline   Reply With Quote

Old   November 10, 2021, 09:10
Default
  #7
New Member
 
Aman Sangal
Join Date: Mar 2021
Posts: 22
Blog Entries: 2
Rep Power: 5
Fluidentity13 is on a distinguished road
Quote:
Originally Posted by Moreza7 View Post
Hello, I really don't remember what the problem was!
But I can send you my code. If you'd like, you can send me your Email address.
That'd be great. Thanks a lot.

aman.sangal13@gmail.com
Fluidentity13 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
2D Lid Driven Cavity Problem in C satty_00 Main CFD Forum 2 April 19, 2014 09:49
2-D Lid Driven Cavity (Matlab) DaBears13 Main CFD Forum 0 May 5, 2013 04:11
Lid Driven Cavity velocity profiles new_at_this Main CFD Forum 0 December 22, 2011 16:04
Lid Driven Cavity using Ghost Cell Method and in C++ illuminati5288 Main CFD Forum 0 August 12, 2011 22:05
is there any parallel code for the famous Lid Driven Cavity flow? gholamghar Main CFD Forum 0 August 1, 2010 01:55


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