CFD Online Logo CFD Online URL
Home > Forums > General Forums > Main CFD Forum

divergence in MAC Method

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

LinkBack Thread Tools Search this Thread Display Modes
Old   December 15, 2000, 06:53
Default divergence in MAC Method
Maciej Matyka
Posts: n/a

i have new problem with my program.

i see than divergence equations fails. my divergence equation is:

D[i][j] = (U[i][j] - U[i-1][j])/dx + (V[i][j] - V[i][j-1];

in paper by Harlow Welch (MAC method) he write than divergence cannot be larger than 3.5 * 10^(-4). Ok, but when divergence is too big for one of cells, then i cannot make it smaller (when i less dt, Divergence dont change). Any ideas?

/// maq

ps. just small question - width of output = 256

height of output = 256

number of cells x = 64

number of cells y = 64

thats means than dx,dy = 256/4 ???
  Reply With Quote

Old   December 15, 2000, 11:00
Default errata :)
Maciej Matyka
Posts: n/a
sorry: of corse:

D[i][j] = (U[i][j] - U[i-1][j])/dx + (V[i][j] - V[i][j-1];


dx,dy = 256/64???


anyway anybody know?
  Reply With Quote

Old   December 19, 2000, 10:43
Default Re: errata :)
Posts: n/a
dear maq check ur D eqns, dy is missing there.if it is the typing mistake here alone, then the culprit is the way u evaluate the u and v.

u(i,j) is average of u(i,j) and u(i-1,j) and

u(i-1,j) is average of u(i-2,j) and u(i-1,j) and so forth.check this out by senthil.
  Reply With Quote


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
MAC method solve for pressure at boundry Ron Main CFD Forum 2 January 28, 2006 02:14
MAC method shvia Main CFD Forum 1 September 20, 2004 09:07
The MAC Method Maciej Matyka Main CFD Forum 6 November 12, 2000 15:51
use of MAC method to solve sloshing problem. S.R.SAHI Main CFD Forum 1 April 15, 1999 22:28
Marker And Cell method (MAC) Albert Badal Main CFD Forum 0 February 27, 1999 19:53

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