|
[Sponsors] |
May 6, 2020, 09:07 |
Lid Driven Cavity
|
#1 |
New Member
Mudit Mehta
Join Date: Mar 2020
Posts: 15
Rep Power: 6 |
I am working on Lid driven cavtiy problem using SIMPLE Method in python. My code is working and giving correct results for reynolds number 100. But when i run it for reynolds number 1000, it gives this:
RuntimeWarning: invalid value encountered in double_scalars: vp[i, j] = dv[i, j] * (pp[i, j] - pp[i, j + 1]) RuntimeWarning: overflow encountered in double_scalars i, j] * pp[i, j - 1]) + pb[i, j])) / pap[i, j] and i have no clue why. Please help |
|
May 6, 2020, 13:09 |
|
#2 |
New Member
Join Date: Feb 2017
Posts: 6
Rep Power: 9 |
What you are seeing is likely a divide by 0 error, probably from your iterative solver. Maybe take a look at how your residuals are computed.
|
|
May 6, 2020, 15:20 |
|
#3 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73 |
Quote:
I suggest to consider increasing the grid resolution according to the Re number. But go step by step, solve Re=100, 200, 400 and check the solutions |
||
January 28, 2021, 04:53 |
|
#4 |
Member
E
Join Date: Mar 2018
Posts: 77
Rep Power: 8 |
In many papers when we numerically study the lid driven flow problem especially in two dimensions, we ignore the gravity acceleration in the Navier-Stokes equations. Is there any explanation for this ?
Thank you. |
|
January 28, 2021, 05:31 |
|
#5 | |
Senior Member
|
Quote:
Now, while it might look like a simple addition to code, gravity has, indeed, its own peculiarities requiring both a specific model equation (varying density, which is quite more difficult than the constant case, or the Boussinesq approximation, which still is another equation) and numerical treatment for stability (as most homework codes are typically explicit, gravity is gonna hurt if not correctly treated). However, in general, it is the dimensional analysis of the problem that drives conclusions on what terms to keep in the equations. For example, most external aerodynamic problems don't use gravity as well. For papers, the lid driven cavity is typically considered a benchmark, and this benchmark hasn't historically used gravity. But there are analogous cases where it is instead considered (i.e., thermally driven cavity). |
||
Tags |
cfd code, python script, simple algorithm |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Lid driven Cavity | suman91 | SU2 | 3 | May 24, 2022 06:23 |
Setting up Lid driven Cavity Benchmark with 1M cells for multiple cores | puneet336 | OpenFOAM Running, Solving & CFD | 11 | April 7, 2019 01:58 |
Boundary Conditions at Corners, lid driven cavity | t.teschner | Main CFD Forum | 8 | August 17, 2016 09:20 |
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 |