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

The MAC Method

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2000, 05:36
Default The MAC Method
  #1
Maciej Matyka
Guest
 
Posts: n/a
Hello everybody. At first - sorry for my pure english.

Im Polish student of Physic at University of Wroclaw. Im beginner in CFD, but im learning. Im working 2d program to simulate fluid motion. My C code base on algorithm presented in "The MAC Method for incompressible, viscous..." by Harlow, Welch (1965 Los Alamos). In general - program is finished, but didnt work correctly. I cannot change general algorithms myself, becouse i didnt understand 100% of that technique (e.g. pressure relaxiation). Anyway, my questions are:

1) Anybody work with algorithms prescribed in that Harlow's and Welch paper?

2) If yes - have you problems with that algorithm? Maybe there are some part missing???

3) I have also problems with free surface calculations, and boundary conditions (not described in that paper). At the moment im interesting only in NOSLP walls (i just wanna run that program to satisfy me at the moment - not solving complicated problems).

thanx, and sorry if i do anything wrong - its my first mail on that forum, i believe you undersand me

Maciej Matyka

ps. I spend lot of my time on that program (~4 months) and i cannot finish that program. help me if anybody work with that methods...

  Reply With Quote

Old   October 31, 2000, 19:52
Default Re: The MAC Method
  #2
Ma
Guest
 
Posts: n/a
Hi,Matyka,

I also worked on the MAC method for a few months, and I could not get the correct result.

There were many modifications(or improvements) after that orginal paper you mentioned. So maybe you can read some more paper on MAC.

As to me,I changed to another method(VOF)at last.

Good Luck!

Ma

  Reply With Quote

Old   October 31, 2000, 20:15
Default Re: The MAC Method
  #3
Hush
Guest
 
Posts: n/a
Hello Maciej

The MAC method solves a Poisson eq for pressure which is derived from the continuity eq. The source term of the Poisson eq. is then given from the NS eq.

So, 1) it finds first the source term with old velocity field. 2) solves Poisson eq till pressure field is converged 3) solives new velocity explicitly with the converged pressure. 4) moves marker particles with tne new velocity 5) go to the step 1)

I think you may find some information from other reports.

1) Chan, R.K.-C., Street, R.L. 1970, "SUMMAC- a numerical model for water waves", technical report no.135, dept. of civil engr., Stanford univ.
: it is a very kind report written on the MAC method. it treats the dynamic pressure boundary condition using 'irregular stars' when solving Poisson eq. for pressure.

2)C. W. Hirt, et al, 1975, "SOLA : a numerical solution algorithm for transient fluid flows"
: you can download this report from LANL www.lanl.gov it has the same idea as the MAC method except for pressure boundary condition.

3)H. Miyata, 1985, "Finite Difference Simulation of Nonlinear Ship Waves", JFM, vol 157
:The method is called TUMMAC which treats body boudary using some segments.
  Reply With Quote

Old   November 3, 2000, 06:09
Default Re: The MAC Method
  #4
Maciej Matyka
Guest
 
Posts: n/a
you thing VOF method is easier? my MAC solver works, and im still interesting in new methods of fluid calculations. where can i download any infos about VOF? (im asking, becouse i spend lot of weeks to search good papers about MAC method...).

btw. i didnt find any good examples of MAC method. for a couple of weeks (when i port my MAC solver for linux stations) i will put info here with url of my homepage with full source code of MAC program. i thing its very important for beginners in CFD (like me).

// maq
  Reply With Quote

Old   November 4, 2000, 13:36
Default Re: The MAC Method
  #5
Ma
Guest
 
Posts: n/a
It's very nice of you to put the source code on web.

As to the VOF, I remember there is a papar about Level Set and VOF method in JCP, 162.

I have changed to studying high speed flow.

Ma
  Reply With Quote

Old   November 6, 2000, 04:08
Default Re: The MAC Method
  #6
Maciej Matyka
Guest
 
Posts: n/a
"VOF method in JCP, 162" hmm... is any web page with JCP reprints? my Univeristy didnt buy it...

/// maq
  Reply With Quote

Old   November 12, 2000, 16:51
Default Re: The MAC Method
  #7
Ma
Guest
 
Posts: n/a
Maybe you can try http://www.idealibrary.com.

Ma
  Reply With Quote

Reply


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 03:14
MAC method shvia Main CFD Forum 1 September 20, 2004 10:07
MAC method Farid Babadi Main CFD Forum 4 March 4, 2003 10:16
divergence in MAC Method Maciej Matyka Main CFD Forum 2 December 19, 2000 11:43
use of MAC method to solve sloshing problem. S.R.SAHI Main CFD Forum 1 April 15, 1999 23:28


All times are GMT -4. The time now is 16:08.