|
[Sponsors] |
April 24, 2020, 12:12 |
Lid Driven Cavity (SIMPLE)
|
#1 |
New Member
Deep Morzaria
Join Date: Jan 2020
Posts: 10
Rep Power: 6 |
Hello, I am trying to code the lid driven cavity problem using SIMPLE method and FVM discretization with staggered grid and ghost cells.
Steps followed 1. Found the velocity coefficient matrix for u,v (incorporated the BC in the coefficient matrix for corner and boundary cell) 2. Found the updated velocities using momentum equation 3. Found the coefficient matrix for pressure correction (incorporated the BC in the coefficient matrix for corner and boundary cell) 4. updated p,u,v Central differencing scheme used to discretize. I am facing some issues in the results for centerline velocity. Thanks in advance |
|
April 24, 2020, 13:01 |
|
#2 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
What is the problem? Why do you think to get exactly the same results obtained by Fluent? |
||
April 24, 2020, 13:08 |
|
#3 |
New Member
Deep Morzaria
Join Date: Jan 2020
Posts: 10
Rep Power: 6 |
I am not looking for the exact results but I'm concerned about the curvature it achieves after reaching the minima. That curvature increases as I decrease the grid spacing and hence the error.
|
|
April 24, 2020, 13:13 |
|
#4 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
I suggest to compare to the well known results in literature (for example Ghia & Ghia) using the same Re and a similar grid.
Check both velocity profiles in the centerline and the recirculation region. Check if the divergence-free constraint is satisfied. |
|
April 24, 2020, 13:51 |
|
#5 |
New Member
Deep Morzaria
Join Date: Jan 2020
Posts: 10
Rep Power: 6 |
Yes, the divergence free condition is satisfied. I've posted the comparison for Ghia et al. Probably this would give you a better picture
|
|
April 24, 2020, 13:55 |
|
#6 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
What about the Re number? What about the comparison to the other velocity component? Plot the streamlines and check that your solution achieved a convergent result. |
||
April 24, 2020, 14:35 |
|
#7 |
New Member
Deep Morzaria
Join Date: Jan 2020
Posts: 10
Rep Power: 6 |
The Re is 100. V velocity is actually worse
|
|
April 24, 2020, 14:39 |
|
#8 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
||
April 24, 2020, 14:43 |
|
#9 |
New Member
Deep Morzaria
Join Date: Jan 2020
Posts: 10
Rep Power: 6 |
If the successive change in velocity is less than 1e-6, it stop the solution. The grid size is 31x31 which is quite decent. The other results from similar mesh seem to have got a pretty accurate result.
|
|
April 24, 2020, 15:10 |
|
#10 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
That makes no sense in terms of convergence, you have to monitor the residuals |
||
April 24, 2020, 15:23 |
|
#11 | |
New Member
Deep Morzaria
Join Date: Jan 2020
Posts: 10
Rep Power: 6 |
Quote:
Also, keep in mind that am monitoring residuals from continuity equation. |
||
April 24, 2020, 15:29 |
|
#12 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
Not at all, the differences between old and new values are not the residuals of the equations. A.x^k-q=r^k is the k-th residual |
||
April 26, 2020, 09:52 |
|
#13 |
New Member
Deep Morzaria
Join Date: Jan 2020
Posts: 10
Rep Power: 6 |
||
April 26, 2020, 12:25 |
|
#14 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
||
April 26, 2020, 12:41 |
|
#15 |
New Member
Deep Morzaria
Join Date: Jan 2020
Posts: 10
Rep Power: 6 |
No it does not diverge. To me it seems that either something is wrong with the link coefficients for u,v in momentum equation as I incorporate the boundary conditions. The interior nodes look good to me. Or there could be something wrong in the way I am implementing relaxation factors.
|
|
April 26, 2020, 13:00 |
|
#16 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
what do you mean? the norm on the u and v residual become constant? |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
2D Lid Driven Cavity Flow simulation using MATLAB | josephlm | Main CFD Forum | 4 | August 17, 2023 21:36 |
Boundary Conditions for Lid Driven Cavity case (SIMPLE Algorithm) | Mandeep Deka | Main CFD Forum | 1 | April 7, 2015 09:01 |
2-D Lid Driven Cavity (Matlab) | DaBears13 | Main CFD Forum | 0 | May 5, 2013 05:11 |
is there any parallel code for the famous Lid Driven Cavity flow? | gholamghar | Main CFD Forum | 0 | August 1, 2010 02:55 |
Lid driven cavity flow | KK | FLUENT | 1 | December 16, 2009 19:10 |