|
[Sponsors] |
Problematic lid-driven cavity using SIMPLE on collocated grid |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Join Date: Aug 2014
Posts: 17
Rep Power: 10 ![]() |
Dear all,
I tried the lid-driven cavity case by solving 2-D imcompressible steady Navier-Stokes equation using SIMPLE algorithm. Basically, I followed Versteeg & Malalasekera's textbook (Versteeg & Malalasekera 2007, An Introduction to Computational Fluid Dynamics: The Finite Volume Method, Pearson Education, 2nd ed.) step by step, except for using of the collocated grid. For simplicity, detailed calculation can be seen in the attached flow chart. In my codes, the momentum interpolation is preoperly working (because face values u_w_star, u_e_star, v_s_star, v_n_star match node values u_star, u_star, v_star, v_star well). Results seems normal and the codes behaves properly, but only very SMALL value of pressure under-relaxtion factor is allowed to keep SIMPLE iteration convergent. It seems that large pressure correction (P', serveral order of magnitude higher than correction of velocoity u', v') in the Step-2 is yield when solve continuity equation, but I don't know why. Can anybody help me? I modularized the codes including: 1. Cavity_steady_2D.m - main 2. solveStokesEqXTVD.m - solve the x-momentum equation to get u*, u*_pseudo 3. solveStokesEqYTVD.m - solve the y-momentum equation to get v*, v*_pseudo 4. solveContinuityEq.m - solve the continuity Eq. and get correction value P' of P 5. getVelCorrections.m - get corrections u', v' for u, v 6. correctVelocityPressure.m - correct u, v, P Intermediate variables are shown. Codes are attached. Best, Fw. Last edited by Freewill1; June 10, 2020 at 11:30. Reason: Updating data |
|
![]() |
![]() |
![]() |
![]() |
#2 | |
New Member
Join Date: Aug 2014
Posts: 17
Rep Power: 10 ![]() |
Bug found and fixed with the help of tas38 here:
https://www.cfd-online.com/Forums/cfd-freelancers/227828-looking-2-d-simple-code.html Quote:
|
||
![]() |
![]() |
![]() |
Tags |
collocated, lid-driven cavity, simple |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
code for SIMPLE algorithm - 2D Lid driven cavity flow problem - Collocated grid | h_amooie | OpenFOAM Programming & Development | 1 | January 22, 2022 12:33 |
Lid Driven Cavity (SIMPLE) | deepmorzaria | Main CFD Forum | 15 | April 26, 2020 13:00 |
Lid Driven Cavity and Turbulent Flow | Mayzie12 | FLUENT | 1 | November 8, 2017 07:28 |
Lid Driven Cavity - SIMPLE(R) | calmbeep | CFD Freelancers | 1 | June 30, 2016 05:37 |
Lid driven cavity in Fortran | Dhairya | Main CFD Forum | 4 | June 29, 2016 02:25 |