Quasi 1D Nozzle Shock Capturing MacCormack Method Problems
Hi I am new to CFD, and I have been using the introductory book by Anderson.
It has multiple cases for a Quasi 1D Nozzle, and I am completely stuck on the Shock Capturing Case (7.6). It is done using a MacCormack method with added artificial viscosity in conservation form and a constant exit pressure ratio of 0.6784. I have tried as exactly presented in the book (I think) as well as have tried many other approaches to see if I could fix it. No matter what, my code diverges after about 25 time steps. Has anybody successfully solved this code? If so, can you please show me the code? I would prefer MATLAB, but any computing language is fine. This is driving me crazy! Or, if anybody as another code that solves this problem (not necessarily MacCormack method) please provide it to me. Please post here or feel free to email it to me: mbyoung18@hotmail.com Thank you so much! |
General finite volume scheme could catch the shock but with numerical oscillations at discontinuities. Try this first. Just ignore the shock and see what you can get. You can e-mail to me if you have further questions: luqilin@hrbeu.edu.cn.
|
I have encountered same problem
1 Attachment(s)
i have done same problem in matlab using same Mccormack technique as described in Ch7. my problem is, i encounter -ve temperature in about 100th iteration step. i dont know why, could you please help me with this?
i have solved the rest of the problems in CH7. this one is driving me crazy i think the problem is in extrapolation in outlet. please help me with this. here is my code |
upload your matlab code matt, i wanna take a look at it
|
Hay ramKumar..
Its been a year now. Have you been able to resollve bug in your code. Can you please share it. Thanks |
hey rumkummar
im facing the same problem so i was wondering if you resolved this problem yet? my solution diverges after about 100 iterations and the results are not anywhere near acceptable... i think my problem is at subsonic outflow boundaries that need to float (as the anderson says). please let me know if you had any progress. thanks. |
Non dimesionalised length
If length in the code is considered as 3, then x' = x/L can't go from 0-3. It should vary from 0 to 1. But, in all the code it is considered as 0 to 3. Please help me out to understand it.
|
Shock Capturing(MacCormack) - John D Anderson
Quote:
Im' facing just about the same issue as mentioned above. Temperature goes negative after 25 timesteps causing dt (Adaptive) and Mach number go complex. Isnt there a solution to this? Anderson hasnt done any sort of calculations for validation |
Shock caputring
4 Attachment(s)
Quote:
|
All times are GMT -4. The time now is 23:19. |