Loading Isentropic Mach Number Calculator for Non-Ideal Gases...

Isentropic Mach Number Calculator for Non-Ideal Gases

Calculate and visualise isentropic expansions on T-S diagrams

About

Welcome to Tesseract Software's Non-Ideal Gas Calculator. We created this tool to enable code-free compressible aerodynamic calculations for non-ideal gases in a web browser.

Use this tool to calculate the properties of an isentropic expansion of a non-ideal gas. To get started, simply select a fluid from the dropdown menu, set the initial conditions and set a final pressure. The tool will then calculate the thermodynamic properties and plot the T-s diagram. For valid results you must ensure that the start and end points for the fluid are in the vapour phase.

Fluid Selection

Input Properties

About

A multitude of tools exist to for such calcualtaions with perfect gases (such as this one, which inspired this tool) but no such tool exists for non-ideal gases due to the lack of closed form relations. Whilst our tool is simple, it has nonetheless been useful for us when working with compressible aerodynamics for non-ideal gases. The real strength of this tool is being able to quickly identifiy the flow regime (based on the Isentropic Mach Number) for a given pressure ratio. This helped use immensly during our Organic Rankine Cycle turbine design projects.

Our calculator uses CoolProp for the thermodynamic calculations. To this end we would like to thank the developers of CoolProp for their work, espeically the JavaScript WASM module! For more information on the theory behind the calculations, please see the How to Calculate the Isentropic Mach Number for a Non-Ideal Gas section below.

If you are interested in this tool have any feedback/suggestions, or which to discuss the development of similar tools, then please get in touch with us at support@tesseractsoftware.co.uk.

How to Calculate the Isentropic Mach Number for a Non-Ideal Gas

For the calcualtions undertaken in this tool we assume that the expansion process is isentropic, i.e. the entropy of the fluid is constant through the expansion. The process of calculating an isentropc expansion of a non-ideal gas is the same as for a perfect gas. Unlike the case for a perfect gas, a closed form solution does not present itself for a non-ideal gas.

In practice most equations of state work with density and temperature as state variables, however CoolProp's API is sufficiently flexible such that is allows any two variables to be used. For the sake of the explanation below we will use density and temperature as the state variables.

Consider the intial point, denoted with a subscript 0, of a generic fluid. The end point of the expansion is denoted with a subscript 1. The total enthalpy (denoted with superscript total) of the fluid at the initial point is given equal to the static enthalpy as the initial velocity is zero:

h 0 t o t a l = h ( ρ 0 , T 0 )

For an isentropic expansion the entropy of the fluid is constant, therefore:

s 1 = s 0

Using CoolProp we can calculate the static enthalpy at the end point of the expansion as a function of entropy and pressure ( as behind the scenes CoolProp uses density and temperature as the state variables):

h 1 = h ( s 1 , p 1 )

As total enthalpy is conserved through an isentropic expansion, the velocity of the fluid at the of the expansion is given by:

h 1 t o t a l = h 0 t o t a l = h 1 + 1 2 V 1 2

Solving for the velocity at the final state we get:

V 1 = 2 * ( h 0 t o t a l − h 1 )

At the final state the speed of sound be can calculated as a function of pressure and entropy:

a 1 = a ( p 1 , s 1 )

Leading to the final calculation of the isentropic Mach number:

M i s e n   =   V 1 a 1

Worked example: isentropic Mach number of MM (hexamethyldisiloxane)

MM is a siloxane used as the working fluid in Organic Rankine Cycle turbines. Its critical point is at about 518.7 K and 19.3 bar. Consider a dense-vapour inlet state of T0 = 510 K and p0 = 15 bar, just below the saturation pressure of 16.8 bar, expanding isentropically to p1 = 1 bar (pressure ratio 15). At the inlet the compressibility factor is Z0 = 0.59, so the fluid is far from ideal.

Non-ideal isentropic expansion of MM, calculated with CoolProp
QuantityInlet (0)Outlet (1)
Pressure15 bar1 bar
Temperature510.0 K460.9 K
Compressibility factor Z0.590.97
Entropy900.2 J/(kg·K)900.2 J/(kg·K)
Velocity0 m/s338.9 m/s
Speed of sound–151.5 m/s
Isentropic Mach number–2.24

To reproduce this, select MM, enter a temperature of 510 K and a pressure of 1500000 Pa, and set the final pressure to 100000 Pa.

Frequently Asked Questions

What is the isentropic Mach number?

It is the Mach number a flow would reach if it expanded reversibly and adiabatically (at constant entropy) from its stagnation state to a given static pressure. A constant entropy process is often referred to as isentropic.

When does non-ideal gas behaviour matter?

This is best quantified with the compressibility factor (Z = p / (ρRT)) and the ratio of specific heats (γ = cp / cv). If Z deviates from 1 and if γ varies over the expansion then the non-ideal approach must be used. This typically occurs near the saturation curve and critical point, for example in Organic Rankine Cycle turbines or supercritical CO2 compressors.

Which fluids does the calculator support?

All pure and pseudo-pure fluids in CoolProp, over 100 in total.

Why does the calculator reject my inputs?

The method is only valid in the vapour (single-phase gas or supercritical) region. If the initial or final state is liquid or inside the two-phase dome, then an error is shown. Raise the inlet temperature or the final pressure so the expansion stays out of the two-phase region. The T-s diagram shows where the saturation dome is.

What units does the calculator use?

SI units throughout: pressure in Pa, temperature in K, density in kg/m³, entropy in J/(kg·K) and enthalpy in J/kg.