Compressible Flow Relations

Versión 1.5.0.0 (17.8 KB) por Tom R
Calculates various flow relations for compressible fluid flow
1.4K descargas
Actualizado 17 Sep 2021

Ver licencia

Note that while each sub function can run on its own, I recommend using the top level function compressible.m to avoid formatting confusion.
This function solves for the relations associated with isentropic compressible flow, normal shock relations, isentropic flow with heat addition and friction, solutions for the Prandtl-Meyer function and Mach angle, and the Theta-Beta-Mach relation for oblique shocks. It does so for any value inputted and for any value of gamma, where gamma is the ratio of the specific heats. Also note that this function CAN handle vectors of inputs, and will return them in the same shape as the input if it can. This function can be used in three ways:
- If no input or output is specified, it will run a GUI that prompts the user to decide which table and input type, as well as the gamma that will be used. The GUI then displays the results in a table integrated into the figure.
- If inputs are included but not outputs, the function will print the results in the workspace.
The above to methods are useful if these function is used to find values for reference or homework assignments. If the calculations are to be used within a function, the third option is:
- If inputs and outputs are included, the function will place the results into the output variables without printing or displaying anything. This use of the function allows for it to be integrated into a new function
All formula derivations are from:
Anderson, John D. Modern Compressible Flow: With Historical Perspective. New York: McGraw-Hill, 1982. Print.
All code and formatting by Thomas Ransegnola. If there are errors, or you would like for something else to be added, please let me know at transegn@gmail.com

Citar como

Tom R (2024). Compressible Flow Relations (https://www.mathworks.com/matlabcentral/fileexchange/48300-compressible-flow-relations), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2013a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Gas Dynamics en Help Center y MATLAB Answers.

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.5.0.0

Bugfix for v(M) input fir Prandtl-Meyer relation

1.4.0.0

Per the comments, removed the dependence of the table functions on the symbolic toolbox.
Added Photo and updated description.

1.3.0.0

Added limits to the function inputs for both the GUI and text components of the function.

1.2.0.0

Added a function, and update the GUI and main function compressible to include, that finds the Theta-Beta-Mach relation for oblique shocks.

1.1.0.0

Specified that users should use compressible.m to run the functions to avoid confusion

1.0.0.0