Fluid Dynamics Flow Calculators - Prof. S. A. E. Miller
See notes and instructions at the bottom of the page. Copyright Steven A. E. Miller 2021 - Present. All rights reserved. Version 1.01. Sept. 20, 2021.
Return to my homepage. Visit me on my University of Florida research group page.
Ideal Gas Calculator
p
[Pa]
ρ
[kg/m^{3}]
T
[K]
R
[J/kg K]
Approximate Fast Standard Atmosphere Calculator
Altitude
[m]
p
[Pa]
ρ
[kg/m^{3}]
T
[K]
Isentropic Flow Calculator
A/A^{*}
M
p_{o}/p
T_{o}/T
ρ_{o}/ρ
γ
Mach angle
[deg.]
Prandtl-Meyer
[deg.]
Normal Shock
M_{1}
M_{2}
p_{2}/p_{1}
p_{o,2}/p_{o,1}
T_{2}/T_{1}
u_{2}/u_{1}
γ
ρ_{2}/ρ_{1}
Oblique Shock (Wedge)
M_{1}
M_{n,1}
M_{2}
M_{n,2}
p_{2}/p_{1}
p_{o,2}/p_{o,1}
T_{2}/T_{1}
u_{2}/u_{1}
v_{2}/v_{1}
β
[deg.]
γ
ρ_{2}/ρ_{1}
θ
[deg.]
Rayleigh Flow
M
p/p ^{*}
p _{o}/p_{o}^{*}
T/T ^{*}
T _{o}/T_{o}^{*}
u/u ^{*}
γ
ρ/ρ ^{*}
Fanno Flow
4fL^{*}/D
M
p/p^{*}
p_{o}/p_{o}^{*}
T/T^{*}
u/u^{*}
γ
ρ/ρ^{*}
Instructions and Notes
General use. Almost every calculator can be used by clearing them (clear button) and then typing in a single value. The calculator will automatically seek all other values. When there is a pull-down menu available, it will either denote the flow being supersonic or subsonic. Or, it might denote which variable is being used for the calculation.
These calculators are meant for someone with a working knowledge in the field. There are very few if no checks on input. The user may provide under-determined or over-determined information in the calculators. They are generally designed to give answers. However, certain values provide mathematiclaly impossible situations. These often return NaN or alter the original input value. Users should always be skeptical of all calculations, which is good practice in any event.
Each calculator solves analytical equations of fluid dynamics for specific problems.
Closed form solutions are evaluated if possible.
Numerical solutions using various techniques are employed when analytical approaches are not available.
Below are descriptions or notes for each calculator
Ideal Gas Calculator. Input all variables except the single unknown. The pull-down menu denotes which value is unknown. Push calculate to predict the unknown value. Based on the equation $p = \rho R T$. The upper buttons denote default values for STP and NTP atmosphere standards.
Approximate Fast Standard Atmosphere Calculator. Type in an altitude in meters and click calculate. Thermodynamic values are reported in the other boxes at that altitude. Note that this calculator is approximate and does not exactly follow the standard atmosphere standard. It is good enough for engineering work up to 47 km on Earth.
Isentropic Flow Calculator. Enter only one value. For area ratio input, indicate if the flow is supersonic or subsonic at location A. All other values will be returned. If no value of gamma is entered, the default value will be 1.40.
Normal shock calculator. Enter only one value. All other values will be calculated automatically. If no value of gamma is entered, the default value will be 1.40.
Oblique Shock (Wedge). Enter at least one or more known values. Use the pull-down menu to select if the shock wave is strong or weak then push calculator. Note that depending on which values are entered, the system of equations might be over-determiend or under-determined. Familirity with two-dimensional oblique shock wave theory is very useful here. If the calculator returns NaN, it is likely that the values entered were ill-determined, in conflict, resulted in a detached shock, or had some other non-physical issue. If no value of gamma is entered then 1.40 will be used. The calculator will do its best to find a solution, and even over-write poorly formed input values. A fully successful solution occurs when your input values remain unchanged and all values are not NaN. Most common problems are when detached shocks occur (no solution of these equations) or when the user provides unphysical values (e.g. M_1 = 0.50 as an obvious example).
Rayleigh Flow. Rayleigh flow solver. The pull-down menu indicates if the flow is supersonic or subsonic. Generally, enter only one value and push calculate. All other values will be solved for automatically. Make sure unknown values are blank. Note that some input values will yield impossible solutions or cause numerical solutions to diverge.
Fanno Flow. Solves the Fanno flow equations. The pull-down menu indicates if the flow is supersonic or subsonic. Generally, enter only one value and push calculate. All other values will be solved for automatically. Make sure unknown values are blank. Note that some input values will yield impossible solutions or cause numerical solutions to diverge.
Future improvements - a checklist.
Please contact me if you think of other ways I might improve these calculators.
Upgrade input format for calculators so that input doesn't need to be manually selected.
Add basic pictures to illustrate variables for non-expert users
Add formal standard atmosphere model.
Add isothermo calculator.
References
Shapiro, Ascher H. "The dynamics and thermodynamics of compressible fluid flow." New York: Ronald Press (1953).
Anderson, John David. Modern compressible flow: with historical perspective. Vol. 12. New York: McGraw-Hill, 1990.
Boiffier, J. L., The Dynamics of Flight: The Equations, John Wiley Sons, New York, 1998.
Keith, Theo G., and James E. John. "Gas dynamics." (2006).