Solver for 2-D shock reflections
The package has a class file of solve which is the basis for all calculations in 2-D shock reflection problem.
It has included solvers for a flow subjected to a single deflection, deflection by two wedges, transition criteria from regular reflection to irregular reflection, shock polar plotters and a solver for a diamond airfoil subjected to supersonic flow.
shock_polar plots a shock polar for a specific flow.
scaled_SP plots a shock polar for a reflected shock.
transition and solve include the functions for solving the flow conditions.
maybe1 takes physical conditions as input and calls other functions to solve for the flow.
Cite As
Dhruv Shah (2026). Solver for 2-D shock reflections (https://www.mathworks.com/matlabcentral/fileexchange/78847-solver-for-2-d-shock-reflections), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
|
