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

momentum coefficients in collocated grid SIMPLE

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2022, 21:44
Unhappy momentum coefficients in collocated grid SIMPLE
  #1
New Member
 
Gao Shangya
Join Date: Oct 2021
Posts: 18
Rep Power: 4
Harlotte is on a distinguished road
Hello everyone,
I am simulating lid driven cavity in Matlab using collocated grid SIMPLE. Now I have a code that runs well. But I am a little confused about the momentum coefficients in this code. As you can see in the pic, top wall gives A_n(i,j) = 2*D_n+max(0.0,-F_n), why the D_n mulipy by 2?
If I add v-velocity on the top,should I change the coefficients?



Could anyone help me ?
Many thanks
Attached Images
File Type: jpg question momentum coefficients.jpg (54.6 KB, 10 views)
Harlotte is offline   Reply With Quote

Old   February 4, 2022, 05:05
Default
  #2
New Member
 
Join Date: Jan 2022
Posts: 3
Rep Power: 4
Kamyarmvn is on a distinguished road
Quote:
Originally Posted by Harlotte View Post
Hello everyone,
I am simulating lid driven cavity in Matlab using collocated grid SIMPLE. Now I have a code that runs well. But I am a little confused about the momentum coefficients in this code. As you can see in the pic, top wall gives A_n(i,j) = 2*D_n+max(0.0,-F_n), why the D_n mulipy by 2?
If I add v-velocity on the top,should I change the coefficients?



Could anyone help me ?
Many thanks
I am guessing this is because the distance is half at the wall. Inside the domain, to calculate the D we consider the difference between two cell center. At boundaries, in this code, I think D is calculated between the cell center and the face value. this makes the distance half.
Kamyarmvn is offline   Reply With Quote

Reply

Tags
cfd, collocated grid, matlab, simple


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
code for SIMPLE algorithm - 2D Lid driven cavity flow problem - Collocated grid h_amooie OpenFOAM Programming & Development 1 January 22, 2022 11:33
Coefficients discretized momentum equation michujo Main CFD Forum 4 June 20, 2012 01:33
Timestep and Pressure Correction Relationship in SIMPLE rks171 Main CFD Forum 23 May 4, 2012 01:04
SIMPLE on collocated grid dshawul Main CFD Forum 1 August 17, 2010 21:31
SIMPLE using collocated grids zobekenobe Main CFD Forum 0 August 8, 2009 16:37


All times are GMT -4. The time now is 19:30.