|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Abdul Hannan
Join Date: Apr 2018
Posts: 2
Rep Power: 0 ![]() |
Hello.I am currently doing research on Lid Driven Cavity problem...My teacher has provided me with this code that solves NS equation and uses Artificial compressibilty Method for pressure calculation. The section that computes pressure is given below...
For 81x81 grid: nx=81 and ny=81 intially: p(1:nx,1:ny)=0.5; p1 = p; for i=2:nx-1 for j=2:ny-1 p(i,j)= p1(i,j) - dt*b*(0.5/dx*(u(i+1,j)-u(i-1,j))+0.5/dy*(v(i,j+1)-v(i,j-1))); end end p(1,:) = p(2,:); p(nx,:) = p(nx-1,:); p(:,1) = p(:,2); p(:,ny) = p(:,ny-1); Why do we have to put pressure of the boundary nodes and the penultimate nodes equal to each other for a Lid Driven Cavity problem? |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
question regarding LES of pipe flow - pimpleFoam | Dan1788 | OpenFOAM Running, Solving & CFD | 37 | December 26, 2017 15:42 |
outlet pressure Boundary settings -velocity streamline under ambient temp.conditions | Vishnu_bharathi | CFX | 12 | November 21, 2017 07:56 |
Pressure Outlet Guage pressure | Mohsin | FLUENT | 36 | April 29, 2016 18:16 |
Outlet pressure | aja1345 | FLUENT | 5 | August 18, 2015 12:02 |
Calculation of the Governing Equations | Mihail | CFX | 7 | September 7, 2014 07:27 |