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

Question Regarding MacCormack Technique

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

LinkBack Thread Tools Display Modes
Old   January 6, 2010, 21:51
Default Question Regarding MacCormack Technique
New Member
Zach Davis
Join Date: Jan 2010
Location: Fort Worth, TX
Posts: 17
Rep Power: 7
RcktMan77 is on a distinguished road
I'm somewhat of a beginner/student to CFD development, and I'm making my way through John D. Anderson's "Computational Fluid Dynamics: The Basics With Applications" wherein Maccormack's finite differencing technique is being utilized to solve the flowfield for a quasi-1D, subsonic inflow-supersonic outflow isentropic nozzle. The governing flow equations are reduced for a quasi-1D Euler flow, and cast in strong conservation form. In writing my own program to solve this problem, I have been able to match Anderson's results for the first step in time. However, my code becomes unstable as I advance further in time, and I'm unable to obtain a stable solution using the Courant number, grid spacing, and time steps that Anderson specifies.

I'm wondering if this may have something to do with my implementation of calculating the time increment itself, which Anderson is a little vague in how he himself handles this. I know that for each grid point the time increment is calculated, and he in turn picks the minimum time increment calculated across each grid point to advance the solution to the next time step (global time marching approach). However, I'm left wondering if this is repeated for each time iteration, or if this minimum time increment calculated for the first time step is used for subsequent iterations. I have implemented the former approach, and I see that as the solution steps forward in time the minimum time increment calculated across all the grid points diminishes; eventhough, the grid spacing remains constant. Is this normal, or should the time increment remain constant while the solution marches in time? Any insights would be most helpful.

RcktMan77 is offline   Reply With Quote

Old   August 9, 2012, 13:47
Default 1d Maccormack
New Member
Jeroen Wink
Join Date: Aug 2012
Posts: 1
Rep Power: 0
jeroen_wink is on a distinguished road
Hi Rcktman77,

Recently I was trying to do the same example from Anderson and I experience the same problem. The absolute value of the divergence seems to scale with the timestep but no matter what the timestep is, the solution diverges. Since you encountered this problem a couple of years ago, do you perhaps know what the problem was?

With kind regards.
Jeroen Wink
jeroen_wink is offline   Reply With Quote

Old   October 1, 2012, 17:10
Default Anderson's CFD book page 336
New Member
Kurt J. Kloesel
Join Date: Oct 2012
Posts: 1
Rep Power: 0
kjkloesel is on a distinguished road
Jeroen Wink - I think I have stumbled onto the same error. I have coded this thing twice, one in C++ and then again in Excel (first step). The central problem begins on page 336. Once I get the calculations to the end of the predictor step (page 349) , I can't get the same answers for F1, F2, F3 (row 15). The calculations work for row 16 and that's OK. I have tried a couple of things. 1.) Not using primitives in the calculation of J2. 2.) Fixing the d(Area)/dx at rows 0 and 30. I am unsure why he claims one needs the primitives calculated on the top of page 349, because the iteration loops can be closed without that calculation, and then one just extracts the primitives at the end of looping, as needed. The web rumors that a solutions manual exists, maybe we can unravel the mystery from this documentation. I'm not sure how any graduate student could turn in re-coded Anderson with out it being somewhat obvious.
kjkloesel is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unanswered question niklas OpenFOAM 2 July 31, 2013 16:03
question about implementing boundary conditions saygin Main CFD Forum 0 July 6, 2006 07:08
Solutions of Nozzle Flows by MacCormack Technique worasit Main CFD Forum 5 September 29, 2003 11:38
CHANNEL FLOW: a question and a request Carlos Main CFD Forum 4 August 23, 2002 05:55
question K.L.Huang CD-adapco 1 March 29, 2000 04:57

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