SIMPLE Algorithm for 2D Lid Driven Cavity Flow

9 Ansichten (letzte 30 Tage)
kamirot
kamirot am 4 Mai 2016
Kommentiert: Naeem Ullah am 5 Okt. 2017
Hello Everyone,
I am an aerospace engineering student taking a CFD course at my university. We briefly covered the SIMPLE algorithm and I would like to code it in MATLAB. I have been trying to follow the steps in the method 1. staggered grid 2. guess pressure, velocity field 3. solve momentum equations 4. solve for the pressure correction 5. solve for the velocity correction 6. update the pressure and velocity field with an under relaxation factor for convergence 7. repeat until solution converges
I have attempted coding this algorithm for while and can't seem to get it right.
I am asking for help with my code. I use three matrices to account for the staggered grid, and try to solve the momentum and continuity equation with a jacobi iteration technique. I cannot figure out why my code won't converge. I have attached two attempts of my code one uses strictly central differencing and the other (Untitled) uses alpha/beta_plus/minus factors to uses central or first order upwind.
I would really appreciate it if someone could take a look at my code and try to help me, or any advice regarding coding SIMPLE will be greatly appreciated. Thank you.
  2 Kommentare
ce lee
ce lee am 5 Jun. 2016
Hi there, I would like to ask a questino regarding on the code if you don't mind. In the coding, u preallocate u- and v- velocities, why is it u_star = zeros(ny,nx-1) and not u_star = zeros(ny,nx)?
Naeem Ullah
Naeem Ullah am 5 Okt. 2017
kamirot, Sir, if you kindly upload your review work I want to read it. Thank you

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by