Code covered by the BSD License  

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Oblique Shock Calculator

1.0 | 1 rating Rate this file 30 Downloads (last 30 days) File Size: 8.55 KB File ID: #44756 Version: 1.0
image thumbnail

Oblique Shock Calculator


Jason (view profile)


Calculates the flow conditions after an oblique shock occurs

| Watch this File

File Information

Contains a number of functions for flow characterization including the following:

insentropic_flow - Relations for isentropic flow
normal_shock - Relations across a normal shock (with considerations for oblique shock)
oblique_angle_calc - Given two parameters this function calculates the third of the theta-beta-mach relationship for oblique angles
plotShock - Visualizes the shock wave

A script is also included to facilitate the execution of these functions. The script contains a section to change the inputs.

A matlab GUI/app will be coming soon and I will continue to update and add on to these functions (such as expansions waves).

Information regarding oblique shocks can be found at the following websites:


Matlab X Unit Test Framework inspired this file.

Required Products MATLAB
MATLAB release MATLAB 7.12 (R2011a)
Other requirements The unit tests were create with the MATLAB xUnit Test Framework available on the file exchange but should be easily modified for the official matlab unit test framework in later releases.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
09 Nov 2015 Dhaval

Dhaval (view profile)

There are cases where the solution output is for strong shock! We need weak shock solutions (unless specified). Try Mach = 1.994 and theta = 1 deg. You'll see what I mean.

Contact us