CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CFD Online Community > CFD-Wiki

Pressure Computation in ACM

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 3, 2019, 13:03
Post Pressure Computation in ACM
  #1
New Member
 
Abdul Hannan
Join Date: Apr 2018
Posts: 2
Rep Power: 0
RajaHannan is on a distinguished road
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?
RajaHannan is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
question regarding LES of pipe flow - pimpleFoam Dan1788 OpenFOAM Running, Solving & CFD 37 December 26, 2017 14:42
outlet pressure Boundary settings -velocity streamline under ambient temp.conditions Vishnu_bharathi CFX 12 November 21, 2017 06:56
Pressure Outlet Guage pressure Mohsin FLUENT 36 April 29, 2016 17:16
Outlet pressure aja1345 FLUENT 5 August 18, 2015 11:02
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27


All times are GMT -4. The time now is 17:42.