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

Lid Driven Cavity

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By FMDenaro
  • 1 Post By sbaffini

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 6, 2020, 09:07
Default Lid Driven Cavity
  #1
New Member
 
Mudit Mehta
Join Date: Mar 2020
Posts: 15
Rep Power: 6
Mudit2208 is on a distinguished road
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
Mudit2208 is offline   Reply With Quote

Old   May 6, 2020, 13:09
Default
  #2
New Member
 
Join Date: Feb 2017
Posts: 6
Rep Power: 9
donatello is on a distinguished road
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.
donatello is offline   Reply With Quote

Old   May 6, 2020, 15:20
Default
  #3
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Mudit2208 View Post
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



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
aero_head likes this.
FMDenaro is offline   Reply With Quote

Old   January 28, 2021, 04:53
Default
  #4
Member
 
E
Join Date: Mar 2018
Posts: 77
Rep Power: 8
IbizaFR is on a distinguished road
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.
IbizaFR is offline   Reply With Quote

Old   January 28, 2021, 05:31
Default
  #5
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,190
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Quote:
Originally Posted by IbizaFR View Post
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.
Whatever equation you use/solve, especially for simple homework cases like the lid driven cavity, is a model for what you want to study.

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).
aero_head likes this.
sbaffini is offline   Reply With Quote

Reply

Tags
cfd code, python script, simple algorithm


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
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


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