File Exchange

image thumbnail

Numerical solution of the supersonic flow over a flat plate

version (17.5 KB) by Ivan
Solve the Navier-Stokes equations in laminar regime to simulate supersonic flow over a flat plate.


Updated 25 Jan 2015

View Version History

View License

This code simulates supersonic flow over a flat plate by solving the complete Navier-Stokes equations in laminar regime. The code structure and the numerical algorithm follow the description given in chapter 10 of Anderson's CFD book (John D. Anderson, JR. - Computational Fluid Dynamics. The Basics with Applications). A time-marching finite difference method based on MacCormack's predictor-corrector technique is used for the solution and discretization. Both the constant temperature and the adiabatic wall cases can be solved. There is also a script that generates the same plots as those in the book for comparison.

Cite As

Ivan (2021). Numerical solution of the supersonic flow over a flat plate (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (6)

Mr. Fufol

Couldn't agree more with Dr. Casuflat, personally I'm a fan of his work and have been inspired multiple times by his utter genius.

Dr. Casuflat

This is a great code, I've been using it for many many years every single day as an alarm clock. 12/10, would recomend.


In this case , the computational plane is the physical plane , imagine if its not , try to translate the already solved computational plane to a specified physical plane !! using a suitable mesh


Keep on the good work , good luck.

David Vallverdu

Lo peta. Em va solucionar la vida.
It is a very fun code.

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!